Skip to content

Instantly share code, notes, and snippets.

View teopeurt's full-sized avatar

Don Onwunumah teopeurt

  • PigStyCoders
  • Global
View GitHub Profile

Keybase proof

I hereby claim:

  • I am teopeurt on github.
  • I am donwunumah (https://keybase.io/donwunumah) on keybase.
  • I have a public key ASCjaej9tYMIU4zUlJe4TljHtFrohGQSKUTv4sOPob9Q5Ao

To claim this, I am signing this object:

@teopeurt
teopeurt / Fresh macOS Setup.md
Created July 17, 2019 14:52 — forked from ashfurrow/Fresh macOS Setup.md
All the stuff I do on a fresh macOS Installation

Apps to install from macOS App Store:

  • Pastebot
  • GIF Brewery
  • Slack
  • Keynote/Pages/Numbers
  • 1Password
  • OmniFocus 2
  • Airmail 3
  • iA Writer
@teopeurt
teopeurt / multiple_ssh_setting.md
Created April 8, 2018 14:14 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@teopeurt
teopeurt / gist:e91484897ecfef3bc5ddf02b99066e21
Created May 10, 2017 11:24
Comparing *all* file differences in a directory between git branches.
git diff develop..master .
@teopeurt
teopeurt / p4diff
Last active May 10, 2017 11:26
This depends on p4merge shell script - allows using p4merge as visual merge.
#!/bin/sh
# chmod a+x ~/bin/p4diff
# git config --global diff.external p4diff
[ $# -eq 7 ] && ~/bin/p4merge "$2" "$5"
@teopeurt
teopeurt / p4merge
Last active May 12, 2019 16:53
command line for p4merge usage.
#!/bin/bash
# chmod +x and copy to ~/bin/p4merge
# then
# git config --global merge.tool p4merge
# git config --global mergetool.keepTemporaries false
# git config --global mergetool.prompt false
if [ -n "$GIT_DIR" ]; then
if $(git submodule | grep -q $2); then
tmp=$(mktemp -t $2) && trap 'rm -rf $tmp' EXIT HUP INT QUIT TERM
#!/bin/bash
CONTAINER=$2
HOSTPORT=$1
CONTAINERPORT=$3
container_ip=$(lxc info $CONTAINER | grep 'eth0' | head -n1 | awk '{print $3}')
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport $HOSTPORT -j DNAT \
--to-destination $container_ip:$CONTAINERPORT
sudo aptitude update
sudo aptitude upgrade
sudo apt-get install -y httpie htop zsh git mosh
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install -y lxd
#!/bin/bash
# Description: Using Docker (requires docker to be installed http://www.docker.io/gettingstarted/ ), spawn a postgresql instance and a dynamically configured treeio instance
# Author: Adam Awan
# Email: [email protected]
# Set the port to forward for Tree.io
TREEIO_PORT="80"
# Create a PostgreSQL Instance
echo "Retrieving adam/pglite PostgreSQL Container..."
@teopeurt
teopeurt / quickfix++
Created October 26, 2012 13:22
Homebrew Gist
require 'formula'
class Quickfix < Formula
homepage 'http://www.quickfixengine.org/index.html'
url 'http://downloads.sourceforge.net/project/quickfix/quickfix/1.13.3/quickfix-1.13.3.tar.gz'
md5 '1e569a32107ecfc1de9c15bdcb5dc360'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",