This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jweatherly@rog ~ % last -h | |
last: invalid option -- 'h' | |
Usage: last [-num | -n num] [-f file] [-t YYYYMMDDHHMMSS] [-R] [-adioxFw] [username..] [tty..] | |
1 jweatherly@rog ~ % last -R -F reboot :( | |
wtmp begins Sun May 5 13:27:59 2013 | |
jweatherly@rog ~ % |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' This is what you have Arlen... | |
do while MoreSold = "yes" | |
' Notice that you have 'FoodType' | |
FoodType = Inputbox("What type of food sold? (hamburger, hotdog, corndog, or nacho)") | |
NumSold = Inputbox("How many were sold?") | |
' ...and you have 'foodtype' here... | |
Select Case foodtype | |
Case "hamburger" | |
NumSold = NumHamburgers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Brightness bindings | |
bindsym XF86MonBrightnessUp exec "xbacklight -inc 10" | |
bindsym XF86MonBrightnessDown exec "xbacklight -dec 10" | |
# Audio bindings | |
bindsym XF86AudioPlay exec "mpc toggle" | |
bindsym XF86AudioStop exec "mpc stop" | |
bindsym XF86AudioNext exec "mpc next" | |
bindsym XF86AudioPrev exec "mpc prev" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use Switch; | |
# Grab the first line from 'mpc' and throw it into | |
@song = split("\n", `mpc 2>&1`); | |
switch ($song[0]) { | |
case /Connection refused/ { print "MPD not running\n" } | |
case /^volume/ { print "Music playback stopped\n"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This is an easier-to-tweak version of Steffen Honig's i3lock | |
# script. If it doesn't work, it's his fault ;) | |
# | |
TEMP_FILE=/tmp/lock.png | |
TEMP_FILE_POST=/tmp/lock.modified.png | |
BAR_BG_COLOR="orange" | |
BAR_FONT_COLOR="white" | |
BAR_FONT="Source-Code-Pro-Black" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Display some help text | |
usage() { | |
echo "clipcp - Copy the contents of a text file to the clipboard"; | |
echo "Usage: clipcp FILE"; | |
} | |
# 'Cat' the file and pipe it into the xsel program which throws whatever | |
# it gets onto the clipboard. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "$1 $2 $3 $4" >> ~/test.mcabber.log | |
EVENT_TYPE=$1 | |
EVENT_SUBTYPE=$2 | |
JID=$3 | |
FILE=$4 | |
TITLE="Google Hangouts" | |
SOUND_FILE="$HOME/.mcabber/sounds/alert_47.wav" | |
ICON="$HOME/.mcabber/images/chat.png" | |
TIMEOUT=10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Variable assignment for legibility. The file content should be | |
# in the form of: | |
# username, password | |
filename=$1 | |
# If the file exists, loop through it and start making accounts | |
# else just quit and display the help. | |
if [ -e $filename ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set modeline | |
set ts=4 | |
set sts=4 | |
set et | |
set sw=4 | |
set ruler | |
set number | |
set nofoldenable | |
set scrolloff=10 |
OlderNewer