Skip to content

Instantly share code, notes, and snippets.

@derjanb
derjanb / netpps.sh
Created May 2, 2016 07:43 — forked from joemiller/netpps.sh
shell: quick linux scripts for showing network bandwidth or packets-per-second
#!/bin/bash
if [ -z "$1" ]; then
echo
echo usage: $0 network-interface
echo
echo e.g. $0 eth0
echo
echo shows packets-per-second
# this is a config file for system to recognize WQHD monitor
# put this under /etc/X11/xorg.conf.d/
#
# Intel Graphics's HDMI(or Single-Link DVI) can not output 2560x1440 at 60Hz,
# for its limitation of dot clock
# This file provides settings of 2560x1440 by 55Hz using "reduced blanking"
# Thanks, http://blog.keshi.org/hogememo/2013/08/27/linux-hdmi-wqhd-tips
# and http://www.notebookcheck.net/2560x1440-or-2560x1600-via-HDMI.92840.0.html
Section "Device"
#!/bin/bash
#Inspired by http://blog.neutrino.es/2012/git-copy-a-file-or-directory-from-another-repository-preserving-history/
#Copy a file or directory out of a git repository, preserving history!
#Creates '/destination/patch/path' with patches that can be applied with git am
#e.g.
#0001-First-Commit.patch
#0002-Second-Commit.patch
#...
#Usage: copy-git-file.sh /some/repo/interesting/thing /destination/patch/path