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 / curl.md
Created November 22, 2015 02:21 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@eyedeekay
eyedeekay / installer.sh
Last active December 21, 2015 18:28 — forked from tahl/installer.sh
Android SDK + NDK + Eclipse and ADB Installer
#!/bin/bash
#
#This script is designed to install the Android SDK, NDK, and Eclipse in Linux Mint 11 and make it easier for people that want to develop for Android using Linux.
#Script written by @ArchDukeDoug with special thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#I can be reached at [email protected], twitter, or linuxrandomly.blogspot.com
#Script version: 1.0.5
#Changelog: 1.0.5 - Fixed the Android SDK search parameters to fit the new naming scheme on http://developer.android.com/sdk
i=$(cat /proc/$PPID/cmdline)
if [[ $UID != 0 ]]; then
echo "Please type sudo $0 $*to use this."
@eyedeekay
eyedeekay / .bash_aliases
Created December 27, 2015 20:20
.bash_aliases file making extensive use of torsocks on commonly used applications
conky_start(){
#Only start conky if the compositor is functioning
sleep 3
compton &
conky &
}
conky_stop(){
if [ $(check_conky) = 1 ]; then
killall compton
@eyedeekay
eyedeekay / .xombrero.i2p.conf
Created January 17, 2016 20:46
Xombrero i2p configuration
browser_mode = whitelist
# allow_volatile_cookies = 0
# cookie_policy = no3rdparty
# cookies_enabled = 1
# enable_cookie_whitelist = 1
# read_only_cookies = 0
# save_rejected_cookies = 0
# session_timeout = 3600
# enable_scripts = 0
@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")
@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 / 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 / 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 / .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 / .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