Skip to content

Instantly share code, notes, and snippets.

View danielpops's full-sized avatar
🎯
Things and stuff

dpopes danielpops

🎯
Things and stuff
View GitHub Profile
@danielpops
danielpops / gist:4c425adf8c312ee334e39ede84c43d4a
Created June 12, 2018 05:05
Get random stars and open them
curl -s --netrc 'https://api.github.com/user/starred?per_page=100&page=1' | jq -r '.[] | [.pushed_at, .stargazers_count, .language, .html_url, .description] | @csv' | head -6 | awk -F, '{print $4}' | xargs open
@danielpops
danielpops / pyyaml-custom-loader.py
Created March 8, 2018 10:32
pyyaml custom loader with yaml.safe_load
import yaml
from yaml.constructor import ConstructorError
try:
from yaml import CLoader as Loader
except ImportError:
from yaml import Loader
def no_duplicates_constructor(loader, node, deep=False):
@danielpops
danielpops / example_output.txt
Created February 24, 2018 01:04 — forked from coffeetocode/example_output.txt
Example of bypasses for naive blacklists of 169.254.169.254 local metadata service. See https://twitter.com/coffeetocode/status/912788650408026112
$ ./try_local_metadata.sh
Trying 169.254.169.254... found metadata
Trying 169.254.43518... -
Trying 169.1668966... -
Trying 2852039166... found metadata
Trying 0251.0376.0251.0376... found metadata
Trying 0251.0376.0124776... -
Trying 251.0775248... -
Trying 25177524776... -
Trying 0xa9.0xfe.0xa9.0xfe... found metadata
### Keybase proof
I hereby claim:
* I am danielpops on github.
* I am danielpops (https://keybase.io/danielpops) on keybase.
* I have a public key whose fingerprint is 8D28 CD59 6448 641C 5EB0 745D 1EF0 5BE0 4E56 74F9
To claim this, I am signing this object: