Jeff Palm spudtrooper

View LesPaulImage.java
1 2 3 4 5 6 7 8 9 10
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import java.util.*;
import java.util.List;
import javax.swing.*;
import javax.imageio.ImageIO;
import java.net.*;
 
public final class LesPaulImage {
View monitor.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
#
# Monitors the file you pass in, printing the number of lines. You
# pass in the optional file as the first parameter (defaults to most
# recently updated file) and optional sleep time in seconds as the
# second argument.
#
# Examples:
#
# % ./monitor # -- use the most recently updated file
View twitterBatch.user.js
1 2 3 4 5 6 7 8 9 10
// ==UserScript==
// @name Twitter Batch
// @namespace http://jeffpalm.com/twitterbatch
// @description Only display twitter updates in batches of certain numbers.
// By default the minimum number of item required to show is
// 10, this can be changed via localStorage to, say, N, e.g.
// localStorage.setItem('batch.number',N)
// @include https://twitter.com
// @include https://www.twitter.com
// @include https://twitter.com/*
View twitterShowDates.html
1
<a href='javascript:(function(){function a(){var c=document.getElementsByClassName("js-short-timestamp");if(!c){return}for(var b in c){var d=c[b];if(!!d.getAttribute&&!!d.getAttribute("data-time")){d.innerHTML=d.parentNode.title}}}a()})();'>Show twitter dates</a>
View google-duckduckgo.user.js
1 2 3 4 5 6 7 8 9
// ==UserScript==
// @name Google + DuckDuckGo
// @namespace http://jeffpalm.com/googleduckduckgo/
// @description Redirects google searches starting with bang to duckduckgo.com
// @include https://www.google.com/*
// @include http://www.google.com/*
// ==/UserScript==
 
(function() {
View blackout.user.js
1 2 3 4 5 6 7 8 9 10
// ==UserScript==
// @name Blackout MPAA and RIAA sites
// @namespace http://jeffpalm.com/blackout
// @description Blacks out MPAA ad RIAA and possibly others
// @include http://riaa.com*
// @include http://mpaa.org*
// ==/UserScript==
 
(function() {
var html = '<style>p{color:#000;}</style><div id="sopa-wrapper" style="z-index:1001;background:#000;-moz-opacity:0.9;filter:alpha(opacity=90);opacity:0.9;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0;">';
View orangefr.user.js
1 2 3 4 5 6 7 8 9 10
// ==UserScript==
// @name Ornage FR
// @namespace http://jeffpalm.com/orangefr
// @description Bypasses the log in screen for orange.fr wifi
// @include https://hautdebitmobile.orange.fr:8443/home*
// ==/UserScript==
(function() {
function main() {
var els;
View find_duplicated_jars.rb
1 2 3 4 5 6 7 8 9
 
#!/usr/bin/env ruby
#
# Prints out the duplicated classes in jars
#
# Example:
#
# find_duplicated_jars *.jar
#
View dex_dups.sh
1 2 3 4 5 6 7
#!/bin/sh
#
# Lists the offending class names in stacktraces created from
# assemlbing an APK when there are multiple class definitions.
#
 
awk '/already added/ { print $4 }' | sed -e 's/;//g' -e 's/^L//g' -e 's/\//./g'
View ycombinatorPoll.html
1
<a href='javascript:(function(){const d=75;function c(h,g){for(var f in g){h.style[f]=g[f]}}function b(j,g,h,f,i){i=i||j/2;return Math.floor(j-i*(f-g)/(f-h))}function e(q,g,l,p){var o=b(d,g,l,p);var k=b(255,g,l,p,238);var j="#"+k.toString(16)+"0000";var h=q.parentNode;h.appendChild(document.createTextNode(" "));var f=document.createElement("span");h.appendChild(f);var r={height:"100%","background-color":j,color:j};var n="";for(var m=0;m<o;m++){n+="|"}f.innerHTML=n;c(f,r);console.log(f)}function a(){var l=document.getElementsByTagName("span");var g=[];function q(i,p){return{span:i,score:p}}var j;var n;for(var k in l){var o=l[k];if(!o.id||!o.id.match(/score_/)){continue}var h=parseInt(o.innerHTML.match(/(\d+) /)[0]);if(!j||h<j){j=h}if(!n||h>n){n=h}g.push(q(o,h))}var m="";for(var k in g){if(k==0){continue}var f=g[k];e(f.span,f.score,j,n)}}a()})();'>ycombinator polls</a>
Something went wrong with that request. Please try again.