git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
## WARNING! You must do the following pre-hand: sudo apt-get install ncftp | |
# | |
# set FTP information | |
#- name of ftp server | |
FTP_HOST=goo.im | |
#- username for ftp server | |
FTP_LOGIN=<insert username> | |
#- password of ftp server | |
FTP_PASSWORD=<insert password> | |
# start script |
# Made by Benjamin Gwynn | |
# Copy to ~/bin and then do "chmod a+x ~/bin/quickpush" in terminal | |
echo Quickpushing... | |
git add . | |
git commit -a | |
git pull origin master | |
git push origin master | |
echo Quickpush complete |
BUILDDATE=$(date +"%Y%m%d") | |
scp -P 2222 out/target/product/primoc/"cm-9-"$BUILDDATE"-UNOFFICIAL-primoc.zip" [email protected]:public_html/primoc/CM9/nightlies/"cm-9-"$BUILDDATE"-UNOFFICIAL-primoc.zip" | |
exit |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
# LLAMAKANG 0.1 | |
# | |
# THE ULTIMATE KANGING SYSTEM | |
# CyanogenMod -> ProjectLlama | |
perl -pi -w -e 's/CyanogenMod/ProjectLlama/g;' * | |
perl -pi -w -e 's/CyanogenMod/ProjectLlama/g;' */* | |
perl -pi -w -e 's/CyanogenMod/ProjectLlama/g;' */*/* | |
perl -pi -w -e 's/CyanogenMod/ProjectLlama/g;' */*/*/* |
<?php | |
$folder = 'benjaminimage/'; | |
$exts = 'png'; | |
$files = array(); $i = -1; | |
if ('' == $folder) $folder = './'; | |
$handle = opendir($folder); | |
$exts = explode(' ', $exts); | |
while (false !== ($file = readdir($handle))) { | |
foreach($exts as $ext) { |
= HOW TO: A detailed guide to VGA Passthrough = | |
Firstly, be aware that this task takes a great deal of time, patience and [[determination]], as well as a keen attitude to learning. '''You will also need previous knowledge using Linux and Windows. This is not for the light of heart.''' | |
Secondly, I will be writing this guide for Arch Linux, as it is the Linux distribution I use and am most familiar with. You may be able to roughly follow this guide on other Linux distributions if you substitute steps specifically for Arch with the steps needed for your OS, but this won’t be covered in this guide. | |
Thirdly, before reading this guide I strongly suggest you become familiar with Arch Linux, including its package manager, pacman, as well as building from the AUR. It may also be helpful to fully read through the additional resources listed below. | |
This was written as part of the 'just-do-it' challenge put forth by @Atomic_Charge. |
/* TeamSteam - written by Benjamin Gwynn for ts3.xenxier.com */ | |
const TeamspeakQuery = require('teamspeak-query') | |
, query = new TeamspeakQuery('127.0.0.1', 10011) | |
, TARGET_CLIENT = 1 | |
, TARGET_CHANNEL = 2 | |
, TARGET_SERVER = 3 | |
, Steam = require("steam-webapi") | |
, console = require("better-console") | |
, jsonfile = require("jsonfile") |
const TeamspeakQuery = require('teamspeak-query') | |
, query = new TeamspeakQuery('127.0.0.1', 10011) | |
, TARGET_CLIENT = 1 | |
, TARGET_CHANNEL = 2 | |
, TARGET_SERVER = 3 | |
, Steam = require("steam-webapi") | |
, console = require("better-console") | |
, jsonfile = require("jsonfile") | |
, SQ_PASSWD = "oh boy this sure is a secret password" |
// copy current children except a certain child while keeping all refs - a pain in the ass. | |
let i = oldParent.childNodes.length - 1 | |
for (; i >= 0; i -= 1) { | |
const c = oldParent.childNodes[i] | |
// whatever, your condition here | |
if (c.nodeName.toLowerCase() !== "slot") { | |
newParent.appendChild(c) |