Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rsrchboy's full-sized avatar

Chris Weyl rsrchboy

View GitHub Profile
@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
@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 : |
@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]
@rsrchboy
rsrchboy / darwin-for-linuxer.md
Created June 5, 2018 17:55
Darwin survival guide for Linux people
@rsrchboy
rsrchboy / autoload-rb-fzf.vim
Last active March 5, 2018 01:23
blog post -- fzf project snippets
fun! rsrchboy#fzf#FindOrOpenTab(work_dir) abort
" loop over our tabs, looking for one with a t:git_workdir matching our
" a:workdir; if found, change tab; if not fire up fzf again to find a file
" to open in the new tab
for l:tab in (gettabinfo())
if get(l:tab.variables, 'git_workdir', '') ==# a:work_dir
exe 'tabn ' . l:tab.tabnr
return
#!/usr/bin/env sh
git prune
@rsrchboy
rsrchboy / PrEP.md
Last active July 9, 2017 02:42
PReP resources Minnesota
Date: Mon, 13 Mar 2017 15:44:23
From: car2go <no-reply@communications.car2go.com>
Reply-To: re-23X7TACD-23O7LGYF-12RUTPL@communications.car2go.com
To: cweyl@alumni.drew.edu
Subject: Mercedes-Benz car2gos for just $0.41 per minute
Mercedes-Benz car2gos for just $0.41 per minute
-----BEGIN CERTIFICATE-----
MIIC/TCCAeWgAwIBAgIBATANBgkqhkiG9w0BAQsFADAfMR0wGwYDVQQDExR5b3Vy
aG9zdC5leGFtcGxlLmNvbTAgFw0xNzAxMjIxOTQyMjNaGA85OTk5MTIzMTIzNTk1
OVowHzEdMBsGA1UEAxMUeW91cmhvc3QuZXhhbXBsZS5jb20wggEiMA0GCSqGSIb3
DQEBAQUAA4IBDwAwggEKAoIBAQDlH/uThf//V8MrksNjaq0VpCAPYspqOaZvau3E
X7wuvewUiK+72mqzgwsTo4ogLgul1fm7asDl32d/tazrxZ/p6VwUkixBQJSlztfy
uzS1t8uDMBNlZCa5ay9h1gb91gjCHd0jP+z6lKaUrxMEEZZ6VjCJmWTiDviZf6xK
WJYsZM7dhKRjVdv+LA4BvI3xxx/z5lk8gC7JXtian3A2gUUTKOxeIESRfm3tLUE3
73CHsTPONJ/yXtlRu3IztE4GZR4s/zMJfIkqkPRqkVsIlAwgHWtFpVND0gzTM3sB
WhV9f1xhdhNqv09i7bNZMZ5JHgKYjFOIf1lg4DZOqdDOEKT7AgMBAAGjQjBAMA8G
@rsrchboy
rsrchboy / keybase.md
Created October 8, 2016 20:03
keybase.md

Keybase proof

I hereby claim:

  • I am rsrchboy on github.
  • I am rsrchboy (https://keybase.io/rsrchboy) on keybase.
  • I have a public key ASA9kQ4nM-6KGclbHkj2y8n0xBnQrMryNu4FDEFozz1qswo

To claim this, I am signing this object: