Skip to content

Instantly share code, notes, and snippets.

View SteveRyherd's full-sized avatar
💭
I may be slow to respond.

Steve Ryherd SteveRyherd

💭
I may be slow to respond.
View GitHub Profile
@SteveRyherd
SteveRyherd / imgurdrop.sh
Last active December 14, 2015 06:39
Watches a directory for changes, when a new file is created or moved to the directory it is uploaded to imgur.com
#!/bin/bash
#
# imgurdrop
#
# Watches a folder (/tmp/imgur) for new files and uploads any new files
# in folder to imgur. The imgur URL will then appear in your clipboard.
#
# Intended to be used as a daemon, via dtach, screen, or simply "imgurdrop &"
#
# Originally inspired by:
@SteveRyherd
SteveRyherd / fstab
Created February 27, 2013 01:25
Sample /etc/fstab file for mounting a second volume with a single partition and multiple entry points. That way you don't have to worry about statically allocated partition sizes.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
#Entry for /dev/sda2 :
UUID=9985b8e0-c4d9-45b0-8ae5-5c2edf16186b / ext4 errors=remount-ro 0 1
#Entry for /dev/sda5 :
UUID=70205578-8c03-42c9-9d7c-18c5755550ca none swap sw 0 0