I hereby claim:
- I am fvdm on github.
- I am fvdm (https://keybase.io/fvdm) on keybase.
- I have a public key ASCe9Ow6JmCiKgXc1Q6QIyzEyD9wtLghNrP57_gYXs5BxAo
To claim this, I am signing this object:
// Only copy new images to another folder: | |
require ('osx-photostream') ('~/Pictures/iCloud'); | |
// Do more stuff with them: | |
var ps = require ('osx-photostream') (); | |
ps.on ('update', function (file) { | |
console.log ('New image added: ' + file.filename); | |
};) |
#!/bin/sh | |
if [ $TERM = "screen" ]; then | |
sudo sh -c ' \ | |
apt-get update \ | |
&& apt-get $1 upgrade \ | |
&& apt-get $1 dist-upgrade \ | |
&& apt-get $1 autoremove \ | |
&& apt-get clean' | |
else | |
screen -S update ~/bin/update $1 |
import time | |
import requests | |
import json | |
class DownloadStationAPI(): | |
def __init__(self, host=None, username=None, password=None): | |
self.name = 'DownloadStation' |
I hereby claim:
To claim this, I am signing this object:
# Add latest node bin to $PATH | |
# Use with `nvm unalias default` to speed up shell init | |
# https://frankl.in/code/nvm-slowing-down-terminal | |
nodepath=$NVM_DIR/versions/node/`ls $NVM_DIR/versions/node/ | cat | tail -n 1`/bin | |
export PATH=$PATH:$nodepath |
function busy (ms) { | |
var arr = '|/―\\', i = 0; | |
setInterval (function() { | |
i = !arr[i] ? 0 : i; | |
process.stdout.write ('\r' + arr[i] + ' '); | |
i++; | |
}, ms); | |
} | |
busy (90); |
#!/bin/bash | |
# Place in /usr/share/backup/ | |
# and make executable | |
# chmod 0744 dup-backup.sh | |
# install: | |
# apt-get install duplicity python-gdata python-gobject-2 python-paramiko | |
## Remeber to change Google drive user name and Google drive folder | |
## And change Email | |
# Must run as root for system wide backups |
#!/usr/bin/python | |
# ALL FAME GOES HERE : https://gist.github.com/mipearson/1146151 | |
# | |
# 1/ Place where you want (like /usr/share/munin/plugins/nginx_status_codes.py ) | |
# 2/ Link in /etc/munin/plugins/ : | |
# ln -s /usr/share/munin/plugins/nginx_status_codes.py /etc/munin/plugins/nginx_errors | |
# chmod +x /etc/munin/plugins/nginx_errors | |
# 3/ Test with | |
# munin-run nginx_errors | |
# 4/ If nescessary : add these lines in your munin conf |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>homebrew.mxcl.pdnsrec</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/opt/pdnsrec/sbin/pdns_recursor</string> | |
</array> |