ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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 python | |
# From the python:onbuild image | |
# For discussion of onbuild variant images see: https://hub.docker.com/_/python/ | |
WORKDIR /usr/src/app | |
COPY . /usr/src/app | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Install uWSGI | |
RUN pip install uwsgi |
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
function ll | |
command /opt/homebrew/opt/coreutils/libexec/gnubin/ls --color=auto -Falh --group-directories-first $argv | |
end | |
function wget | |
command wget -cq --show-progress $argv | |
end | |
function myip | |
command dig +short myip.opendns.com @resolver1.opendns.com |
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/sh | |
find ${1:-.} -type f -exec ls -lnq {} \+ | awk ' | |
function pp() { | |
u="+Ki+Mi+Gi+Ti"; | |
split(u,unit,"+"); | |
v=sum; | |
r=0; | |
for(i=1;i<5;i++) { | |
if(v<1024) break; | |
r=v%1024; |
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/sh | |
# The bandwidth to simulate, here about 56kilobit per second. This is layer 2 bandwidth, so TCP/UDP and IP overhead will apply | |
BW="56kbps" | |
# _Half_ the latency that we aim for. Since this applies to both the WAN port and Wi-Fi, the delay is applied twice, so this actually puts it at around 120+ms | |
LATENCY="60ms" | |
# Chance of packet loss. Also applied to both interfaces, so it is 1%. | |
LOSS="0.5%" | |
# The device name of your wifi device. | |
WIFI="wlan0" |
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/sh | |
git filter-branch --env-filter ' | |
an="$GIT_AUTHOR_NAME" | |
am="$GIT_AUTHOR_EMAIL" | |
cn="$GIT_COMMITTER_NAME" | |
cm="$GIT_COMMITTER_EMAIL" | |
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ] |
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/sh | |
# This program has two feature. | |
# | |
# 1. Create a disk image on RAM. | |
# 2. Mount that disk image. | |
# | |
# Usage: | |
# $0 <dir> <size> | |
# |
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
<div id="watch"> | |
<div class="frame-face"></div> | |
<ul class="minute-marks"> | |
<li></li><li></li><li></li><li></li><li></li><li></li> | |
<li></li><li></li><li></li><li></li><li></li><li></li> | |
<li></li><li></li><li></li><li></li><li></li><li></li> | |
<li></li><li></li><li></li><li></li><li></li><li></li> | |
<li></li><li></li><li></li><li></li><li></li><li></li> | |
<li></li><li></li><li></li><li></li><li></li><li></li> | |
<li></li><li></li><li></li><li></li><li></li><li></li> |
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
Webkit needs an X server in order to be able to render. If you're running on any Linux server distribution then you won't have an X server running. You can use the xvfb package to generate a virtual framebuffer for the duration of your tests. For example: | |
DISPLAY=localhost:1.0 xvfb-run cucumber | |
If you are running this on a build server you might have something like this: | |
DISPLAY=localhost:1.0 xvfb-run cucumber -p default -f junit -o cucumber |
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/env bash | |
# chkconfig: 2345 80 05 | |
# description: Starts and stops the Tomcat | |
# | |
# if you are doing tomcat instancing, you might wanna check the CATALINA_PID logic down here to create something more dynamic behavior | |
# other than that just add this file under /etc/init.d/ as tomcat and use chkconfig to configure | |
# | |
# chkconfig --add tomcat | |
# chkconfig --level 2345 tomcat on | |
# chkconfig --list tomcat |
NewerOlder