Skip to content

Instantly share code, notes, and snippets.

View jkldgoefgkljefogeg's full-sized avatar

kjeojfeofjgeofkjodfioejo jkldgoefgkljefogeg

View GitHub Profile
@jkldgoefgkljefogeg
jkldgoefgkljefogeg / plantext.txt
Created January 10, 2019 10:43 — forked from Neurogami/plantext.txt
Bookmarklet version of javascript to get plaintext of Amazon Cloud Reader
Original code is from https://gist.github.com/aaronshaf/1346968
The instructions were to open a dev console and paste in the script.
A nicer way is to make it a bookmarklet.
1. Create a new bookmark in our browser. You should be able to edit the name and URL
2. Give it a decent name (e.g. "amz cloud plaintext")
3. Paste the following as the URL (make it all one line):
@jkldgoefgkljefogeg
jkldgoefgkljefogeg / gist:92a607e74ccbbbd5da70ce434e19adb3
Created January 10, 2019 10:30 — forked from aaronshaf/bookmarklet-expanded.js
Copy text from Amazon's Cloud Reader
// Useful for students in need of block quotes for their paper, etc.
// Execute the line in your JavaScript console
new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML;
javascript:new_window=window.open();new_window.document.body.innerHTML = $('iframe').contents().find('iframe').contents().find('body').get(1).innerHTML;
@jkldgoefgkljefogeg
jkldgoefgkljefogeg / export-ble-infos.py
Created June 11, 2018 02:24 — forked from Mygod/export-ble-infos.py
Export your Windows Bluetooth LE keys into Linux!
#!/usr/bin/python3
"""
Export your Windows Bluetooth LE keys into Linux!
Thanks to: http://console.systems/2014/09/how-to-pair-low-energy-le-bluetooth.html
Usage:
$ ./export-ble-infos.py <args>
$ sudo bash -c 'cp -r ./bluetooth /var/lib && service bluetooth force-reload'
for x in {a..z}; do openssl s_client -connect ${x}.ssl.fastly.net:443 < <( echo "Q\r" ) 2>/dev/null | openssl x509 -noout -text 2>/dev/null | grep 'DNS:' | tr ',' '\n' | sed 's/.*DNS://g' ; done | sort | uniq
*.01click.net
*.12wbt.com
*.1stdibs.com
*.1stdibs.us.com
*.1stdibscdn.com
*.2brightlights.info
*.4ormat.com
*.4sqi.net