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
@a=("a".."z","A".."Z",0..9);print join "",(map{$a[rand @a]}@a)[0..(rand(100))],"\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
SJOBS=`jobs | sed "s/ */ /g" | cut -d" " -f1,3-` | |
if [[ "$WINDOW" == "" ]]; then | |
export PS1="$SJOBS | |
[J:%j]%n@%m($BRAND):%d%# " # prompt string | |
else | |
export PS1="$SJOBS | |
[J:%j][$WINDOW]%n@%m($BRAND):%d%# " # prompt string showing screen window | |
fi |
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
To also show what the broken links used to point to: | |
find -L Documents -type l -ls | |
- or - | |
find -L Documents -type l -exec ls -l "{}" \; | |
- or - | |
find -L Documents -type l -exec ls -l –color "{}" \; ## colorized |
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
file **/*(D@) |
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
X=(`pacman -Ss ttf- | sed -e's/\s.*//'`); pacman -S $X |
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
319 $r = <<HTML; | |
320 <p><strong><a href="$rss->{'channel'}->{'link'}">$rss->{'channel'}->{'title'}</a></strong></p> | |
321 HTML | |
322 if ( $rss->{'image'}->{'link'} ) { | |
323 $r .= <<HTML; | |
324 <p><a href="$rss->{'image'}->{'link'}"><img title="$rss->{'image'}->{'url'}" src="$rss->{'image'}->{'url'}" alt="$rss- >{'image'}->{'title'}" style="border-style: none;" | |
325 HTML | |
326 $r .= " width=\"$rss->{'image'}->{'width'}\"" | |
327 if $rss->{'image'}->{'width'}; | |
328 $r .= " height=\"$rss->{'image'}->{'height'}\"" |
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
alias savesingle='cp ~/.kde4/share/config/plasma-desktop-appletsrc{,-singlehead}' | |
alias restoresingle='cp ~/.kde4/share/config/plasma-desktop-appletsrc{-singlehead,}' | |
alias savedual='cp ~/.kde4/share/config/plasma-desktop-appletsrc{,-dualhead}' | |
alias restoredual='cp ~/.kde4/share/config/plasma-desktop-appletsrc{-dualhead,}' | |
# These will need updating based on actual values.... | |
alias switchsingle='restoresingle && xrandr --output DVI-0 --off && xrandr --output LVDS --mode 1440x900 --rate 60.1' | |
alias switchdual='restoredual && xrandr --output LVDS --off && xrandr --output DVI-0 --mode 1680x1050 --rate 59.9' |
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/perl -w | |
use strict; | |
use warnings; | |
use MP3::Info; | |
use File::Find (); | |
use Data::Dumper; | |
use vars qw/*name *dir *prune/; | |
*name = *File::Find::name; | |
*dir = *File::Find::dir; |
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/zsh | |
# Install all the packages for my Arch Linux Installs | |
yaourt -Syy; | |
W=(`pacman -Ss gimp | grep -v help | perl -p -i -e 's/^.*\/(.*).+/$1/xs' | sed -e's/\s.*//'`); | |
X=(`pacman -Ss ttf- | perl -p -i -e 's/^.*\/(.*).+/$1/xs' | sed -e's/\s.*//'`); | |
Y=(`pacman -Ss gstreamer0.10- | perl -p -i -e 's/^.*\/(.*).+/$1/xs' | sed -e's/\s.*//'`); | |
PACMAN=( abs ack ati-dri audex aurvote cabextract cdrdao cifs-utils clementine clojure ctags cups customizepkg cvs dnstracer dnsutils dvd+rw-tools easytag enchant faac findutils firefox flac flashplugin fpc fuse fuseiso gdb gdm gecko-mediaplayer geoip ghostscript gimp-help-en git gprolog gramps graphviz guifications gvfs gvfs-afc gvfs-afp gvfs-gphoto2 gvfs-smb gvim htop hunspell hunspell-en icedtea-web-java7 inetutils intel-dri iputils jre7-openjdk k3b kdegraphics-okular kdesdk-kate keychain lame lazarus lib32-ati-dri lib32-intel-dri lib32-nouveau-dri libgnomeui libgpod libreoffice libreoffice-en-US lua luakit mate mate-extras mercurial mesa mlocate multilib-devel net |
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
var has = function (obj, property) { | |
var tree = obj, | |
split = property.split('.'), | |
last = split.pop(); | |
while (next = split.shift()) { | |
tree = tree[next]; | |
if (tree === undefined) return false; | |
} |