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
# bintray hosted artifacts http://dl.bintray.com/softprops/maven/me/lessis/courier_2.11/0.1.3/ | |
# request fails with a 500 error | |
curl -i -H "Content-Type:application/json" --user 'softprops:APIKEY' "https://api.bintray.com/maven_central_sync/softprops/maven/courier/versions/0.1.3" -d '{"username":"SONAUSER","password":"SONAPASS","close":"1"}' |
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
FROM dockerfile/ubuntu | |
# Install java 6 | |
RUN apt-get update && \ | |
apt-get install -y openjdk-6-jdk | |
CMD ["java"] |
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
import unfiltered.jetty.Http | |
import unfiltered.filter.Planify | |
import unfiltered.request.{ Path, Seg } | |
import unfiltered.response.{ ContentType, HeaderName, ResponseBytes } | |
object ContentDisposition extends HeaderName("Content-Disposition") | |
val download = Planify { | |
case Path(Seg("download" :: Nil)) => | |
// 1) set content type |
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
alias docker-rm-untagged=docker images | grep "^<none>" | awk '{print $3}' | xargs docker rmi |
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
# https://blog.codecentric.de/en/2014/07/enter-docker-container/ | |
docker inspect --format "{{ .State.Pid }}" <container-id> | |
sudo nsenter --target <container-pid> --mount --uts --ipc --net --pid |
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
\ SORRY / | |
\ / | |
\ / | |
] [ ,'| | |
] [ / | | |
]___ ___[ ,' | | |
] ]\ /[ [ |: | | |
] ] \ / [ [ |: | | |
] ] ] [ [ [ |: | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# comments | |
name.spacing = wow! |
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
FROM dockerfile/ubuntu | |
ENV RUST_VERSION 2015-01-18 | |
ENV RUST_GZ rust-nightly-x86_64-unknown-linux-gnu.tar.gz | |
ENV RUST_URL https://static.rust-lang.org/dist/$RUST_VERSION/$RUST_GZ | |
ENV RUST_DIR rust-nightly-x86_64-unknown-linux-gnu | |
RUN \ | |
curl -SLO $RUST_URL \ |
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
$ sudo plutil -convert xml1 /System/Library/LaunchDaemons/com.apple.syslogd.plist | |
$ sudo vi /System/Library/LaunchDaemons/com.apple.syslogd.plist | |
# add network listener http://stackoverflow.com/questions/1185554/how-to-enable-syslogd-to-receive-udp-logs-from-routers-in-osx | |
$ sudo plutil -convert binary1 /System/Library/LaunchDaemons/com.apple.syslogd.plist | |
$ sudo launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist | |
$ sudo launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist |