Skip to content

Instantly share code, notes, and snippets.

View bryceml's full-sized avatar

Bryce Larson bryceml

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bryceml on github.
  • I am bryceml ( on keybase.
  • I have a public key ASCzg23PGX88-x2nhj2LeaHjppc8PfBziCH2Kr9tPJlwzQo

To claim this, I am signing this object:

bryceml / .vimrc
Created October 2, 2017 14:48
map q :q<CR>
"cmap w!! w !sudo tee %
cmap wr set tw=79
cmap nwr set tw=0
cmap np set list!
"cmap sp set spell spelllang=en_us
"set autoindent
set pastetoggle=<F2>
set expandtab
"set shiftwidth=4
bryceml / .gitconfig
Last active November 10, 2017 17:33
Git Config
graph = log --graph --pretty=format:'%C(auto)%d %h %cr %Cblue%an %Creset %s' --branches
ls = ls-files
count = rev-list HEAD --count
default = simple
bryceml / interfaces
Created June 8, 2017 21:21
debian/ubuntu kvm ipv6 bridge
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto eno1
bryceml / dhclient-ipv6
Created May 11, 2017 17:30
dhclient exit script for dhcpv6 prefix delegation, used on google fiber with debian 9
# vim:tw=80:tabstop=2:shiftwidth=2
# Copyright (c) 2012-present, Phil Dibowitz <>
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
bryceml / ocr
Created February 3, 2017 05:11
script for selecting a part of the screen for optical character recognition and putting it on the clipboard
# Dependencies: tesseract-ocr imagemagick scrot xsel
trap "rm $SCR_IMG*" EXIT
scrot -s $SCR_IMG.png
mogrify -modulate 100,0 -resize 400% $SCR_IMG.png #should increase detection rate
tesseract $SCR_IMG.png $SCR_IMG &> /dev/null
cat $SCR_IMG.txt | xsel -bi
bryceml / convert
Created May 16, 2016 04:30
Change m4a audio volume
ffmpeg-normalize *.m4a -l -15 -f
ffmpeg -i normalized-*.wav -c:a aac -strict -2 -b:a 96k out.m4a
bryceml /
Last active February 20, 2018 17:12
Lubuntu Preseed late_command for Linux Club Project
mkdir -p /home/user/Desktop
ln -s /var/www/html /home/user/Desktop/public_html
chown 1000:1000 -R /var/www/html
chown 1000:1000 -R /home/user
ln -s nodejs /usr/bin/node
sed -i -e 's/%sudo.*$/%sudo ALL=(ALL:ALL) NOPASSWD:ALL/' /etc/sudoers
dpkg -i /root/atom-i386.deb
bryceml / ubuntu-server.seed
Last active February 25, 2019 22:01
Lubuntu Preseed for Linux Club Project
# Mostly based on the Ubuntu installation guide
d-i debconf/priority string critical
# Preseeding only locale sets language, country and locale.
d-i debian-installer/language string en
d-i debian-installer/country string US
d-i debian-installer/locale string en_US.UTF-8
bryceml / Portal
Last active April 30, 2016 18:42
Fix Portal 2
LD_PRELOAD='/usr/$LIB/' DISPLAY=:0 steam
# From