Skip to content

Instantly share code, notes, and snippets.

View brycied00d's full-sized avatar
👍
"Hasn't fucked up recently" engineer.

Bryce Chidester brycied00d

👍
"Hasn't fucked up recently" engineer.
  • Tigard, OR
View GitHub Profile
@brycied00d
brycied00d / unpack_and_edit.sh
Created October 31, 2012 22:02
Script to help/automate the unpacking/edit/repacking of our netboot BIOS update images
#!/bin/bash
FILE=${1:-ERROR}
MOUNTPATH=${2:-/mnt/image/}
OWD=$PWD
if [ "x$FILE" = "xERROR" ]
then
echo "No file specified"
exit 1
fi
@brycied00d
brycied00d / xbindkeys_printscreen.sh
Last active October 10, 2015 19:48
Linux Printscreen+Dropbox Script
#!/bin/bash
capturefile="$HOME/Dropbox/Public/screenshot_`date +%F_%H-%M-%S`.png"
#echo $capturefile
scrot -s "$capturefile"
URL=$(dropbox puburl "$capturefile")
echo -n "$URL" | xclip -selection p
echo -n "$URL" | xclip -selection c
notify-send "Screenshot Uploaded" "Screenshot uploaded as $URL"
echo "$URL"
@brycied00d
brycied00d / dwstat.pl
Created April 6, 2012 04:53
la11111's dwstat
#!/usr/bin/perl -w
use strict;
use threads;
use threads::shared;
my $script_dir = $ENV{"HOME"}."/.dwm/dwstat";
my $divider = " | ";
@brycied00d
brycied00d / multi-bg-set.sh
Created September 3, 2011 03:13
Multi-monitor background splitter and setter
#!/bin/bash
# Easy to use!
# awsetbg -u /path/to/multi-bg-set.sh -r /path/to/images
# Or, just call it by itself: /path/to/multi-bg-set.sh /path/to/some/image.ext
INPUT=$1
if [ ! -f "$INPUT" ]
then
echo "Input file must exist!"
exit 1