Skip to content

Instantly share code, notes, and snippets.

View benjamingwynn's full-sized avatar
💡

Benjamin Gwynn benjamingwynn

💡
  • United Kingdom
  • 15:02 (UTC +01:00)
View GitHub Profile
= 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.
<?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) {
@benjamingwynn
benjamingwynn / llamakangv1.sh
Created October 8, 2012 19:14
Llama Kang - Version 0.1
# 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;' */*/*/*
@benjamingwynn
benjamingwynn / gist:3708951
Created September 12, 2012 18:38 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
BUILDDATE=$(date +"%Y%m%d")
scp -P 2222 out/target/product/primoc/"cm-9-"$BUILDDATE"-UNOFFICIAL-primoc.zip" jmz@upload.goo.im:public_html/primoc/CM9/nightlies/"cm-9-"$BUILDDATE"-UNOFFICIAL-primoc.zip"
exit
@benjamingwynn
benjamingwynn / quickpush
Created May 24, 2012 17:52
A lovely little git extension
# 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
@benjamingwynn
benjamingwynn / Amy.sh
Created May 1, 2012 19:01
A simple build/upload script
## 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