Skip to content

Instantly share code, notes, and snippets.

View bryceml's full-sized avatar

Bryce Larson bryceml

View GitHub Profile
@bryceml
bryceml / fix-steam.sh
Created April 30, 2016 17:38
Steam Fix for ubuntu 16.04 64 bit
#!/bin/bash
rm ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6
rm ~/.steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1
rm ~/.steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libgcc_s.so.1
rm ~/.steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libstdc++.so.6
rm ~/.steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libxcb.so.1
@bryceml
bryceml / 51-synaptics.conf
Created April 30, 2016 17:37
Middle Click Trackpad /etc/X11/xorg.conf.d/51-synaptics.conf
# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
# Option "OptionName" "value"
#
Section "InputClass"
@bryceml
bryceml / .Xmodmap
Created April 30, 2016 17:35
Make Caps-Lock escape
clear Lock
keysym Caps_Lock = Escape
@bryceml
bryceml / ipv6-rerunable
Last active March 16, 2016 06:09
dd-wrt(svn revision: 26653 on tp-link wdr3600) 6rd with firewall startup script for centurylink (qwest) in utah at least
#!/bin/sh
if [ -e /tmp/bryce-ipv6.lock ]
then
exit 0
fi
touch /tmp/bryce-ipv6.lock
WANIP=$(ifconfig ppp0 |grep 'inet addr:'|cut -d: -f2|cut -d' ' -f1)
if [ -n "$WANIP" ]
@bryceml
bryceml / Google Email Code
Created March 14, 2016 02:57
Auto Delete, Archive, and Fowrard Gmail with Google Scripts
//To install go to https://www.google.com/script/start/ and setup the triggers
function cleanUp() {
var delayDays = 7 // Enter # of days before messages are moved to trash
var maxDate = new Date();
maxDate.setDate(maxDate.getDate()-delayDays);
var label = GmailApp.getUserLabelByName("delete me after 7 days");
var threads = label.getThreads();
for (var i = 0; i < threads.length; i++) {
@bryceml
bryceml / ipv6
Created February 15, 2016 23:51
dd-wrt(svn revision: 26653 on tp-link wdr3600) 6rd with firewall startup script for centurylink (qwest) in utah at least
#!/bin/sh
WANIP=$(ifconfig ppp0 |grep 'inet addr:'|cut -d: -f2|cut -d' ' -f1)
if [ -n "$WANIP" ]
then
insmod /lib/modules/`uname -r`/ipv6.ko
insmod /lib/modules/`uname -r`/tunnel4.ko
insmod /lib/modules/`uname -r`/ip_tunnel.ko
insmod /lib/modules/`uname -r`/sit.ko