Skip to content

Instantly share code, notes, and snippets.

View professorjamesmoriarty's full-sized avatar

John Jenkins professorjamesmoriarty

View GitHub Profile
#!/bin/bash
echo "MOTD or whatever here or there.."
PS3="Your Game choice: "
cd /home/shaggy/Testingfolder/games
select FILENAME in *;
do
#!/bin/bash
echo `mplayer -cookies -cookies-file /tmp/cookie.txt $(youtube-dl -g --cookies /tmp/cookie.txt "$@")`
#!/bin/bash
# dwb: Control y
youtube-dl -o "/home/shaggy/Downloads/youtube/%(title)s.flv" "$DWB_URI"
extract () {
if [ -f $1 ]
then
case $1 in
(*.tar.bz2) tar -jxvf $1 ;;
(*.tar.gz) tar -zxvf $1 ;;
(*.bz2) bzip2 -d $1 ;;
(*.gz) gunzip -d $1 ;;
(*.tar) tar -xvf $1 ;;
(*.tgz) tar -zxvf $1 ;;
##############################################
# Settings
##############################################
background no
out_to_x no
out_to_console yes
update_interval 2
total_run_times 0
uppercase no
short_units yes
#!/bin/bash
_file="$1"
[ $# -eq 0 ] && { echo "Usage: $0 filename"; exit 1; }
[ ! -f "$_file" ] && { echo "Error: $0 file not found."; exit 2; }
if [ -s "$_file" ]
then
echo "new msg"
# do Someonething as file has data
else
#!/usr/bin/env sh
endpath="$HOME/.spf13-vim-3"
warn() {
echo "$1" >&2
}
die() {
warn "$1"
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
##
## /etc/pacman-mirrors.conf
##
## Branch Pacman should use (stable, testing, unstable)
Branch=testing
## Generation method
## 1) rank - rank mirrors depending on their access time
## 2) random - randomly generate the output mirrorlist
#!/bin/bash
# Linux Lite System Information Report Tool for Ubuntu based systems
# Dependencies - lshw, dmidecode, hdparm
# Developer - Jerry Bezencon
# Creation Date - Monday 29th April, 2013
# Website - http://www.linuxliteos.com
# Credits - http://www.notanon.com/shell-scripts/checking-for-multiple-dependencies-simultaneously-in-your-bash-script/2010/04/25/
bold=`tput bold`
normal=`tput sgr0`