View ssl_puma.sh
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -out server.key 2048
# 2) Generate the csr (Certificate signing request) (Details are important!)
$ openssl req -new -key server.key -out server.csr
View HOWTO.MD

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
View keybase.md

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:

View laws.md
  1. When in doubt, order the menu item closest to chicken fingers.
View fun.js
/*
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();
View modulargrid.net.sh
#!/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
View index.js
$.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;
});
View DID-YOU-EVER-HEAR-OF-GETOPTS.php
<?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; } } } }
View Case.php
<?php
/**
* @runTestsInSeparateProcesses
*/
class MyCase extends PHPUnit_Framework_TestCase
{
public function testWhatHappensNext()
{
//sleep(10);
View xmpp_ebooks.rb
#!/usr/bin/env ruby
require 'xmpp4r'
require 'xmpp4r/client'
require 'xmpp4r/roster'
require 'twitter_ebooks'
include Jabber
class Bot