This file contains 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
val uiSettings: Seq[Def.Setting[_]] = Seq( | |
JsEngineKeys.engineType := JsEngineKeys.EngineType.Node, | |
includeFilter in gzip := "*.html" || "*.css" || "*.js", | |
DigestKeys.algorithms += "sha1", | |
includeFilter in digest := "*.html" || "*.css" || "*.js", | |
UglifyKeys.mangle := false, | |
pipelineStages := Seq(uglify, digest, gzip), | |
LessKeys.compress in Assets := true, | |
includeFilter in(Assets, LessKeys.less) := "*.less", | |
excludeFilter in(Assets, LessKeys.less) := "_*.less" |
This file contains 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
val commonResolvers: Seq[Def.Setting[_]] = Seq( | |
resolvers ++= Seq[Resolver]( | |
DefaultMavenRepository, | |
Classpaths.typesafeReleases, | |
"Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/", | |
Classpaths.sbtPluginReleases, | |
"Eclipse repositories" at "https://repo.eclipse.org/service/local/repositories/egit-releases/content/", | |
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" | |
) | |
) |
This file contains 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
lazy val root = project.in(file(".")) | |
.settings( | |
dockerBaseImage := "your/base/docker", | |
dockerExposedPorts := Seq(1234), | |
version in Docker := buildVersion) |
This file contains 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/bash | |
# | |
# Fix Spotlight | |
# | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
sudo rm -rf /.Spotlight-V100 | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist |
This file contains 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
public class HelloWorld { | |
public static void main(String... args) { | |
// The comment below is no typo. | |
// \u000d System.out.println("Hello World!"); | |
} | |
} |
This file contains 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/bash | |
# | |
# boot2docker init OS X | |
# | |
FORCE=${1-true} | |
USERS="/Users" | |
VAR="/var/folders" |
This file contains 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
# | |
# Sets Prezto options. | |
# | |
# Authors: | |
# Sorin Ionescu <sorin.ionescu@gmail.com> | |
# | |
# | |
# General | |
# |
This file contains 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/bash | |
# MacTeX uninstaller script based on pkgutil command | |
# by Akihiro Uchida, CC0 dedicated to the public domain | |
# see http://creativecommons.org/publicdomain/zero/1.0/ | |
IFS=$(echo -en "\n") | |
for pkg in $(pkgutil --pkgs|grep org.tug.mactex); do | |
volume="$(pkgutil --pkg-info "$pkg"|grep volume|cut -d' ' -f2-)" | |
location="$(pkgutil --pkg-info "$pkg"|grep location|cut -d' ' -f2-)" | |
echo "remove all of the files installed under the $pkg" | |
for file in $(pkgutil --files "$pkg"); do |
This file contains 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
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# |
This file contains 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/bash | |
DOCKER_TIMEOUT=$1 | |
shift | |
CONTAINER=$(docker run -d "$@") | |
docker stop --time=900 $CONTAINER | |
EXIT_CODE=$(docker wait $CONTAINER) |