Skip to content

Instantly share code, notes, and snippets.

Command Descripttion
HISTSIZE Commands saved in memory number (default: 500)
HISTFILESIZE Commands saved in history file (default: 500)
HISTCONTROL erasedups: erase previous duplicates
shopt -s histappend History additions are appended rather than overwritten
history -a Adds to history immediately?!
pkgname=webkitgtk2-dummy
pkgver=2.4.4
pkgrel=1
arch=('any')
pkgdesc="Best package in the universe"
url="http://bitbucket.org/wooptoo/bin/src/tip/repo-cache"
license=('GPL')
depends=()
makedepends=()
provide=('webkitgtk2')
pkgname=webkitgtk-dummy
pkgver=2.4.4
pkgrel=1
arch=('any')
pkgdesc="Best package in the universe"
url="http://bitbucket.org/wooptoo/bin/src/tip/repo-cache"
license=('GPL')
depends=()
makedepends=()
provides=('webkitgtk')
pkgname=webkit2gtk-dummy
pkgver=2.4.4
pkgrel=1
arch=('any')
pkgdesc="Best package in the universe"
url="http://foobar.org/tooptoo/bin/src/tip/repo-cache"
license=('GPL')
depends=()
makedepends=()
provide=('webkit2gtk')
@Gen2ly
Gen2ly / ghsync-script
Created May 31, 2012 00:40
Create a github repository for scripts
#!/bin/bash
# Create a github repository for scripts
# Github repository name to use, Github repository address
gh_rp_nm="github_scripts"
gh_rp_dr="git@github.com:Gen2ly/scripts.git"
# Base directory, repository directory
base_dir=""$HOME"/.scripts/"
repo_dir=""$HOME"/.github-scripts/"
@Gen2ly
Gen2ly / crontab
Created May 31, 2012 02:07
Crontab for todd
# Schedule to run shell commands (dcron)
# user: todd
# DO NOT EDIT THIS FILE MANUALLY! USE crontab -e INSTEAD
# man 1 crontab for acceptable formats
# <mm> <hh> <DD> <MM> <dow> <tags and command> # dow: 0-6, Sun=0
# <@freq> <tags and command>
@weekly /home/todd/.scripts/others/github-sync-configs
@weekly /home/todd/.scripts/others/github-sync-scripts
@Gen2ly
Gen2ly / unity-effects
Created May 31, 2012 02:29
Toggle compositing effects of the Unity desktop
#!/bin/bash
# Toggle compositing effects of the Unity desktop
set -x
unity_2d="unity-2d-panel unity-2d-shell unity-2d-places unity-2d-launcher unity-2d-spread "
#unity_2d="unity-2d-panel unity-2d-shell"
start_2d() {
# Replace window manager
@Gen2ly
Gen2ly / pwr
Created May 31, 2012 14:08
Power management as a regular user
#!/bin/bash
# Power management as a regular user
case $1 in
shutdown | S )
echo " Shutting Down..."
dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" \
/org/freedesktop/ConsoleKit/Manager \
org.freedesktop.ConsoleKit.Manager.Stop > /dev/null ;;
restart | R )
# bash interactive shell settings and additional specified commands
# Check for an interactive session
[ -z "$PS1" ] && return
# Custom Prompt
set_prompt_style () {
local bldpur='\e[1;35m' # Purple
local bldblu='\e[1;34m' # Blue
local bldblk='\e[1;30m' # Black - Bold
@Gen2ly
Gen2ly / normalize-audio
Created May 31, 2012 15:44
Define normalization levels in mp3s (album-specifically)
#!/bin/bash
# Define normalization levels in mp3s (album-specifically)
audio_dir=~/Audio # Audio directory
sub_dir_inc=(Audiobooks Music Podcasts) # Sub-directories good to keep seperate
cd "$audio_dir"
for d in "${sub_dir_inc[@]}"; do
# -a keep gain even relative to albums, -k lower to not clip, -T modify orgin
# -d adjust volume by decibel amount (volume low on PSP)