This file contains hidden or 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
{ | |
"Antarctica": { | |
"long_name": "Antarctica", | |
"short_name": "Antarctica" | |
}, | |
"AU": { | |
"long_name": "Australia", | |
"short_name": "AU" | |
}, | |
"BR": { |
This file contains hidden or 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
export GPG_TTY=$(tty) | |
alias ll='ls -al' | |
alias h='history' | |
alias hg='history | grep $1' | |
alias c='clear' | |
alias ns='arp -a | grep :' | |
alias gs='git status' | |
alias tf='terraform fmt -recursive' | |
alias account='{ aws sts get-caller-identity & aws iam list-account-aliases; } | jq -s ".|add"' |
This file contains hidden or 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
# terraform info | |
local tf_info='$(tf_workspace)' | |
function tf_workspace { | |
if [ -f ".terraform/environment" ]; then | |
local workspace=$(cat .terraform/environment); | |
echo -n "%{$fg_bold[green]%}tf:%{$fg[cyan]%}${workspace}%{$fg_bold[green]%}%{$reset_color%}" | |
else | |
echo -n "" | |
fi | |
} |
This file contains hidden or 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
Suffolk Area has [group_count service_body="1001" root_server="https://bmlt.newyorkna.org/main_server"] groups with [meeting_count] meetings in [list_locations root_server="https://bmlt.newyorkna.org/main_server" services="1001" state="0"] | |
[bmlt_tabs service_body="1001" root_server="https://bmlt.newyorkna.org/main_server"] |
This file contains hidden or 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
<?php | |
$root_server = "https://bmlt.wszf.org/main_server"; | |
$bmlt_login_id = ""; | |
$bmlt_login_password = ""; | |
$login_string = "$root_server/local_server/server_admin/json.php?c_comdef_admin_login=$bmlt_login_id&c_comdef_admin_password=$bmlt_login_password&admin_action=login"; | |
$login = get($login_string); | |
echo $login . "\n"; | |
$get_perms = get("$root_server/local_server/server_admin/json.php?admin_action=get_permissions"); |
This file contains hidden or 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
[{"id":"147","name":"Greater Illinois Region","rootURL":"https://girbmlt.org/main_server/"},{"id":"154","name":"Indiana Region","rootURL":"https://dev.naindiana.org/wp/main_server/"}] |
This file contains hidden or 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
<?php | |
$jft_url = 'https://spadna.org'; | |
libxml_use_internal_errors(true); | |
$url = get($jft_url); | |
libxml_clear_errors(); | |
libxml_use_internal_errors(false); | |
$d = new DOMDocument(); | |
$d->validateOnParse = true; | |
$d->loadHTML($url); |
This file contains hidden or 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 json, urllib3 | |
def get(url): | |
return json.loads(urllib3.PoolManager().request("GET", url, headers={'User-Agent': 'Mozilla/5.0 Firefox/105.0'}).data.decode()) | |
max_length = [] | |
for root_server in get('https://raw.githubusercontent.com/bmlt-enabled/tomato/master/rootServerList.json'): | |
for meeting in get(root_server['rootURL'] + '/client_interface/json/?switcher=GetSearchResults'): | |
max_length.append(max(len(x) for x in meeting.values())) | |
max_length.sort() | |
print(max_length[-1]) |
This file contains hidden or 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 hashlib | |
def get_hash(file): | |
''' | |
Return sha256 hash of file | |
''' | |
sha256_hash = hashlib.sha256() | |
with open(file,"rb") as f: | |
for byte_block in iter(lambda: f.read(4096),b""): | |
sha256_hash.update(byte_block) |
This file contains hidden or 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
[ | |
{"id":"133","name":"NA Italia","rootURL":"https://na-italia.info/main_server/"}, | |
{"id":"134","name":"New England","rootURL":"https://www.nerna.org/main_server/"}, | |
{"id":"135","name":"Show-Me Region","rootURL":"https://missourina.org/main_server/"}, | |
{"id":"136","name":"NA Denmark","rootURL":"https://www.nadanmark.dk/main_server/"}, | |
{"id":"139","name":"Gyro Zonal Forum","rootURL":"https://gyro.sezf.org/main_server/"} | |
] |