An introduction to curl using GitHub's API
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| #!/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." |
| conky_start(){ | |
| #Only start conky if the compositor is functioning | |
| sleep 3 | |
| compton & | |
| conky & | |
| } | |
| conky_stop(){ | |
| if [ $(check_conky) = 1 ]; then | |
| killall compton |
| 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 |
| #! /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") |
| 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 |
| #!/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/ | |
| # |
| #! /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 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 |
| #! /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 |