Skip to content

Instantly share code, notes, and snippets.

Avatar

Lonny ljepson

  • Utah
View GitHub Profile
View .jscsrc
{
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineBreaks": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces" : true,
"disallowMultipleVarDecl": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
View Console Message
10/29/13 12:33:25.734 PM appleeventsd[105]: Sandboxed application with pid 36588 attempted to lookup App:"SpamSieve"/36617/0x0:0xe70e7 mtSS1010 sess=100006 but was denied due to sandboxing. (___ZL13handleMessageP17_xpc_connection_sPv_block_invoke260()/appleEventsD.cp #2413) client-reqs-q
View gist:6597428
./configure --enable-fail-if-missing --with-x --enable-gui --with-features=huge --enable-perlinterp --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/bin/python --enable-sysmouse --enable-multibyte --enable-fontset
View gist:5818311
function sort(a,b) {
var first = a.substr(0).charCodeAt();
var second = b.substr(0).charCodeAt();
if(!first || first < second || first === second) return false;
return true;
}
function check_status() {
var status_text = $('.span6:first').find('.status');
var run_again = 0;
for(var n = 0; n < status_text.length; n++) {
View gist:5525455
function deobfuscate(convert) {
var code;
var convert_list = convert.split(/,/);
for(var i = 0; i < convert_list.length; i++) {
var char = String.fromCharCode(convert_list[i]);
code = code ? code + char : char;
}
console.log(code);
}
View dropbox.js
;(function($) {
var check_button = function() { return $('#load-more-bonus').is(':visible') };
var referral_count = function() {
if(check_button()) {
$('#load-more-bonus').click();
setTimeout(referral_count,1000);
} else {
$('.bonus-row a').filter(function() {
return $(this).text() !== 'Referral' ? 1 : 0;
}).closest('.bonus-row').remove();
@ljepson
ljepson / random_selector.js
Created Dec 14, 2012
Select a number at random based on the frequency that it randomly showed up.
View random_selector.js
Array.prototype.frequency = function() {
this.sort();
var i = 0, array, count, item, first = this.slice(0);
while(i < first.length) {
count = 1; item = first[i]; array = i + 1;
while(array < first.length && (array = first.indexOf(item, array)) !== -1) {
count += 1; first.splice(array,1);
}
first[i] += ' : '+ count; i++;
}
@ljepson
ljepson / bing.js
Created Dec 14, 2012
Automatically do the amount of searches necessary to get the maximum number of daily credits from bing.com.
View bing.js
var bing = {
credits: 0,
current_status: function() {
var current_credits = bing.credits;
jQuery.ajax({url: '/rewards/dashboard', success: function(d) {
var credits = jQuery(d).find('.title:contains("Search Bing")').closest('a').find('.progress').text();
if(!credits.match(/.*of.*/)) bing.settings['stop'] = true;
bing.credits = Number(credits.replace(/(\d+).*/,'$1'));
bing.total = Number(jQuery(d).find('.user-balance .data-value-text:first').text());
}, complete: function() {
@ljepson
ljepson / godville.js
Created Dec 1, 2012
GodvilleGame.com Autobot
View godville.js
var godville = {
delay: 3000,
init: function() {
$('body').append('<aside id="autobot">');
$('#autobot').append('<p>Select an option from below to start botting</p>');
$('#autobot').append('<input type="radio" id="auto_encourage" name="autobot"><label for="auto_encourage">Automatically encourage</label>');
$('#autobot').append('<input type="radio" id="auto_punish" name="autobot"><label for="auto_punish">Automatically punish</label>');
$('#autobot').append('<button>Stop autoing</button>');
$('#autobot').css({
background: 'rgba(255,255,255,.45)',
@ljepson
ljepson / gvoice.js
Created Nov 25, 2012
Google Voice Delete
View gvoice.js
var voice = {
jquery: '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js',
key_name: '_rnr_se',
key_value: function() {return jQuery('input[name="'+ voice.key_name +'"]').val()},
page: 1,
messages: [],
done: false,
init: function() {
var script = document.createElement('script'),
head = document.getElementsByTagName('head')[0];
You can’t perform that action at this time.