Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
var Agent = {}; | |
Agent.check = function() { | |
var events = JSON.parse(this.memory('events') || '[]'); | |
this.log('memory is: (' + typeof events + '):' + JSON.stringify(events)); | |
var len = events.length; | |
var tags = (this.options('tags') || '').split(','); | |
var count = parseInt(this.options('count'), 10) || tags.length; | |
var delimeter = this.options('delimeter') || ','; | |
var tagPrefix = this.options('tagPrefix') || this.options('tagprefix') || ''; | |
if (len === 0) { |
FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.
Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:
ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4
Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.
In experience to get a proper working multiple wan configuration using mwan3 starting from scratch you should:
Important: this works well on OpenWRT 15.05.1, on newer versions there was some breaking changes, for example, the wan ifaces have ipv6 capability and now are named with letters ("wan, wanb... , wanc" instead of "wan, wan2... wan3" so wanb6 means 2nd wan ipv6.): https://github.com/openwrt/packages/blob/master/net/mwan3/files/etc/config/mwan3
The official documentation seems to be very detailed and up to date, I recommend reading those first: https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3 but I recommend to give a look at my config file below, since my approach for policyes is very nice.
First of all: Activate conntrack, docs says that is important and neccesary to get MWAN3 work properly, and it is needed to reboot:
version: '2' | |
services: | |
api: | |
volumes: | |
- "nfsmount:${CONTAINER_DIR}" | |
volumes: | |
nfsmount: | |
driver: local | |
driver_opts: |
#!/usr/bin/env bash | |
# mount /home/joaomlneto @ linux-vm | |
mkdir -p /Users/joaomlneto/nfs/linux-vm | |
mount -t nfs -o nolocks,locallocks,rw,soft,intr,rsize=8192,wsize=8192,timeo=900,retrans=3,proto=tcp \ | |
linux-vm:/home/joaomlneto \ | |
/Users/joaomlneto/nfs/linux-vm |
convert("one hundred five"); // "105" | |
convert("six hundred and fifty three"); // "653" | |
convert("zero zero one two three"); // "123" | |
convert("twelve o three"); // "1203" | |
convert("thirteen zero nine"); // "1309" | |
convert("fifteen sixteen"); // "1516" | |
convert("fourteen ninety two"); // "1492" | |
convert("nineteen ten"); // "1910" | |
convert("twelve hundred"); // "1200" | |
convert("twenty three hundred"); // "2300" |