Skip to content

Instantly share code, notes, and snippets.

View wizardishungry's full-sized avatar
🐫
Copyright 1987-2013, Larry Wall

Jon Williams wizardishungry

🐫
Copyright 1987-2013, Larry Wall
View GitHub Profile
@wizardishungry
wizardishungry / HOWTO.MD
Last active January 30, 2017 23:15
Setting up User Scripts

Setting up User Scripts and Extensions on Ungoogled Chromium

https://github.com/Eloston/ungoogled-chromium

  1. curl -L https://clients2.google.com/service/update2/crx\?response\=redirect\&prodversion\=48.0\&x\=id%3Ddhdgffkkebhmkfjojejmpbldmpobfkfo%26installsource%3Dondemand%26uc -o ~/Library/Application\ Support/Chromium/Default/Extensions/tapermonkey.crx
  2. open ~/Library/Application\ Support/Chromium/Default/Extensions/
  3. open chrome://extensions/
  4. Visit http://chromium-crx.stuff.admicos.cf/get.user.js
  5. Install user script

Keybase proof

I hereby claim:

  • I am wizardishungry on github.
  • I am wizardishungry (https://keybase.io/wizardishungry) on keybase.
  • I have a public key whose fingerprint is 41F3 C317 13F0 7ECA F3EF C21D 6D17 2B3A 070D 5ECE

To claim this, I am signing this object:

@wizardishungry
wizardishungry / laws.md
Created August 16, 2016 18:08
Johnson Laws of Snacking
  1. When in doubt, order the menu item closest to chicken fingers.
@wizardishungry
wizardishungry / fun.js
Last active August 29, 2015 14:25
fun javscript stuff I made
/*
scroll an infinite scrolling window forever
*/
var pos=-1; var f = function() { if(pos==document.body.scrollHeight) return; window.scrollTo(0,document.body.scrollHeight); pos=document.body.scrollHeight; window.setTimeout(f, 1000); }; f();
@wizardishungry
wizardishungry / modulargrid.net.sh
Last active August 29, 2015 14:23
modulargrid.net
#!/bin/bash
grep /e/ ~/Desktop/Users\ on\ ModularGrid.html | sed 's/.*href="\([^"]*\)".*/\1/' | grep http | grep /e/modules/view | xargs -n 1 -P 10 curl -kL 2> /dev/null |grep '<meta.*desc' | sed 's#.*<meta name="description" content="\(.*\) - .* Module \(.*\)" />.*#\1 \2#' | sort | tee module-list.txt
$.index.open();
$.webView.url = "http://www.yahoo.com/";
$.webView.addEventListener('beforeload', function(e) {
alert("beforeload "+ e.url);
e.cancelBubble = true;
});
$.webView.addEventListener('load', function(e) {
alert("load "+ e.url);
e.cancelBubble = true;
});
<?php
function parseArgs($argv){
array_shift($argv); $o = array();
foreach ($argv as $a){
if (substr($a,0,2) == '--'){ $eq = strpos($a,'=');
if ($eq !== false){ $o[substr($a,2,$eq-2)] = substr($a,$eq+1); }
else { $k = substr($a,2); if (!isset($o[$k])){ $o[$k] = true; } } }
else if (substr($a,0,1) == '-'){
if (substr($a,2,1) == '='){ $o[substr($a,1,1)] = substr($a,3); }
else { foreach (str_split(substr($a,1)) as $k){ if (!isset($o[$k])){ $o[$k] = true; } } } }
@wizardishungry
wizardishungry / Case.php
Last active August 29, 2015 14:07
testcase for phpunit process isolation bug
<?php
/**
* @runTestsInSeparateProcesses
*/
class MyCase extends PHPUnit_Framework_TestCase
{
public function testWhatHappensNext()
{
//sleep(10);
@wizardishungry
wizardishungry / xmpp_ebooks.rb
Last active August 29, 2015 14:07
facebook / xmpp ebooks
#!/usr/bin/env ruby
require 'xmpp4r'
require 'xmpp4r/client'
require 'xmpp4r/roster'
require 'twitter_ebooks'
include Jabber
class Bot
@wizardishungry
wizardishungry / blocked-tweet-sponsors.txt
Created September 18, 2014 20:35
brands i have blocked
blocking ThanksUSA
blocking phunware
blocking NRGDavidCrane
blocking RayTinnenyFit
blocking r17dotcom
blocking Wix
blocking smartling
blocking IntelITCenter
blocking DellBigData
blocking airpair