Skip to content

Instantly share code, notes, and snippets.

View KsaRedFx's full-sized avatar

Robert "Red" English KsaRedFx

  • Broken Gear
View GitHub Profile

Keybase proof

I hereby claim:

  • I am KsaRedFx on github.
  • I am ksaredfx (https://keybase.io/ksaredfx) on keybase.
  • I have a public key whose fingerprint is 0F33 4DB3 4F1C 4730 4A91 913D D3CA 0860 11A1 BBD1

To claim this, I am signing this object:

@KsaRedFx
KsaRedFx / encoder.sh
Last active August 29, 2015 14:16
Gource video generation scripts
echo "Starting to encoding process"
mkdir --parents "video/mp4"
for video in complete; do
for speed in fast slow medium; do
file="${video}_${speed}"
echo "Encoding ${file}"
@KsaRedFx
KsaRedFx / make_popcorn.sh
Last active August 29, 2015 14:08
Script to build Popcorn Time and optionally clone it
#!/bin/bash
clone_repo="True"
if [ -z "${1}" ]; then
clone_url="https://git.popcorntime.io/stash/scm/pt/popcorn-app.git"
elif [ "${1}" == "ssh" ]; then
clone_url="ssh://git@git.popcorntime.io/pt/popcorn-app.git"
else
clone_url="${1}"
fi
@KsaRedFx
KsaRedFx / install-live.sh
Last active October 29, 2022 19:38
Install Ubuntu with debootstrap and chroot, without rebooting the host machine or using a iso
#!/bin/bash
echo "--------------------------------------------------------------------------------------"
echo "This script builds a full operating system with debootstrap and chroot"
echo "To use this script, please mount an empty partition or alternate disk"
echo ""
echo "If you are using btrfs, and using subvolumes, mount the root subvolume explicity"
echo "Example: mount /dev/sdb1 /media/bootstrap -o subvol=@"
echo "Failure to do this will cause the script to break. It needs the root directory"
echo ""
echo "The script is specifically built for Ubuntu"
@KsaRedFx
KsaRedFx / wireless-wpa.sh
Created May 3, 2014 22:43
Enabling Wireless from CLI
#!/bin/bash
iface=wlan0
ifconfig -a
echo "Read the above text and input the name of the device you think is your wireless card (usually wlan0) "
read iface
ifconfig $iface down
ifconfig $iface up
iwlist $iface scan | grep -i ESSID
echo "Read the above text and input the name of the network you wish to connect to"
@KsaRedFx
KsaRedFx / white-listconvert.py
Last active August 29, 2015 13:59
white-listconvert.py
import os
import json
import urllib2
from itertools import izip, izip_longest
from urllib import quote, quote_plus as _quote_plus
mode=None
@KsaRedFx
KsaRedFx / uuidconvert.py
Last active August 29, 2015 13:59 — forked from Byteflux/uuidconvert.py
python uuidconvert.py <worldpath>
import sys
import os
import math
import urllib2
import json
import time
import shutil
import uuid
from nbt import nbt # pip install nbt