The other day, I saw a thread on Reddit where a fellow was looking for a program which could duplicate the functionality of a system called Mailstore Home, a piece of Windows software which can be used to archive copies of your e-mail for later searching. It features the ability to encrypt the emails, separate them by which accounts they were recieved in, and search them quickly. When I saw his question I thought surely some equivalent had to exist already, because all of that is pretty readily done with existing Unix software. In fact, it's pretty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
export w=$(pwd) | |
export default_announcers="-a udp://tracker.openbittorrent.com:80 \ | |
-a udp://tracker.publicbt.com:80 \ | |
-a udp://tracker.istole.it:80 \ | |
-a udp://tracker.btzoo.eu:80/announce \ | |
-a http://opensharing.org:2710/announce \ | |
-a udp://open.demonii.com:1337/announce \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
background yes | |
use_xft yes | |
xftfont Liberation Mono:size=8 | |
xftalpha 0.5 | |
update_interval 5.0 | |
total_run_times 0 | |
own_window yes | |
own_window_class Conky | |
own_window_transparent yes | |
own_window_type desktop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This auto script sets up the core packages, shared with Debian main, | |
# for my "Fireaxe" hobby distribution, but it's also got alot of stuff | |
# configured that other people could use. That said, it's definitely | |
# not got the full set of configurations/customizations and stuff. | |
#-o Acquire::Check-Valid-Until=false | |
if [ -z "$USERNAME" ]; then | |
USERNAME=user | |
fi | |
if [ -z "$HOSTNAME" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
#Source this into your bash_aliases file for use. | |
jkllcp(){ | |
[ -z "$1" ] && exit 1 | |
TITLE=$(echo $1 | tr " " "-") | |
DATE=$(date +%Y-%m-%d) | |
if [ -d "_posts" ]; then | |
echo "--- | |
layout: post |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This will set us up to use the integrated GPU first, and the discrete GPU only when specified | |
if [ $(xrandr --listproviders | grep nouveau | grep Intel) ]; then | |
xrandr --setprovideroffloadsink nouveau Intel | |
elif [ $(xrandr --listproviders | grep radeon | grep Intel) ]; then | |
xrandr --setprovideroffloadsink nouveau Intel | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
#This scipt searches for files larger than 100mb under the working directory and removes | |
#them from git automatically using git filter-branch. This makes it kind of dangerous, | |
#but also automatic and pretty useful. | |
WORKING_DIR=$(pwd) | |
for file in $(find "$WORKING_DIR" -size +100000000c -ls | grep -v ".git"); do | |
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch $file" HEAD | |
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
# Author: David Underhill | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete, e.g., git-delete-history path1 path2 | |
# | |
# retrieved from: http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/ | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
de.yano.nu:8080 | |
-----BEGIN PUBLIC KEY----- | |
MIHKMA0GCSqGSIb3DQEBAQUAA4G4ADCBtAKBrAHH17C/zqdzBW3y8Rov0UVFkme6 | |
Idfd1O7wXckTdbd+bu7rClAFMbGijMlxYmNeavhJfyYmYct89dNlIyrnK9fa5PeL | |
q1g3zj5XybWi+UYrnwjcsKzCsZrWmqjx4ewICzCRypqj76k73eWwTxJ0F3ZWm/Va | |
VVe6slBxa/Vz6G/A5lgUUWYnktG9BnwnU1CCbQVE9vKnI/Kfv/mfBXbhkc0knRbR | |
JpMo07AyY2ECAwEAAQ== | |
-----END PUBLIC KEY----- | |
perspectives1.schulte.org:8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
if [ -f /usr/bin/srm ]; then | |
alias rm=/usr/bin/srm | |
fi | |
if [ -f "$1" ]; then | |
TEMP=$(cat "$1" | grep "work_dir") | |
TEMP=$(echo "$TEMP" | tr -d " ") | |
export $(echo "$TEMP" | tr -d "\t") |