wget https://storage.googleapis.com/golang/go1.7.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is the clock interface. It's really simple, you write it once, use it anywhere. | |
* Cool extra things you can do: | |
* - have it return custom value objects | |
* - separate method for currentDate() without time part | |
*/ | |
interface Clock | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'vendor/autoload.php'; | |
use Jose\Factory\JWKFactory; | |
use Jose\Factory\JWSFactory; | |
$key_file = '/PATH/TO/KEY/FILE'; | |
$secret = null; // If the key is encrypted, the secret must be set in this variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Credit to http://jimhoskins.com/2013/07/27/remove-untagged-docker-images.html | |
# | |
# Add this to your bash profile. | |
# | |
clean_docker () { | |
# Remove stopped containers | |
docker rm $(docker ps -a -q); | |
# Remove untagged images |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Migrations; | |
use AppBundle\Entity\Foo; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Doctrine\DBAL\Schema\Schema; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
Minimum title versions when installing on 11.0.0-33
based on https://gist.github.com/TuxSH/a2ff24d82bdb00ce2c6a35d9cd3f53bc
TitleID | Region | Desc | MinDec | MinHex |
---|---|---|---|---|
0004001000020000 |
JPN | System Settings | 10240 | 0x2800 |
0004001000021000 |
USA | System Settings | 9216 | 0x2400 |
0004001000022000 |
EUR | System Settings | 9216 | 0x2400 |
0004001000026000 |
CHN | System Settings | 3072 | 0xc00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket, shutil, os.path, struct, sys | |
def usage(): | |
print "For FBI 2.0+ only! https://github.com/Steveice10/FBI" | |
print "If you need 1.0 compatibility, check: https://gist.github.com/pudquick/66ae2238367ae76528e1" | |
print "Usage: informant2.py ip.address.here filename.cia [second.cia third.cia ...]" | |
sys.exit(1) | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
type Game struct { | |
Welcome string |
A great way to get Docker running smoothly on OS X is to use the awesome project Dinghy. It is basically:
Docker on OS X with batteries included, aimed at making a more pleasant local development experience. Runs on top of docker-machine.
Some of the benefits are:
- Faster volume sharing using NFS rather than built-in virtualbox/vmware file shares
- Filesystem events work on mounted volumes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoload -U add-zsh-hook | |
load-nvmrc() { | |
if [[ -f .nvmrc && -r .nvmrc ]]; then | |
nvm use | |
fi | |
} | |
add-zsh-hook chpwd load-nvmrc |