Skip to content

Instantly share code, notes, and snippets.

@jonjenkins
jonjenkins / fraud_ip_overlap.splunk.sql
Created June 21, 2020 22:18
get IP overlap for recently used accounts fraud ip addresses spunk
index=main event=apicall (userid=5903382
OR userid=6469763
OR userid=16043531
OR userid=17055208
OR userid=17078331
OR userid=17098428
OR userid=17098849) | rex field=ip "(?<firstthree>\d+\.\d+\.\d+)\.\d+" | dedup firstthree, userid | table firstthree, userid | mvcombine delim="," userid
Verifying that +jenkins is my blockchain ID. https://onename.com/jenkins
@jonjenkins
jonjenkins / eight-no-more
Created July 7, 2015 04:53
bad-signup-form
var tm = window.setInterval(function() { $('.registration-modal').hide(); $('.modal-backdrop').hide(); }, 250);

Keybase proof

I hereby claim:

  • I am jonjenkins on github.
  • I am jonj (https://keybase.io/jonj) on keybase.
  • I have a public key whose fingerprint is 6D42 54F0 9DAB 577A 179A 4CB8 FB4C DD3F C871 8DE8

To claim this, I am signing this object:

@jonjenkins
jonjenkins / playlistt.js
Last active December 17, 2015 14:19
Playlist capture all songs in Spotify format, played on Turntable tt.fm (if available)
$(function () {
if (window.playlistt == undefined) window.playlistt = {};
window.playlistt = $.extend(window.playlistt, {
i_awesome: null,
i_queuer: null,
i_watcher: null,
lamed: false,
room: '',
ttfm: null,
awesome: function () {
@jonjenkins
jonjenkins / playlistt.new.js
Created June 11, 2012 02:26
playlistt.new.js
/* establish core tt.fm methods/accessors */
String.prototype.pad = function(l, s){
return (l -= this.length) > 0 ? (s = new Array(Math.ceil(l / s.length) + 1).join(s)).substr(0, s.length) + this + s.substr(0, l - s.length) : this;
};
pttCore = {
appName: 'playlistt',
appVersion: '0.99.0',
appApiKey: '',
room: null,
getRoom: function() {
var Stuffy = function (options) {
if (typeof jQuery == 'undefined') throw 'Please include jQuery (http://www.jquery.com) on your page since Stuffy uses its .ajax methods to retrieve JSON';
if (eval('typeof dateFormat') == 'undefined') throw 'Please include the dateFormat plugin (1.2.3+) since Stuffy uses it to format datetime masks';
if (!'localStorage' in window || window['localStorage'] == null) throw 'Please make sure your browser supports localStorage since Stuffy uses it to track progress';
for (var i in StuffyHelpers) {
this[i] = StuffyHelpers[i];
}
this.init(options);
}
@jonjenkins
jonjenkins / init.js
Created May 5, 2011 22:07
Stuffy usage
var s = new Stuffy('mydb');
/*
Original: A simple stratified wrapper over the asynchronous webdatabase api (webkit)
from http://gist.github.com/613526
Existing openDatabase and executeSql methods
Added executeBulkSql as a method to group sql statements prior to transaction-level commit;
this is much faster for bulk transactions as opposed to individual transaction executions
from http://gist.github.com/927981
*/