Skip to content

Instantly share code, notes, and snippets.

View inhji's full-sized avatar
🚲
I'll make better mistakes tomorrow.

Jonathan Jenne inhji

🚲
I'll make better mistakes tomorrow.
View GitHub Profile
<?php
$O0O_00__OO='BEGINJ6Pn2HmH0e568SXnR6KRkmP5tQbh7KEW';
$O_0O_0OO_0='hairbird10347';
$O0O00___OO=1695;
$O0_O0__O0O='B/C/D/F';
$OO0__O0_O0=411;
$O00__O_O0O=array("bronzed","guzzledom","kikki","intercirculate","lewdness","jaqueline","graftonite","flautist","lepa","incestuous","forecourse","barrack","balanophoraceous","gibber","amomis","misexpend","mobsman","diacaustic","misworshipper","buccula");;
$O_00O0_O_O='T1';
$O_O__000OO='|likeyou|';
@inhji
inhji / InstallTrezorSSHAgent.md
Created January 21, 2018 12:53
Install Trezor SSH Agent on Ubuntu 16.04
  1. pip wget https://bootstrap.pypa.io/get-pip.py && python ./get-pip.py
  2. libudev-dev and libusb-dev sudo apt-get install libudev-dev libusb-1.0-0-dev
  3. trezor-agent sudo pip install trezor_agent
  4. libtrezor sudo pip install -e git+https://github.com/trezor/python-trezor.git#egg=trezor
@inhji
inhji / NotNull.vb
Created January 27, 2016 09:57
NotNull
Public Function NotNull(Of T)(ByVal value As T, Optional ByVal defaultValue As T) As T
If value Is Nothing OrElse String.IsNullOrEmpty(value.ToString) OrElse IsDBNull(value) Then
Return defaultValue
Else
Return value
End If
End Function
@inhji
inhji / aliases.zsh
Created August 26, 2015 17:56
zsh aliases
# util
alias c='clear'
alias r='source ~/.bashrc'
# ls aliases
alias l='ls'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
@inhji
inhji / atobtoa.js
Created September 22, 2014 12:58
AtoBtoA.js
//http://stackoverflow.com/questions/9786508/javascript-atob-returning-string-contains-an-invalid-character/9786592#9786592
function utf8_to_b64( str ) {
return window.btoa(unescape(encodeURIComponent( str )));
}
function b64_to_utf8( str ) {
return decodeURIComponent(escape(window.atob( str.replace(/\s/g, '') )));
}
@inhji
inhji / betta_v2.js
Created August 20, 2014 08:56
betta_v2.js
var ß = (function(){
function _(value) {
this.value = value;
}
_.prototype = {
is: function(){
return new Object().toString.call(this.value).slice(8, -1).toLowerCase();
}
}
@inhji
inhji / isso.js
Last active August 29, 2015 14:04
Isso
var isso = (function(root){
var value = undefined;
function isso(v){
return (v)? new inner(v): ex;
}
function inner(v){
this.value = v;
return this;
@inhji
inhji / betta.js-next
Last active August 29, 2015 14:03
Betta
/* ---------------------------------
___ __ __
\_ |__ _____/ |__/ |______
| __ \_/ __ \ __\ __\__ \
| \_\ \ ___/| | | | / __ \_
|___ /\___ >__| |__| (____ /
\/ \/ \/
ß("ßetta", "string");
// => true
@inhji
inhji / main.js
Created May 19, 2014 08:55
Underscore, Underscore.string and RequireJS
requirejs.config({
paths: {
'backbone' : '../lib/backbone/backbone',
'backbone.base' : '../lib/backbone/backbone.base',
'backbone.extensions' : '../lib/backbone/backbone.extensions',
'jquery' : '../lib/jquery/jquery',
'text' : '../lib/require/text',
'underscore' : '../lib/underscore/underscore',
'underscore.mixed' : '../lib/underscore/underscore.mixed',
'underscore.string' : '../lib/underscore/underscore.string'
@inhji
inhji / multi-export.js
Last active August 29, 2015 14:01
Multi Export (Browser, CommonJS, RequireJS)
// CommonJS
if (typeof exports !== "undefined") {
if (typeof module !== "undefined" && module.exports) {
exports = module.exports = betta;
}
// RequireJS
exports["\u00df"] = betta;
} else {
// Global method
root["\u00df"] = betta;