Skip to content

Instantly share code, notes, and snippets.

xbacklight -dec 1
xbacklight -inc 1
@sblask
sblask / Mount NAS
Last active November 5, 2015 19:37
install nfs-common
sudo mkdir --parents /mnt/nfs/nas
sudo vim /etc/fstab
192.168.1.2:/data/Documents /mnt/nfs/nas/Documents nfs auto,bg,noatime,nolock 0 0
192.168.1.2:/data/Music /mnt/nfs/nas/Music nfs auto,bg,noatime,nolock 0 0
192.168.1.2:/data/Pictures /mnt/nfs/nas/Pictures nfs auto,bg,noatime,nolock 0 0
192.168.1.2:/data/Transmission /mnt/nfs/nas/Transmission nfs auto,bg,noatime,nolock 0 0
192.168.1.2:/data/Videos /mnt/nfs/nas/Videos nfs auto,bg,noatime,nolock 0 0
@sblask
sblask / Image Forward Regexp
Created August 14, 2015 09:50
Enhanced value for the extensions.imageforward.linkURLRegExp setting of https://addons.mozilla.org/en-US/firefox/addon/image-forward/
(^[^#\?]+\.(jpg|jpeg|png)((#|\?).*)?$|^[^#\?]+(#|\?).+\.(jpg|jpeg|png)(&;#)?.*$)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "trusty"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise"
@sblask
sblask / firegesture-open-link-or-duplicate-tab-in-background.js
Last active August 29, 2015 13:57
Firegesture script to open link or duplicate tab in background.
@sblask
sblask / firegesture-logically-open-link-or-duplicate-tab-next-to-current.js
Last active August 29, 2015 13:57
Firegesture script to logically open link or duplicate tab in background next to current tab, meaning it will be selected if current tab is closed or minimized. Requires tab deque extension.
sudo sh -c "ulimit -n 65535 && exec su $LOGNAME"
@sblask
sblask / .gtkrc-2.0
Created December 28, 2013 01:18
Remove pixel to the right of scroll bar to simplify scrolling using mouse pointer. (Xfce/Gtk)
style "scrollbar"
{
GtkScrollbar::trough-border = 0
}
class "Gtk*Scrollbar" style "scrollbar"
@sblask
sblask / national_geographic_wallpaper_download.sh
Last active December 29, 2015 09:39
Download all wallpapers from national geographic
#!/bin/bash
root=http://ngm.nationalgeographic.com
months=(january february march april may june july august september october november december)
download() {
year=$1
from=$2
to=$3
for month in $(seq $from $to)