Skip to content

Instantly share code, notes, and snippets.

set limit = 100000
while true
do
set fsize = `du -b "$(ls | tail -1)" | cut -f 1`
if test $fsize -gt $limit
then
touch hooks/stop_record
touch hooks/start_record
fi
sleep 1
@Linkaan
Linkaan / build_nginx.sh
Last active March 15, 2017 13:45 — forked from MattWilcox/build_nginx.sh
Fetch, build, and install the latest nginx with the latest OpenSSL for RaspberryPi
#!/usr/bin/env bash
# URLs to the source directories
export SOURCE_OPENSSL=https://www.openssl.org/source/
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
export SOURCE_NGINX=http://nginx.org/download/
# ensure that we have the required software to compile our own nginx
apt-get -y install curl wget build-essential