Skip to content

Instantly share code, notes, and snippets.

@oxidec
oxidec / README.md
Created December 6, 2019 16:45 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@oxidec
oxidec / brew_symlink_error_sierra.md
Created March 22, 2019 14:41 — forked from dalegaspi/brew_symlink_error_sierra.md
Homebrew Symlink errors in Mac OSX High Sierra
@oxidec
oxidec / readme.md
Created February 10, 2019 13:19 — forked from thomasdarimont/readme.md
Example for decoding a JWT Payload with your Shell (bash, zsh...)

Setup

Add this to your .profile, .bashrc, .zshrc...

decode_base64_url() {
  local len=$((${#1} % 4))
  local result="$1"
  if [ $len -eq 2 ]; then result="$1"'=='
  elif [ $len -eq 3 ]; then result="$1"'=' 
  fi
 echo "$result" | tr '_-' '/+' | openssl enc -d -base64
@oxidec
oxidec / pr.md
Created November 30, 2017 16:24 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@oxidec
oxidec / upgrade2.3-to-2.7.md
Last active August 29, 2015 14:27 — forked from mickaelandrieu/upgrade2.3-to-2.7.md
Complete migration guide from Symfony 2.3 LTS to Symfony 2.7 LTS

From Symfony 2.3 to Symfony 2.7: the complete guide

Objectives

  • assume your code doesn't use any deprecated from versions below Symfony 2.3
  • update dependencies from 2.3 to 2.7
  • do not support "deprecated", be "Symfony3-ready"
  • list tasks component by component, bundle by bundle.
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34&t=10781
Adjust your environment to include:
GOARM=5
GOOS=linux
GOARCH=arm
GOPATH=<root for packages>
$ sudo apt-get install mercurial # get mercurial
$ sudo apt-get install git # for go get ...
@oxidec
oxidec / hack.sh
Created April 1, 2012 00:05 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#