Skip to content

Instantly share code, notes, and snippets.

View eyedeekay's full-sized avatar

idk eyedeekay

  • http://nhmfjkbvpabqhrop7pqyi2pors4iaydlmsyvyy6npgymgobllyaq.b32.i2p/
View GitHub Profile
@eyedeekay
eyedeekay / od2torrent
Last active October 17, 2017 23:55
Turn an open directory into a whole bunch of individual web-seeded torrents in like, the crudest way imaginable. Depends on wget, lynx, and mktorrent.
#! /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 \
@eyedeekay
eyedeekay / conkyrc
Created January 12, 2017 13:45
compact, detailed netbook .conkyrc
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
@eyedeekay
eyedeekay / but.md
Created December 3, 2016 00:01
Piecing Together an Email Backup Program

Why I believe there isn't a one-to-one equivalent of Mailstore on GNU/Linux

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

@eyedeekay
eyedeekay / auto.config
Last active November 6, 2016 02:20
basic example auto/config file for devuan jessie
#!/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
@eyedeekay
eyedeekay / .jekyllaliasrc
Last active July 18, 2016 08:57
Jekyll Create Post Alias
#! /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
@eyedeekay
eyedeekay / .profile_mod
Last active April 6, 2016 10:04
.profile modification to configure PRIMUS to save power.
#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
@eyedeekay
eyedeekay / github-clean-large-files.sh
Created February 23, 2016 02:09
Remove large files from git history automatically
#! /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
@eyedeekay
eyedeekay / git-remove-history.sh
Created February 22, 2016 16:25
remove large binary files from git history
#!/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/
#
@eyedeekay
eyedeekay / perspectives.notaries.list
Created January 31, 2016 21:29
Perspectives Notaries List in more readable form.
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
@eyedeekay
eyedeekay / xombrero-update-certs
Last active January 20, 2016 17:36
xombrero-update-certs
#! /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")