Skip to content

Instantly share code, notes, and snippets.

View bripkens's full-sized avatar
🙃

Ben Blackmore bripkens

🙃
View GitHub Profile
@bripkens
bripkens / install-xbmc-on-fire-tv.bash
Last active August 29, 2015 14:09
Install XBMC on Kindle Fire TV
#!/bin/bash
set -eo pipefail
FIRE_TV_IP="192.168.0.105"
XBMX_APK="http://mirrors.xbmc.org/releases/android/arm/xbmc-13.2-Gotham-armeabi-v7a.apk"
export PATH="$PATH:/Applications/Android\ Studio.app/sdk/platform-tools:/Applications/Android\ Studio.app/sdk/tools"
adb kill-server
$ curl -X POST --header "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0d2l0dGVyIjoiQmVuUmlwa2VucyIsImVtYWlsIjoiYmVuLnJpcGtlbnNAY29kZWNlbnRyaWMuZGUiLCJjb21wYW55IjoiY29kZWNlbnRyaWMgQUcifQ.7NnQqoNmh3UKl81cgyULwVrIpRiY7K-ABeeZBGpHbxI" https://auth0.com/challenges/devoxx -v
* Hostname was NOT found in DNS cache
* Trying 54.183.201.90...
* Connected to auth0.com (54.183.201.90) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: *.auth0.com
* Server certificate: EssentialSSL CA
* Server certificate: COMODO Certification Authority
> POST /challenges/devoxx HTTP/1.1
> User-Agent: curl/7.37.1
@bripkens
bripkens / keybase.md
Last active October 17, 2022 11:58
keybase.md

Keybase proof

I hereby claim:

  • I am bripkens on github.
  • I am bripkens (https://keybase.io/bripkens) on keybase.
  • I have a public key ASCGdwOksdAn9dru7yap3-xQDLnpGll1pLrVRDDQEm5bOwo

To claim this, I am signing this object:

@bripkens
bripkens / affirmation
Created May 22, 2014 05:43
MuleSoft Contributor Agreement Acceptance by Ben Ripkens
I, Ben Ripkens, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Thu May 22 2014 07:43:30 GMT+0200 (CEST)
@bripkens
bripkens / gist:7b63afad7a81fd6184e6
Created May 4, 2014 18:41
maven release commands and process
mvn release:clean
mvn release:prepare
mvn release:perform
# go to https://oss.sonatype.org/ -> Staging repositories -> close -> check verification status -> release
@bripkens
bripkens / unfuck.bash
Created February 4, 2014 12:58
This gist is meant to be a joke. Do not use it. Bad things may happen! :-D
unfuck() {
remote=$(git remote -v | head -n 1 | awk '{print($2)}')
d=$(pwd)
cd ..
rm -rf $d
git clone $remote
}
@bripkens
bripkens / event-loop-nashorn.js
Last active August 21, 2021 06:18
Java 8 Nashorn event loop "polyfill". javax.script.ScriptEngine#eval calls should immediately call window.main to enter the event loop and thus to avoid concurrency issues. The XMLHttpRequest simulation is not yet finished.
(function(context) {
'use strict';
var Timer = Java.type('java.util.Timer');
var Phaser = Java.type('java.util.concurrent.Phaser');
var TimeUnit = Java.type('java.util.concurrent.TimeUnit');
var AsyncHttpClient = Java.type('com.ning.http.client.AsyncHttpClient');
var timer = new Timer('jsEventLoop', false);
var phaser = new Phaser();
@bripkens
bripkens / functional-table.html
Created December 19, 2012 19:26
Functional programming in JavaScript example with Lo-Dash
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.0.0-rc.3/lodash.js"></script>
<table id="people">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Email</th>
<th>Occupation</th>
</tr>
</thead>
@bripkens
bripkens / eqeqeq.js
Created November 24, 2012 06:25
'JavaScript, State of the Art' article series: eqeqeq
> "42" === 42
false
> undefined === null
false
> 42 === 42.0
true
@bripkens
bripkens / type-coercion.js
Created November 24, 2012 06:24
'JavaScript, State of the Art' article series: type coercion
> "20" - 10
10
> "20" + 10
2010
> "42" == 42
true
> undefined == null
true
> Number.MIN_VALUE + 1 == 1
true