This file contains hidden or 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
| 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') |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| #! /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. |
This file contains hidden or 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
| # 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 |