Skip to content

Instantly share code, notes, and snippets.

View jordam's full-sized avatar

jordam

View GitHub Profile
### Stupid simple buggy radio signal location tool in python
import pyshark
import numpy
import pyaudio
import math
import time
class ToneGenerator(object):
@jordam
jordam / EbaySniper.html
Created February 23, 2016 06:34
Ebay Sniper
<html>
<body>
<a href="javascript:void%20function(){window.maxval=prompt(%22How%20much%20would%20you%20like%20to%20pay%3F%20(Dont%20include%20$%20sign)%22),window.snipetime=prompt(%22What%20second%20would%20you%20like%20to%20snipe%20on%3F%20(can%20be%200-9,%20but%202%20is%20recommended%22),window.tanimation=[%22|%22,%22/%22,%22-%22,%22\\%22],window.tanv=0,window.setInterval(function(){$(%22%23itemTitle%22).text(%22Sniper%20Active%20%20%22+tanimation[tanv%25tanimation.length]),window.tanv++,1!=window.biddone%26%261!=window.tensec%26%26-1==$(%22%23vi-cdown_timeLeft%22).text().indexOf(%22m%22)%26%26$(%22%23vi-cdown_timeLeft%22).text().indexOf(%2210s%22)%3E-1%26%26(window.tensec=!0,$(%22%23bidBtn_btn%22).click()),1==window.tensec%26%26$(%22.timeLeftVal%22).text().indexOf(window.snipetime+%22s%22)%3E-1%26%26-1==$(%22.timeLeftVal%22).text().indexOf(%2210s%22)%26%26(window.tensec=!1,window.biddone=!0,$(%22input[title='Enter%20your%20max%20bid']%22).val(window.maxval),$(%22.vi-placemax-alignment%22).last().clic
@jordam
jordam / bulk-gplay.html
Created February 13, 2016 02:59
Purchase one month gift tokens from google play music in bulk.
<html>
<body>
Google music is having a sale on one month gift codes. You can redeem them on yourself and can purcahse up to 60 months in advance for half the cost<br>
Unfortunately, purchasing these one month at a time is tedious. Drag this link -> <a id="OutputHref" href="javascript:void%20function(){function%20e(){document.querySelectorAll(%22button[data-offer-id='Sgiftonemonth']%22)[0].click(),setTimeout(t,500)}function%20t(){i()%3F(c(),r(),setTimeout(o,500)):setTimeout(t,500)}function%20o(){d()%3F(u(),setTimeout(n,500)):setTimeout(o,500)}function%20n(){m()%3F(l(),window.purchasedmonths=window.purchasedmonths+1,setTimeout(a,500)):setTimeout(n,500)}function%20c(){document.querySelectorAll('iframe[src*=%22epurchase%22]')[0].contentWindow.document.querySelectorAll(%22%23giftee-email-input%22)[0].value=document.querySelectorAll('iframe[src*=%22epurchase%22]')[0].contentWindow.document.querySelectorAll(%22span.gift-disclaimer-line%22)[0].querySelectorAll(%22span%22)[0].textContent,document.querySelectorAll('ifr
//Paste this into a chrome console to dump out a list of the search urls on the page
function fixLinksOfClassL() {
// fix old-style class="l" links
var ts = document.getElementsByClassName("l");
for (var i=0; i < ts.length; i++) {
var t = ts[i];
if (t.tagName == "A") {
// remove javascript callback first
t.removeAttribute("onmousedown");
// fix link if necessary
<html>
<body>
<iframe src="http://www.amazon.com/gp/flex/sign-out.html?action=sign-out"/>
<iframe src="http://www.blogger.com/logout.g"/>
<iframe src="http://www.delicious.com/logout"/>
<iframe src="https://panel.dreamhost.com/index.cgi?Nscmd=Nlogout"/>
<iframe src="https://www.dropbox.com/logout"/>
<iframe src="https://signin.ebay.com/ws/eBayISAPI.dll?SignIn"/>
<iframe src="https://www.gandi.net/login/out"/>
<iframe src="https://github.com/logout"/>
@jordam
jordam / magiclight.py
Created August 13, 2015 12:59
A script to control MagicLight and other cheap wifi rgb lights
import socket, time
s = socket.socket()
address = ''
port = 5577
r = 0
g = 255
b = 0
keybit = "31".replace(':', '').decode('hex')
keybit += chr(r) + chr(g) + chr(b)
keybit += "00:f0:0f".replace(':', '').decode('hex')