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 / gist:636b408832524542c789
Last active October 13, 2022 15:12
Downgrade Boot2Docker and Docker from 1.3.0 to 1.2.0 on OS X
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
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
@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
@evgeny-goldin
evgeny-goldin / 1-file.html
Created August 11, 2013 17:26
Glyphicons for Angular.js
<!-- Using Glyphicons as -->
<gfastforward/>
<span glyph="fast-forward"/>
<glyph icon="fast-forward"/>
@evgeny-goldin
evgeny-goldin / gist:3861542
Created October 9, 2012 21:21
Git aliases
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 .'
: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.
@evgeny-goldin
evgeny-goldin / gist:1320133
Created October 27, 2011 16:58
new File( 'c:' ).canonicalPath
C:\Users\evgeny>java -version
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)
C:\Users\evgeny>groovy -version
Groovy Version: 1.8.3 JVM: 1.6.0_27
C:\Users\evgeny>groovy -e "print new File( 'c:' ).canonicalPath"
C:\Users\evgeny
@evgeny-goldin
evgeny-goldin / gist:1042333
Created June 23, 2011 10:47
GMaven config to compile Groovy sources and tests
<properties>
<groovy-version>1.8.0</groovy-version>
<gmaven-version>1.3</gmaven-version>
</properties>
...
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
class A
{
}
class A
{
}