Skip to content

Instantly share code, notes, and snippets.

View mahngiel's full-sized avatar
🏠
Working from home

Kris Reeck mahngiel

🏠
Working from home
View GitHub Profile
@mahngiel
mahngiel / github-issue-to-phab-task.py
Created April 24, 2017 17:20 — forked from dasevilla/github-issue-to-phab-task.py
Copy GitHub issues to Phabricator
import json
import os
import requests
GITHUB_TOKEN = os.environ.get('GITHUB_TOKEN')
if GITHUB_TOKEN is None:
raise Exception('Missing GITHUB_TOKEN from os.environ')
@mahngiel
mahngiel / .bash_profile.sh
Created March 20, 2017 17:58
PS1 for git status
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then
STAT=`parse_git_dirty`
echo "*${BRANCH}${STAT}*"
else
echo ""
fi
@mahngiel
mahngiel / php7_build_ubuntu.sh
Last active November 4, 2016 20:12 — forked from m1st0/php_build_ubuntu.sh
Compiling PHP 7 on Debian Jessie
#! /bin/bash
## PHP 7 Initial Compile ##
## Some help from the various places like these. ##
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
## Setup Ubuntu 15.04/15.10 ##
# Other dependencies for PHP 7. Add any missing ones from configure script
# complaints, plus some LAMP needs too.
@mahngiel
mahngiel / gist:3ee554b724276ddf72de
Created April 8, 2015 19:25
Stop VirtualBox time sync so you can pretend you're in the past \o/
# disable time sync
VBoxManage.exe setextradata "VMName" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1
# enable time sync
VBoxManage.exe setextradata "VMName" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 0