Skip to content

Instantly share code, notes, and snippets.

View evgeny-goldin's full-sized avatar

Evgeny Goldin evgeny-goldin

View GitHub Profile
@evgeny-goldin
evgeny-goldin / 1.sh
Created January 4, 2015 22:55
gitsize - size diffs in two commits
# Displays size diff between two commits
# http://stackoverflow.com/a/10847242/472153
function gitsize()
{
args=$(git rev-parse --sq "$@")
eval "git diff-tree -r $args" | {
total=0
while read A B C D M P
do
case $M in
@evgeny-goldin
evgeny-goldin / 01-validate.sh
Created March 7, 2015 16:18
Validate project's JSON and YAMl files
# Validate project's JSON files
function vj()
{
if [ "$1" == "" ]; then
local path="."
else
local path="$1"
fi
for json in $(find "$path" -name "*.json"); do
+ sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
evgenyg-docker-docker.bintray.io/evgenyg/echo 89d2504 4349ea3bc834 1 seconds ago 702.3 MB
evgenyg-docker-docker.bintray.io/evgenyg/echo latest 4349ea3bc834 1 seconds ago 702.3 MB
<none> <none> a7b5e33bc208 38 seconds ago 702.3 MB
<none> <none> 09ebb7ff2ac5 10 minutes ago 702.3 MB
evgenyg/java jre-1.8 5571b16609af 2 days ago 685.5 MB
evgenyg/ansible 1.8.4 ed29ede047bf 7 days ago 373.5 MB
evgenyg/ansible latest ed29ede047bf 7 days ago 373.5 MB
ubuntu 14.04.2
501 499 1 0 7:00PM ?? 6:05.67 /Applications/Backup and Sync.app/Contents/MacOS/Backup and Sync
501 790 1 0 7:00PM ?? 5:19.54 /Applications/Backup and Sync.app/Contents/MacOS/Backup and Sync --child_process --profile_id user_u8rZuh+9EeuHmqzeSAARIg
501 806 1 0 7:00PM ?? 0:03.04 /Applications/Backup and Sync.app/Contents/PlugIns/FinderSyncAPIExtension.appex/Contents/MacOS/FinderSyncAPIExtension
501 2111 1 0 7:21PM ?? 0:01.28 /Applications/Backup and Sync.app/Contents/PlugIns/FinderSyncAPIExtension.appex/Contents/MacOS/FinderSyncAPIExtension
501 2139 1 0 7:23PM ?? 1:33.72 /Applications/Backup and Sync.app/Contents/PlugIns/FinderSyncAPIExtension.appex/Contents/MacOS/FinderSyncAPIExtension
501 2211 1 0 7:27PM ?? 1:36.31 /Applications/Backup and Sync.app/Contents/PlugIns/FinderSyncAPIExtension.appex/Contents/MacOS/FinderSyncAPIExtension
501 2212 1 0 7:27PM ?? 1:33.18 /Applications/Backup a