> lsb_release -a | grep Description
Description: Ubuntu 12.04.4 LTS
> sudo lsof -i :2181 | grep '(LISTEN)'
java 29720 zookeeper 27u IPv4 236483534 0t0 TCP *:2181 (LISTEN)
> mesos-master --version
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
| sudo apt-get install build-essential | |
| sudo apt-get install python-cheetah | |
| wget http://peak.telecommunity.com/dist/ez_setup.py | |
| sudo python ez_setup.py | |
| sudo easy_install http://closure-linter.googlecode.com/files/closure_linter-latest.tar.gz | |
| >> Installing fixjsstyle script to /usr/local/bin | |
| Installing gjslint script to /usr/local/bin |
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
| /* Typograph Vertical Rythms via http://drewish.com/tools/vertical-rhythm | |
| Initial params: | |
| Georgia - base font-family, | |
| 15px - base font, | |
| 22.5 - line height , | |
| 40, 35, 30 20 15 13 - target fonts rythms | |
| --------------------*/ | |
| @def _FNT_SIZE 15; | |
| @def _EM _FNT_SIZE; |
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
| weblab@devbox:~/projects$ grunt --version | |
| grunt-cli v0.1.11 | |
| weblab@devbox:~/projects$ yo --version | |
| 1.0.4 | |
| weblab@devbox:~/projects/closure-test$ node --version | |
| v0.8.26 | |
| weblab@devbox:~/projects/closure-test$ npm --version |
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
| // ----------- Build script configuration | |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| maven { url 'http://saturday06.github.io/gradle-android-scala-plugin/repository/snapshot' } | |
| maven { url 'http://clinker.47deg.com/nexus/content/groups/public' } | |
| maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' } | |
| maven { url 'https://maven.fabric.io/public' } | |
| maven { | |
| url "https://oss.sonatype.org/content/repositories/snapshots" |
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
| // These are snippets based on the recent finch demo package. | |
| // Some modification are added to eliminate usage of ToJson trait, | |
| // but use argonaut Json via implicits instead. | |
| // The purpose of ToJson trait removal is to bypass compilers errors on | |
| // Service[AuthRequest, Seq[argonaut.Json]] to Service[AuthRequest, Json]] | |
| // conversion. | |
| // See current compilers errors at the bottom of the gist |
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
| /** | |
| * Generated by Scrooge | |
| * version: 3.14.1 | |
| * rev: a996c1128a032845c508102d62e65fc0aa7a5f41 | |
| * built at: 20140501-114707 | |
| */ | |
| package com.xxx.services | |
| import com.twitter.scrooge.{ | |
| TFieldBlob, ThriftException, ThriftStruct, ThriftStructCodec3, ThriftStructFieldInfo, ThriftUtil} |
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
| // Let change finch example to specify custom http-headers (let call them CTPPHeader) per models | |
| object model { | |
| trait ToJsonWithHeaders { | |
| def toJson: Json | |
| // provide specific headers per model file | |
| def getTemplate :String | |
| } |
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
| import com.twitter.app.Flag | |
| import com.twitter.finagle.http.{Request, Response} | |
| import com.twitter.finagle.{Http, ListeningServer, Service} | |
| import com.twitter.server.TwitterServer | |
| import com.twitter.util.Await | |
| import io.circe.{Encoder, Json} | |
| import io.finch._ | |
| import io.finch.circe._ |
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
| // OSX | |
| open /Applications/Google\ Chrome.app --args --disable-web-security --user-data-dir | |
| // Linux | |
| chromium-browser --disable-web-security --user-data-dir | |
| // Windows | |
| // (Needs to find where is Chrome Link: may just right click on Chrome icon and choose its properties and path) | |
| // later | |
| cd /D C:/UserData/Microsoft/Windows/... |
OlderNewer