Skip to content

Instantly share code, notes, and snippets.

View djtech42's full-sized avatar

Dan Turner djtech42

View GitHub Profile
@djtech42
djtech42 / update.sh
Last active February 20, 2017 06:02
Update Package Managers
#!/bin/sh
# Homebrew (Command Line and GUI)
brew upgrade
brew cask update
# RubyGems
sudo gem update
# Node.js Global
npm update -g
# Bower
bower update
@djtech42
djtech42 / gemList
Created January 11, 2016 08:31
Gem List
activesupport (4.2.5)
addressable (2.4.0, 2.3.8)
babosa (1.0.2)
bigdecimal (1.2.7, 1.2.0)
bropages (0.1.0)
cert (1.2.7)
certified (1.0.0)
CFPropertyList (2.3.2, 2.2.8)
chunky_png (1.3.5)
claide (0.9.1)
@djtech42
djtech42 / brewList
Created January 11, 2016 08:19
Brew List
ack
archey
autoconf
automake
bash
binutils
brew-gem
cmatrix
cmu-pocketsphinx
cmu-sphinxbase
@djtech42
djtech42 / ohMyFish
Last active June 8, 2016 16:47
Oh My Fish Packages and Themes List
agnoster
bang-bang
battery
bobthefish
brew
default
fasd
gem
git-flow
python
@djtech42
djtech42 / brew_cask_install_all_apps.sh
Last active May 27, 2017 16:57
My Brew Cask Apps
#!/bin/sh
brew cask install acorn
brew cask install alcatraz
brew cask install alfred
brew cask install anybar
brew cask install appcleaner
brew cask install atom
brew cask install audacity
brew cask install audio-hijack
brew cask install bartender
@djtech42
djtech42 / jekyllServe.sh
Created December 8, 2015 16:52
Run Jekyll Local Server In the Background Without Output to the Console
jekyll serve > /dev/null 2>&1 &
@djtech42
djtech42 / stringOptional.rb
Created December 3, 2015 15:55
Function that returns a string with added grouping notation if it exists
def stringOptional(string, preceding="", succeeding="")
unless string.nil?
return preceding + string + succeeding
else
return ""
end
end
@djtech42
djtech42 / finderAlias
Created November 28, 2015 20:52
Create Terminal Alias for Opening New Finder Window at Current Directory
alias Finder='open -a Finder ./'
@djtech42
djtech42 / terminalStopwatch.sh
Created October 11, 2015 05:10
Stopwatch in Terminal (start and then use Ctrl-C to stop and get time)
# Start
time cat
# Ctrl-C to stop
@djtech42
djtech42 / establishedConnections.sh
Last active October 11, 2015 03:53
List open TCP and UDP Ports and Applications Using Them
lsof -i | grep ESTABLISHED