Skip to content

Instantly share code, notes, and snippets.


Gareth Jones symm

Block or report user

Report or block symm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
konradko /
Last active Dec 15, 2018
Install Golang 1.7 on Raspberry Pi
tar -C /usr/local -xzf go1.7.linux-armv6l.tar.gz
export PATH=$PATH:/usr/local/go/bin
etiennemarais / .zshrc
Last active Jul 18, 2018
Quick alias to remove and clean untagged docker images and stopped containers.
View .zshrc
# Credit to
# Add this to your bash profile.
clean_docker () {
# Remove stopped containers
docker rm $(docker ps -a -q);
# Remove untagged images
pwnsdx /
Last active Oct 4, 2019
Disable bunch of #$!@ in Sierra (Version 2.1). Using Catalina? Check
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after.
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# Agents to disable
TODISABLE=('' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '
chalasr / ContainerAwareVersion.php
Created Jun 9, 2016
DoctrineMigration - Container-aware migration with EntityManager example
View ContainerAwareVersion.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;
pudquick /
Last active Apr 29, 2016
A multiple file sender for (version 2.0+ only!), written in python
#!/usr/bin/env python
import socket, shutil, os.path, struct, sys
def usage():
print "For FBI 2.0+ only!"
print "If you need 1.0 compatibility, check:"
print "Usage: filename.cia [second.cia third.cia ...]"
def main():
ligurio /
Last active Aug 4, 2019
Support of OpenBSD pledge(2) and unveil(2) in programming languages
p4tin / text_adv-part-1.go
Last active Sep 12, 2018
Writing a Text Adventure Game in Go - Part 1
View text_adv-part-1.go
package main
import (
type Game struct {
Welcome string
petemcw /
Last active Nov 21, 2018
Mac OS X Docker Instructions using Dinghy

Docker Installation

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
View load-nvm.zsh
autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use
add-zsh-hook chpwd load-nvmrc
You can’t perform that action at this time.