Skip to content

Instantly share code, notes, and snippets.

@ivorytowerdds
ivorytowerdds / twitter
Last active July 4, 2020 13:45
harmony-twitter
#!/bin/bash
for name in stse rongjianlan leo_hao denni_swon gupadhyaya AndrewIsTyping cottontail2000 thechaindev xiaopen01917726 janetlharmony danielvdmaden YishuangC potvik1 haodi2best JianZhen7 JackyTheCoder sahildewan nickwh8te lijiang2087 chaowen28 dirschmidt nickostopoulos GIZEMCAKIL maggiewangharm1 niteesh_harmony vasilich_nick mannymcoy SonnyNeverKnows CB_Cryptalk danboyden drop101001 alex_yatesalex IScirlet iBruno_marshall sophoah JB273_Jurgen yelllowsin mindpop3 mirrormirage0; do
echo -n $name ''
curl -s "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=$name&count=200&tweet_mode=extended" \
-H 'x-csrf-token: d39ff7dfbf373012ea78f82d9888d9ed' \
-H 'authorization: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA' \
-H 'cookie: auth_token=aaaa326d1ee4f9248644fc06996d9ea7ea4e950b; ct0=d39ff7dfbf373012ea78f82d9888d9ed' \
--compressed | python3 -c $'import json, sys\nfor x in json.load(sys.stdin):\n if x["in_rep
@ivorytowerdds
ivorytowerdds / emoji
Last active May 28, 2020 22:04
harmony-emoji-4ppl
#!/bin/bash -x
[ -x `which convert` ] || { brew install imagemagick; }
convert \
<(curl -s `curl -sL https://emojipedia.org/$1 | awk -F'[" ]' '$0 ~ /240.apple/ {print $6}'`) \
<(curl -s `curl -sL https://emojipedia.org/$2 | awk -F'[" ]' '$0 ~ /240.apple/ {print $6}'`) \
+append \
'(' \
<(curl -s `curl -sL https://emojipedia.org/$3 | awk -F'[" ]' '$0 ~ /240.apple/ {print $6}'`) \
<(curl -s `curl -sL https://emojipedia.org/$4 | awk -F'[" ]' '$0 ~ /240.apple/ {print $6}'`) \
+append ')' \
@ivorytowerdds
ivorytowerdds / delegator-info.txt
Last active April 22, 2020 22:13
Delegator-Info
# ONE TIME SETUP
python3 -m pip install requests pandas
# if you meet permission denied error, use python3 -m pip install --user requests pandas
# DOWNLOAD NEW SCRIPT
curl -O https://raw.githubusercontent.com/harmony-one/harmony-log-analysis/master/projects/staking_dashboard/delegator_info.py
# RUN
python3 delegator_info.py