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
konradko / golang_on_rpi.md
Last active Dec 15, 2018
Install Golang 1.7 on Raspberry Pi
View golang_on_rpi.md
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
@etiennemarais
etiennemarais / .zshrc
Last active Jul 18, 2018
Quick alias to remove and clean untagged docker images and stopped containers.
View .zshrc
#
# 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
@pwnsdx
pwnsdx / disable.sh
Last active Oct 4, 2019
Disable bunch of #$!@ in Sierra (Version 2.1). Using Catalina? Check https://gist.github.com/pwnsdx/1217727ca57de2dd2a372afdd7a0fc21
View disable.sh
#!/bin/bash
# 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=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi
@chalasr
chalasr / ContainerAwareVersion.php
Created Jun 9, 2016
DoctrineMigration - Container-aware migration with EntityManager example
View ContainerAwareVersion.php
<?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;
View minversions.md
@pudquick
pudquick / informant2.py
Last active Apr 29, 2016
A multiple file sender for https://github.com/Steveice10/FBI (version 2.0+ only!), written in python
View informant2.py
#!/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():
@ligurio
ligurio / pledge_unveil_support.md
Last active Aug 4, 2019
Support of OpenBSD pledge(2) and unveil(2) in programming languages
View pledge_unveil_support.md
@p4tin
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 (
"fmt"
"math/rand"
"time"
)
type Game struct {
Welcome string
@petemcw
petemcw / docker_instructions.md
Last active Nov 21, 2018
Mac OS X Docker Instructions using Dinghy
View docker_instructions.md

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
fi
}
add-zsh-hook chpwd load-nvmrc
You can’t perform that action at this time.