Skip to content

Instantly share code, notes, and snippets.

View interactivenyc's full-sized avatar
💭
Looking for work

Steve Warren interactivenyc

💭
Looking for work
View GitHub Profile
//
// DefragViewController.m
// Defrag
//
// Created by swarren on 6/21/11.
// Copyright 2011 Funny Garbage. All rights reserved.
//
#import "DefragViewController.h"
#import "TableOfContents.h"
@interactivenyc
interactivenyc / findLibraryItemsOnStage.jsfl
Created November 17, 2015 16:30
JSFL findLibraryItemsOnStage
itemList = fl.getDocumentDOM().library.items;
selectedItems = fl.getDocumentDOM().library.getSelectedItems();
selectedItem = "";
itemNameArray = new Array();
itemArray = new Array();
findLibraryItemOnStage = function(){
fl.trace("findLibraryItemOnStage");
if(selectedItems.length == 1){
@interactivenyc
interactivenyc / tputcolors.sh
Last active December 14, 2015 13:08
COLORIZING OUTPUT USING TPUT
##########################################################################
# 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
@interactivenyc
interactivenyc / fdupes.sh
Created March 5, 2013 15:48
FDUPES CONVENIENCE FUNCTIONS
##########################################################################
# FDUPES CONVENIENCE FUNCTIONS
##########################################################################
function makeDupList(){
fdupes --recurse --omitfirst $1 > duplist.txt
}
function copyDupFiles(){
cat duplist.txt | while read LINE
@interactivenyc
interactivenyc / colortail.sh
Created March 5, 2013 15:54
colortail configuration file
#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.*)
@interactivenyc
interactivenyc / .profile
Last active December 14, 2015 13:08
My Entire .profile
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
@interactivenyc
interactivenyc / showHideHiddenFiles.sh
Last active December 14, 2015 13:08
show and hide hidden files
function showHiddenFiles(){
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
}
function hideHiddenFiles(){
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
}
@interactivenyc
interactivenyc / multigrep.sh
Last active December 14, 2015 13:08
SED MULTI-FILTER REGEXP FOR FLASHLOG.TXT
##########################################################################
# 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
@interactivenyc
interactivenyc / bashcolors.sh
Created March 5, 2013 15:46
prints out color bars
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).
#
@interactivenyc
interactivenyc / showAliasesAndFuntions.sh
Created March 5, 2013 15:47
Shows Aliases and Functions in .profile
function showAliases(){
echo "***************************************************"
echo ALIASES IN .PROFILE
echo "***************************************************"
alias
echo "***************************************************"
}
function showFunctions(){
echo "***************************************************"