1. Install nginx
2. Install minio
3. Install mc client
$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
# -*- coding: utf-8 -*- | |
"""Proof-of-concept. | |
This scripts tries to document the drawbacks of the paywall used on General-Anzeiger Bonn. | |
http://gabonn.de/ | |
As with many other paywalls the content behind the paywall is still present – in this | |
case with letter-randomized "blurred" words. The raw data itself can easily be obtained | |
with any HTML parser like BeautifulSoup. |
#!/bin/bash | |
KEY=$1 | |
if [ -z "${KEY}" ] || ! (gpg --list-secret-keys | grep -q ${KEY}); then | |
echo "No key given or no secret key found for '${KEY}'" | |
exit 2 | |
fi | |
# Read password for this key |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>STL File Viewer</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r68/three.min.js" | |
></script> | |
<script src="https://rawgit.com/mrdoob/three.js/master/examples/js/controls/TrackballControls.js" | |
></script> | |
<script src="loader.js"></script> |
alias sb_start="sudo start starbound" | |
alias sb_stop="sudo stop starbound" | |
alias sb_restart="sb_stop;sb_start" | |
alias sb_update="sudo /home/ribesg/sb_update" | |
alias sb_online="netstat -nt | grep -c 21025" | |
alias sb_status="sudo status starbound" |
arecord -D plughw:1,0 -f cd -t wav -d 3 -r 16000 | flac - -f --best --sample-rate 16000 -o out.flac; wget -O - -o /dev/null --post-file out.flac --header="Content-Type: audio/x-flac; rate=16000" http://www.google.com/speech-api/v1/recognize?lang=en | sed -e 's/[{}]/''/g'| awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]; exit }' | awk -F: 'NR==3 { print $3; exit }' |
#!/usr/bin/env node | |
/* | |
* Parsing BIG compressed data with Node.js and SAX | |
* Probably some bugs, but worked fine for OpenStreetMap Great Britain bz2 | |
* Greg Miell 2012 | |
*/ | |
// Simple string trim prototype extension | |
String.prototype.trim = function() { |
#! /usr/bin/env bash | |
# Extremely rough photobooth bash script | |
# It depends on the following: | |
# - gPhoto2: for camera control through usb | |
# - ImageMagick: photo-manipulation suite | |
# - CUPS: printer driver with command-line printing utilities | |
# - beep: for the countdown sound | |
save_dir=./processed |