This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def IFCJson(): | |
url = 'https://ifconfig.co/json' | |
resp = requests.get(url) | |
obj = resp.json() | |
lat = obj['latitude'] | |
lng = obj['longitude'] | |
ip = obj['ip'] | |
print(f"{ip} ({lat},{lng})") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################## | |
# | |
# Create JsonFS File from Directory in PowerShell | |
# | |
# Usage: | |
# | |
# New-JsonFSFile -Path <directory-path> -File <target-JSON-file> [-Unicode $True] | |
# | |
# If the -Unicode option is omitted text files will be encoded ASCII values | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Add phone numbers found in Gmail e-mails to a Google single contact | |
Usage: | |
1. Create a contact (use an purposely invalid e-mail address) i.e. sender-emails@myaccount | |
2. Include this script in your project | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Update Files using Github API from Google Script | |
Installation: | |
1) Add file to the top of the list in App Script project | |
2) Add the following script properties to App Script project: | |
github_user -> will contain the username of the commit user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Update Repository Files using Github API | |
Requires webrequest.js (https://gist.github.com/bng44270/61122a1947591d50004fcd9ee72d643d) | |
Usage: | |
var gh = new GithubFile('API-TOKEN','USERNAME','EMAIL-ADDRESS'); | |
var prFile = gh.getFile('REPOSITORY','FILE-PATH'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Show X Windows Display Information | |
Compiling Note: | |
Requires X11 headers | |
gcc <options> xdispinfo.c -lX11 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################## | |
# | |
# Launch nested X windows session | |
# | |
# Usage: | |
# | |
# 1) Determine window manager executable (i.e. wmaker) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Streamline the creation of API Endpoints on Google Script | |
Usage: | |
1. Create a new App Script project. | |
2. Create a new script file, paste this code into it, and save it. | |
NOTE: Make sure the new callhandler script file is at the top of the file list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################### | |
# | |
# Radio Player (GUI) | |
# | |
# Requires zenity | |
# | |
# Usage: | |
# |
NewerOlder