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
| //Ivy Style | |
| override def ivyXML = | |
| <dependencies> | |
| <exclude org="org.slf4j" name="slf4j-simple"/> | |
| </dependencies> | |
| //SBT 11 inline syle | |
| "org.xyz" %% "xyz-lib" % "0.1.0" exclude("org.slf4j", "slf4j-simple") |
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
| # Compiled source # | |
| ################### | |
| *.class | |
| *.exe | |
| *.so | |
| # Idea Project Files # | |
| ###################### | |
| *.iml | |
| *.iws |
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
| #wrapper.java.additional.1=-Xdebug | |
| #wrapper.java.additional.2=-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 | |
| #wrapper.java.additional.1=-XX:+UseConcMarkSweepGC | |
| #wrapper.java.additional.2=-Xloggc:logs/gclog | |
| #wrapper.java.additional.3=-XX:MaxDirectMemorySize=256M | |
| #wrapper.java.additional.4=-XX:NewRatio=1 |
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
| private boolean scheduleWriteIfNecessary(final SctpChannelImpl channel) { | |
| final Thread currentThread = Thread.currentThread(); | |
| final Thread workerThread = thread; | |
| if (currentThread != workerThread) { | |
| if (channel.writeTaskInTaskQueue.compareAndSet(false, true)) { | |
| boolean offered = writeTaskQueue.offer(channel.writeTask); | |
| assert offered; | |
| } | |
| if (!(channel instanceof SctpAcceptedChannel) || |
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
| # Compiler switches for optimization | |
| -optimise | |
| # Detailed Scala Collection Doc | |
| http://www.scala-lang.org/docu/files/collections-api/collections.html | |
| # @specialized (full performance for generic code) | |
| # Scala Performance Optimization |
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
| -server -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods |
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
| # Lift Run modes | |
| "test", "staging", "production", "pilot", "profile", or blank | |
| -Drun.mode=production | |
| # Snippets | |
| snippets are in the xxx.snippet package or LiftRules.addToPackages("xyz") |
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
| fhb -J -server -J -Xmx512m -J -Xms512m -c 1 -D test-results -s -S -W 20000 -r360/720/360 -p data.json http://localhost:8080/xyz-service |
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
| #Http Caching | |
| trait HttpCache extends Http { | |
| override def make_client: org.apache.http.client.HttpClient = { | |
| val config = new CacheConfig | |
| config.setMaxCacheEntries(500) | |
| config.setMaxObjectSizeBytes(50000) | |
| new CachingHttpClient(super.make_client, config) | |
| } | |
| } |
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
| #!/bin/sh | |
| kill $(lsof -t -i :8080) |