One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| git remote prune origin | |
| git branch -r --merged master | egrep -iv '(master|develop)' | sed 's/origin\///g' | xargs -n 1 git push --delete origin |
| # Defaults / Configuration options for homebridge | |
| # The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others) | |
| HOMEBRIDGE_OPTS=-U /var/lib/homebridge | |
| # If you uncomment the following line, homebridge will log more | |
| # You can display this via systemd's journalctl: journalctl -f -u homebridge | |
| # DEBUG=* |
| copy() { | |
| if [[ $1 =~ ^-?[hH] ]]; then | |
| echo "Intelligently copies command results, text file, or raw text to" | |
| echo "OS X clipboard" | |
| echo | |
| echo "Usage: copy [command or text]" | |
| echo " or pipe a command: [command] | copy" | |
| return | |
| fi |
| import os,sys,importlib | |
| from os import path | |
| def RunScript(sPath,sFile,bDirect=2): | |
| ''' Run a Python Script via differenct Methods | |
| @param sPath Sting containing Only the | |
| Absolute Path of the File to Execute | |
| @param sFile String containing Only the File Name to Execute | |
| @param bDirect Flag indicates how to run the Script | |
| 0 = Run using Exec Technique | |
| 1 = Run directly in Shell |
| #!/usr/bin/python | |
| import sys | |
| import os, shutil | |
| import subprocess | |
| import os.path | |
| from datetime import datetime | |
| ######################## Functions ######################### |
| # A list of possible usernames to reserve to avoid | |
| # vanity URL collision with resource paths | |
| # It is a merged list of the recommendations from this Quora discussion: | |
| # http://www.quora.com/How-do-sites-prevent-vanity-URLs-from-colliding-with-future-features | |
| # Country TLDs found here: | |
| # http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains | |
| # Languages found here: |
| #!/bin/bash | |
| # Copyright 2010 Eric Ryan Harrison <[email protected]> | |
| # Inspired by: | |
| # http://daniel.haxx.se/blog/2010/12/14/add-latency-to-localhost/ | |
| if [ -n "$1" ] | |
| then | |
| if [ "$1" = "off" ] | |
| then | |
| tc qdisc del dev lo root |