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
### Example #1 ### | |
$ docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
2e23d01384ac iperf-v1:latest "/usr/bin/iperf -s" 10 minutes ago Up 10 minutes 5001/tcp, 0.0.0.0:32768->5201/tcp compassionate_goodall | |
# Append the container ID (CID) to the end of an inspect | |
$ docker inspect --format '{{ .NetworkSettings.IPAddress }}' 2e23d01384ac | |
172.17.0.1 | |
### Example #2 ### | |
# Add -q to automatically parse and return the last CID created. |
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
# Display path, git branch, and status in terminal | |
################################################ | |
# Git prompt | |
# Many thanks to Andy Magoon https://gist.github.com/magoon/6002421 | |
# | |
# After (branch name), you'll see one or more of | |
# • uncommitted changes in green | |
# • unstaged changes in yellow | |
# • untracked files in blue(ish) |
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
Show hidden characters
{ | |
"caret_extra_width": 1, | |
"caret_style": "phase", | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Predawn/predawn.tmTheme", | |
"theme": "predawn-DEV.sublime-theme", | |
"predawn_tabs_active_underline": true, | |
"copy_with_empty_selection": false, | |
"default_line_ending": "unix", | |
"drag_text": false, |
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
<?php | |
/** | |
* Implements hook_entity_info(). | |
*/ | |
function demo_entity_info() { | |
$info = array(); | |
$info['project'] = array( |
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
{ | |
"name": "esod/d7.local", | |
"require": { | |
"guzzlehttp/guzzle": "~5.2", | |
"symfony/finder": "2.6.6" | |
}, | |
"authors": [ | |
{ | |
"name": "Eric Sod", | |
"email": "esod124@gmail.com" |
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
I wrote a bash function so one doesn't have to go to the git repo to manually change drush versions. | |
Add these lines to your .bash_profile: | |
# Switch Drush version at will | |
function switchdrushto() { | |
local cwd=$(pwd) | |
local drush_location="/usr/local/drush" | |
local checkout_version="git checkout $@" | |
local drush_version="drush --version" |