Skip to content

Instantly share code, notes, and snippets.

View rsrchboy's full-sized avatar

Chris Weyl rsrchboy

View GitHub Profile
@rsrchboy
rsrchboy / smartcow.txt
Created August 4, 2014 17:24
smart cow!
____________________________________________________________________________
/ Care at the Beginning \
| |
| What lies still is easy to grasp; What lies far off is easy to anticipate; |
| What is brittle is easy to shatter; What is small is easy to disperse. Yet |
| a tree broader than a man can embrace is born of a tiny shoot; A dam |
| greater than a river can overflow starts with a clod of earth; A journey |
| of a thousand miles begins at the spot under one's feet. Therefore deal |
| with things before they happen; Create order before there is confusion. |
| |
@rsrchboy
rsrchboy / apt-get_install.log
Last active August 29, 2015 14:01
grub-imageboot for thinkpad bios upgrades
tychon# apt-get install grub-imageboot
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
grub-imageboot
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,424 B of archives.
After this operation, 43.0 kB of additional disk space will be used.
[master 57ec2a2] saving uncommitted changes in /etc prior to apt run
@rsrchboy
rsrchboy / git-config
Created April 22, 2014 22:49
git diff 02packages.txt.gz in a human-meaningful way :)
# in .git/config
[diff "gz"]
# behold, the power of zcat!
textconv = zcat
# and the lovely laziness!
cachetextconv = true
binary = true

Very simple. Just create a README.md or README.markdown for your project (if you haven't already) and add code like the following:

[![Fund me on Gittip](http://www.gittip.com/assets/7.0.8/logo.png)](https://www.gittip.com/<your account here>/)

Gittip needs a proper button for linking. The small logo file was the best I could find. It will look something like this:

Fund me on Gittip

@rsrchboy
rsrchboy / rc.local.sh
Last active November 30, 2022 10:48
Disable autosuspend for bluetooth device 8087:07dc
# ==> see http://ubuntuforums.org/showthread.php?t=2159645&page=6&p=12926730#post12926730
# ==> this is almost a direct copy of the solution presented there. Thanks, obadz! :)
# (aka http://ubuntuforums.org/member.php?u=923361)
#
# Include this somewhere it gets called at boot, for optimal effect; e.g. /etc/rc.local
# Prevents the Bluetooth USB card from autosuspending, which (as of this edit) borks it
BTUSB_DEV="8087:07dc"
BTUSB_BINDING="$(lsusb -d "$BTUSB_DEV" |
cut -f 1 -d : |
#!/bin/sh
# this script sets some parameters to get a useable configuration
# these changes are not persistent, you may want to include this in your autostart
# 1 finger = left click, 2 finger = right click, 3 finger = middle click
synclient TapButton2=3
synclient TapButton3=2
synclient ClickFinger2=3
synclient ClickFinger3=2
@rsrchboy
rsrchboy / etc-sudoers.d-docker
Created February 20, 2014 23:57
sudoers config snippet to enable password-less sudo for docker commands only
rsrchboy ALL=NOPASSWD: /usr/bin/docker
%docker ALL=NOPASSWD: /usr/bin/docker
@rsrchboy
rsrchboy / mappings.vim
Created December 13, 2013 21:02
screen, vim, tabs, and C-PgUp/C-PgDn mappings
" make C-PgUp and C-PgDn work, even under screen
" see https://bugs.launchpad.net/ubuntu/+source/screen/+bug/82708/comments/1
:nmap [5;5~
:nmap [6;5~
@rsrchboy
rsrchboy / .htaccess
Created December 11, 2013 19:44
primary google apps domain change work around
# google services for wps.io
RedirectMatch 301 ^/mail$ https://mail.google.com/a/wps.io
RedirectMatch 301 ^/cal(endar|)$ https://www.google.com/calendar/hosted/wps.io
RedirectMatch 301 ^/docs$ https://docs.google.com/a/wps.io
RedirectMatch 301 ^/drive$ https://drive.google.com/a/wps.io
@rsrchboy
rsrchboy / etc-gitconfig.ini
Last active March 15, 2019 14:51
Various ways to spread team-wide git-goodness in /etc/gitconfig.ini.Note that this explicitly allows for an additional included system-wide configuration, and is overridden in the usual fashion by the user's "global" ~/.gitconfig and the repository's own .git/config.
; this is... /etc/gitconfig!
;
; local system-wide changes should be made by editing:
; /etc/gitconfig.local
[color]
ui = auto
[push]
default = upstream
[branch]