Skip to content

Instantly share code, notes, and snippets.

@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.
@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.
# -*- 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"
# -*- 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"
@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)(&;#)?.*$)
@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
xbacklight -dec 1
xbacklight -inc 1
@sblask
sblask / clone_init
Last active February 22, 2016 00:46
curl --silent https://api.github.com/users/sblask/repos | jq --raw-output ".[] | .ssh_url" | xargs -L 1 git clone
# decrease speed
xinput set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Accel Profile" 6
xinput set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Accel Velocity Scaling" 1
xinput set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Accel Constant Deceleration" 7
xinput set-prop "AlpsPS/2 ALPS DualPoint Stick" "Device Accel Adaptive Deceleration" 60
# set mouse scroll speed
xinput set-prop "AlpsPS/2 ALPS DualPoint Stick" "Evdev Wheel Emulation Inertia" 100
http://redir.xing.com/link/*
https://slack-redir.net/link*
https://*.facebook.com/l.php*
https://deref-gmx.net/mail/client/*
https://outgoing.prod.mozaws.net/*
https://www.google.com/url*