Skip to content

Instantly share code, notes, and snippets.

@aaronmauro
aaronmauro / ultrasonic_beacon_detector.py
Last active May 29, 2025 14:45
Detects ultrasonic beacons commonly used in advertising and online advertising
#!/usr/bin/python
"""
Warning: This software is for research and educational purposes only.
Please do not violate any local or international laws. Please do not break terms of
service with other entities. Please read and understand the code before using it.
This code listens to the surrounding environment for ultrasonic beacons commonly used to track
individuals for advertising purposes. If an ultrasonic beacon is discovered, this code will
save a sample audio file as well as display a warning dialogue box.
# Because you know, db:pull is fucking slow...
function backup:pull () {
name=$(heroku info --raw | grep "^name=" | cut -d= -f2)
echo "Loading '$name' app's data in local database."
heroku pgbackups:capture --expire
curl -o latest.dump `heroku pgbackups:url`
pg_restore --verbose --clean --no-acl --no-owner -d $name latest.dump
rm -fr latest.dump
}
@cameronmcefee
cameronmcefee / gist:2641743
Created May 9, 2012 04:14
Font Configuration File
# Font Squirrel Font-face Generator Configuration File
# Upload this file to the generator to recreate the settings
# you used to create these fonts.
{"mode":"expert","formats":["ttf","woff","eot","svg"],"tt_instructor":"default","options_subset":"advanced","subset_custom":"","subset_custom_range":"f000-f073,f200-f273","filename_suffix":"-webfont","emsquare":"2048","spacing_adjustment":"0","rememberme":"Y"}
@aitor
aitor / Example output.txt
Created July 11, 2011 12:47
google search by image
[aitor@banba:~/workshop/github/aitor/eikon 12:45:34] ruby eikon.rb
The image [http://www.ikbrunel.org.uk/userFiles/GreatBritainWeb.jpg] is used on the following urls:
#1 - Brunel's ss Great Britain - a great day out in Bristol: http://www.ssgreatbritain.org/
#2 - SS Great Britain - Wikipedia, the free encyclopedia: http://en.wikipedia.org/wiki/SS_Great_Britain
#3 - Visually similar images: /search?hl=en&tbs=simg:CAESVhpUCxCwjKcIGjgKNggBEhAyO6IBpALWAXFalgHHA8ICGiC7Z4CRSqBwRbPycayBw-pY1paEp0-Eh4efms4VtdVSZgwLEI6u_1ggaCgoICAESBKuhSWcM&q=ss+great+britain&tbm=isch&sa=X&ei=efAaTtW7EMSu8gPkhpwO&ved=0CC8Qsw4
#4 - MyBrunel.co.uk :: Great Britain :: © 2011: http://www.mybrunel.co.uk/ships/britain/index.php
#5 - SS (Steam Ship) Great Britain: http://www.crwflags.com/fotw/flags/gb~ssgb.html