This file contains hidden or 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
# Remove all docker machines | |
docker-machine rm <machine name> | |
# Remove docker application | |
rm -rf /Applications/Docker | |
# Remove docker binaries | |
rm /usr/local/bin/docker | |
rm /usr/local/bin/docker-machine | |
rm /usr/local/bin/docker-compose |
This file contains hidden or 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
# stop boot2docker process | |
boot2docker stop | |
boot2docker delete | |
# remove boot2docker executable | |
rm -f /usr/local/bin/boot2docker | |
# remove boot2docker iso | |
rm -rf /usr/local/share/boot2docker |
This file contains hidden or 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
# search the version | |
brew search docker | |
# install specific version | |
# brew version are in https://github.com/Homebrew/homebrew-versions | |
brew install homebrew/versions/docker162 |
This file contains hidden or 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
# uninstall | |
brew uninstall docker | |
# force uninstall | |
brew uninstall --force docker | |
# cleanup | |
brew cleanup |
This file contains hidden or 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
# search the version | |
brew search boot2docker | |
# install specific version | |
# brew version are in https://github.com/Homebrew/homebrew-versions | |
brew install homebrew/versions/boot2docker162 |
This file contains hidden or 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
# start boot2docker | |
boot2docker init | |
boot2docker up | |
# test it | |
docker ps |
This file contains hidden or 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
<!-- Call template --> | |
<xsl:call-template name="translateContactEmail"> | |
<xsl:with-param name="contactEmail" select="contactEmail"/> | |
</xsl:call-template> | |
<!-- contactEmail field can contains email address or phone no | |
we have to extract matching one from it | |
need to have email validation in here --> | |
<xsl:template name="translateContactEmail"> | |
<xsl:param name="contactEmail"/> |
This file contains hidden or 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
# create keyspace | |
create keyspace senz with replication = {'class':'SimpleStrategy','replication_factor':1}; | |
# list all keyspaces | |
describe keyspaces; | |
# drop keyspace | |
drop keyspace <name>; | |
drop keyspace senz; |
This file contains hidden or 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
trait Lambda { | |
val l = "Lambda" | |
} | |
trait Calculus extends Lambda { | |
val c = "Calculus" | |
val lc = l + c | |
} | |
trait Turing extends Calculus { |
This file contains hidden or 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
trait Lambda { | |
val l = "Lambda" | |
} | |
trait Calculus { | |
this: Lambda => | |
val c = "Calculus" | |
val lc = l + c | |
} |