Skip to content

Instantly share code, notes, and snippets.

Avatar

Evgeny Goldin evgeny-goldin

View GitHub Profile
View Backup and Sync.txt
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
View 01-Bintray.txt
+ 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
@evgeny-goldin
evgeny-goldin / 01-validate.sh
Created Mar 7, 2015
Validate project's JSON and YAMl files
View 01-validate.sh
# 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
@evgeny-goldin
evgeny-goldin / 1.sh
Created Jan 4, 2015
gitsize - size diffs in two commits
View 1.sh
# 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 / gist:636b408832524542c789
Last active Feb 26, 2020
Downgrade Boot2Docker and Docker from 1.3.0 to 1.2.0 on OS X
View gist:636b408832524542c789
Based on http://stackoverflow.com/a/4158763/472153:
* brew tap homebrew/boneyard
* cd $( brew --prefix )
* brew versions docker
* git checkout 9ccfc7e Library/Formula/docker.rb
* brew unlink docker
* brew install docker
* brew switch docker 1.2.0
View myip.sh
#!/bin/bash
myip=$(curl http://www.wheremyipaddress.com/ 2>/dev/null | grep 'IP Location' | cut -d'>' -f4 | cut -d'<' -f1 | cut -d',' -f3)
echo $myip
/usr/bin/osascript <<-EOF
tell application "System Events"
activate
display dialog "$myip"
end tell
View keybase.md

Keybase proof

I hereby claim:

  • I am evgeny-goldin on github.
  • I am evgenyg (https://keybase.io/evgenyg) on keybase.
  • I have a public key whose fingerprint is EB77 3E24 AD94 7DC4 51DF 0425 78AD 67B1 8052 C748

To claim this, I am signing this object:

@evgeny-goldin
evgeny-goldin / 1-file.html
Created Aug 11, 2013
Glyphicons for Angular.js
View 1-file.html
<!-- Using Glyphicons as -->
<gfastforward/>
<span glyph="fast-forward"/>
<glyph icon="fast-forward"/>
View gist:3861542
alias grw='clear && ./gradlew -S $*'
alias pack='tar -czf'
alias gc='git checkout $*'
alias gs='git status'
alias gw='git whatchanged $*'
alias gl='git log --format=format:[%h]-[%cn]-[%cr]-[%s] -10 $*'
# Git backup
alias gitb='gitgc && rm -f ~/Dropbox/Backup/projects/${PWD##*/}.tar.gz && pack ~/Dropbox/Backup/projects/${PWD##*/}.tar.gz -X ~/git-backup-exclude.txt .'
View gist:3861384
:duplicates FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':duplicates'.
> java.lang.NullPointerException (no error message)
* Try:
Run with --info or --debug option to get more log output.