Skip to content

Instantly share code, notes, and snippets.

View jeroenbourgois's full-sized avatar
🐢

Jeroen Bourgois jeroenbourgois

🐢
View GitHub Profile
@jeroenbourgois
jeroenbourgois / dev-setup.md
Last active April 2, 2019 07:25
Setting up our jackjoe server as dev machine

Dev machine setup

This sets up a dev machine to work on. It is setup with the following:

  • Ubuntu (to get more cutting edge versions more easily)
  • openVPN
  • base packages (git, curl, ...)
  • node
  • Elixir/Erlang
  • nginx
  • MySQL
@jeroenbourgois
jeroenbourgois / gist:e869496e59c33b03eaf5b1dc3914d7c1
Last active November 23, 2018 07:37
Kinesis Advantage2 Remapping
[scroll]>[shutdn]
[kp=]>[kp=mac]
[lctrl]>[lwin]
[kp-lctrl]>[kp-lwin]
[rctrl]>[rwin]
[kp-rctrl]>[kp-rwin]
[rwin]>[rctrl]
[kp-rwin]>[kp-rctrl]
[rshift]>[hyphen]
[delete]>[lwin]
# silver searcher
apt-get install silversearcher-ag
# silver searcher
apt-get install silversearcher-ag
brew reinstall --with-openssl --with-libssh2 curl openssl
brew uninstall --ignore-dependencies php71 php71-intl php71-ast php71-mcrypt
brew install --force --with-httpd php72 php72-ast php72-intl --with-homebrew-curl --with-homebrew-libxslt --without-snmp --build-from-source
@jeroenbourgois
jeroenbourgois / remove-el.js
Created February 2, 2018 07:52
Remove DOM element
function removeElement(el, retry) {
if (el && el.parentNode) {
el.parentNode.removeChild(el)
}
if (retry) {
setTimeout(function() {
removeElement(el, false)
}, 1000)
}
@jeroenbourgois
jeroenbourgois / parseQueryString.js
Created February 2, 2018 07:51
parse a querystring in javascript
function parseQueryString(queryString) {
queryString = queryString.substring(1)
var params = {},
queries,
temp,
i,
l
// Split into key/value pairs
queries = queryString.split('&')
// Convert the array of strings into an object

Keybase proof

I hereby claim:

  • I am jeroenbourgois on github.
  • I am jeroenbourgois (https://keybase.io/jeroenbourgois) on keybase.
  • I have a public key ASBecos47AER1A-K2TuMB_TfAdA9x6jix0XfOgDNNxYCkAo

To claim this, I am signing this object:

package api
import (
"bitbucket.org/jackjoe/timr/cmd/timr"
"net/http"
"net/http/httptest"
"strings"
"testing"
. "github.com/smartystreets/goconvey/convey"
React: