Skip to content

Instantly share code, notes, and snippets.

View WillSams's full-sized avatar
🚀

Will Sams WillSams

🚀
View GitHub Profile
#!/bin/bash
echo "************** Getting HockeyIntelliGym to work on Debian ***************"
echo "You may be prompted for root credentials to complete the install."
echo "Adapted from details from http://jcward.com/Installing+AIR+Apps+On+Linux."
echo "This script assumes you've already paid & downloaded HockeyIntelliGym"
echo "Your HockeyIntelliGym file should be sitting in your HOME path:"
echo " $HOME/install_air_app HockeyIntelliGym.air"
echo "*************************************************************************"
@WillSams
WillSams / Dell-Inspiron-Ubuntu-Nvidia.txt
Last active March 20, 2016 10:13
Dell Inspiron Hybrid Graphics - getting NVIDIA card working
sudo apt-get remove nvidia* && sudo apt-get autoremove
This went well, no errors. Then I added a new file, /etc/modprobe.d/nouveau.conf
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
@WillSams
WillSams / Example Bottle.py App Running on Gandi.Net Simple Hosting Last
Last active April 21, 2016 12:19
Example Bottle.py App Running on Gandi.Net Simple Hosting Last
#git pull ssh+git://<login>@git.<datacenter>.gpaas.net/default.git
mkdir -p MyWebApp && cd MyWebApp
virtualenv venv
source venv/bin/activate
pip install bottle
pip freeze > requirements.txt
cat > hello.py <<EOF
# -*- coding: utf-8 -*-
@WillSams
WillSams / iso2wbfs
Created August 11, 2016 21:13 — forked from openback/iso2wbfs
Uses Wiimms ISO Tool to convert one or more Wii ISO into a WBFS file, properly named for use on non-WBFS partitions
#!/bin/bash
#===============================================================================
#
# FILE: iso2wbfs
#
# USAGE: ./iso2wbfs [option] FILE... [wbfs directory]
#
# DESCRIPTION: Uses wit to convert one or more Wii ISO into a WBFS file
# properly named for use on non-WBFS partitions.
#
#note, do wodim --devices to find the correct device
cdirip image.cdi -wodim
wodim dev=/dev/sg0 speed=8 -multi -audio taudio01.wav && rm taudio01.wav
wodim dev=/dev/sg0 speed=8 -multi -xa tdata02.iso && rm tdata02.iso
eject
sudo mount /dev/sda1 /mnt
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
sudo grub-install --root-directory=/mnt/ /dev/sda
sudo chroot /mnt
apt-get re-install 'linux-image-4.4*'
updateinitrams -u -k all
update-grub
exit
reboot
@WillSams
WillSams / clone_retropie_sd
Created August 28, 2016 12:29
Clonng RetroPie Install To Another SD Card
#Steps taken from http://bobbyromeo.com/technology/backup-clone-raspberry-pi-sd-card/
#On your RaspberryPI live system, do these steps. Have your target sd card unmounted
#in a SD card reader attached to one of the USB ports.
git clone https://github.com/billw2/rpi-clone.git
cd rpi-clone
cp rpi-clone /usr/local/sbin
sudo rpi-clone sdb -v -x
@WillSams
WillSams / Compiling and Installing Box2d on Linux
Last active February 2, 2021 08:23
Compiling/Installing Box2d on LInux
sudo su && apt-get install g++ cmake libglu-dev libxi-dev freeglut3-dev p7zip-full #only step in this gist Debian/Ubuntu/LinuxMint specific
wget http://box2d.googlecode.com/files/Box2D_v2.3.0.7z
7z x Box2D_v2.3.0.7z
cd Box2D_v2.3.0/Box2D/Build
cmake -DBOX2D_VERSION=2.3.0 \
-DBOX2D_INSTALL=ON \
-DBOX2D_INSTALL_DOC=ON \
-DBOX2D_BUILD_SHARED=ON \
-DBOX2D_BUILD_STATIC=ON \
-DBOX2D_BUILD_EXAMPLES=OFF \
@WillSams
WillSams / ipvanish_on_raspberry_pi.sh
Last active November 10, 2020 10:42
Set up IPVanish on Raspberry PI 3
# This script is designed to execute via the shell. Download this script on
# your Pi, edit the user and passwd above, execute the following commands:
# chmod +x ipvanish_on_raspberry_pi.sh
# sudo ./ipvanish_on_raspberry_pi.sh
# Of course, you can use this script just as a reference and type everything out.
# Place your ip vanish username here. For example, IPVANISHUSER=picrazy
IPVANISHUSER=
IPVANISHPASSWD=
@WillSams
WillSams / netbeans_cplusplus_note
Created September 18, 2016 19:38
Netbeans C++ note
Projects with external data outside of the working directory will have probems (i.e., java.lang.nullexception) if you use the default external console. Go to Project properties -> Run -> Console Type and select Standard Output.