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
// | |
// DefragViewController.m | |
// Defrag | |
// | |
// Created by swarren on 6/21/11. | |
// Copyright 2011 Funny Garbage. All rights reserved. | |
// | |
#import "DefragViewController.h" | |
#import "TableOfContents.h" |
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
########################################################################## | |
# COLORIZING OUTPUT USING TPUT | |
########################################################################## | |
PS1="$bldgold$(date +%H:%M:%S) \w$bldblu \$(parse_git_branch)$bldblu \$ " | |
# Text color variables | |
txtund=$(tput sgr 0 1) # Underline | |
txtbld=$(tput bold) # Bold | |
bldred=${txtbld}$(tput setaf 1) # red |
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
########################################################################## | |
# SED MULTI-FILTER REGEXP FOR FLASHLOG.TXT | |
########################################################################## | |
#export FLASHLOG="/Users/stevewarren/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt" | |
function multigrep(){ | |
echo $@; # All arguments | |
#echo $*; # All arguments |
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
function bashcolors(){ | |
#!/bin/bash | |
# bashcolors | |
# This file echoes a bunch of color codes to the | |
# terminal to demonstrate what's available. Each | |
# line is the color code of one forground color, | |
# out of 17 (default + 16 escapes), followed by a | |
# test use of that color on all nine background | |
# colors (default + 8 escapes). | |
# |
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
function showAliases(){ | |
echo "***************************************************" | |
echo ALIASES IN .PROFILE | |
echo "***************************************************" | |
alias | |
echo "***************************************************" | |
} | |
function showFunctions(){ | |
echo "***************************************************" |
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
########################################################################## | |
# FDUPES CONVENIENCE FUNCTIONS | |
########################################################################## | |
function makeDupList(){ | |
fdupes --recurse --omitfirst $1 > duplist.txt | |
} | |
function copyDupFiles(){ | |
cat duplist.txt | while read LINE |
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
########################################################################## | |
# RSYNC UTILS | |
########################################################################## | |
function backupClientsToDrobo(){ | |
SRC="/Volumes/Red_Pill/stevewarren-redpill/Clients*" | |
DEST="/Volumes/M-OSX-Backups/Users/stevewarren/" | |
LOG_FILE="backupClientsToDrobo" |
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
#COLOR NAMES | |
#BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE | |
#COLOR NAMES - BOLD | |
#BRIGHTBLACK BRIGHTRED BRIGHTGREEN BRIGHTYELLOW BRIGHTBLUE BRIGHTMAGENTA BRIGHTCYAN BRIGHTWHITE | |
COLOR cyan | |
{ | |
^(\[ iPadApp.*) | |
^(\[ PageLayouts.*) |
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
echo "***************************************************" | |
echo "loading .profile $(date +%b-%d.%H:%M:%S)" | |
pwd | |
echo "***************************************************" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
#export PATH=$PATH:/opt/local/bin/svn:/usr/local/bin | |
export PATH=$PATH:/opt/local/bin:/opt/local/sbin |
OlderNewer