Skip to content

Instantly share code, notes, and snippets.

View evgeny-goldin's full-sized avatar

Evgeny Goldin evgeny-goldin

View GitHub Profile
class A
{
}
class A
{
}
@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>
@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
: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: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 .'
@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"/>

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:

#!/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
@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