Skip to content

Instantly share code, notes, and snippets.

View optikfluffel's full-sized avatar
🤔
mmh..

Udo optikfluffel

🤔
mmh..
View GitHub Profile
#!/bin/bash
sshfs remoteserver:backup/secure /root/backup/sshfsMount -o ServerAliveInterval=15 -o uid=10025 -o gid=10003
encfs -i n -o allow_other /root/backup/sshfsMount /root/backup/encripted/
rdiff-backup --no-hard-links --terminal-verbosity 5 /mnt/raid/secure /root/backup/encripted
fusermount -u /root/backup/encripted
fusermount -u /root/backup/sshfsMount
@niravmehta
niravmehta / kue_cleanup.js
Created July 30, 2013 11:57
Cleanup script for Kue job queueing system in Node.js. Deletes failed, active and completed jobs after specified time. Can run on command line directly with "node kue_cleanup". Requires Kue installed :-)
var kue = require('kue'),
jobs = kue.createQueue(),
util = require('util'),
noop = function() {};
jobs.CLEANUP_MAX_FAILED_TIME = 30 * 24 * 60 * 60 * 1000; // 30 days
jobs.CLEANUP_MAX_ACTIVE_TIME = 1 * 24 * 60 * 60 * 1000; // 1 day
jobs.CLEANUP_MAX_COMPLETE_TIME = 5 * 24 * 60 * 60 * 1000; // 5 days
jobs.CLEANUP_INTERVAL = 5 * 60 * 1000; // 5 minutes
@frankrousseau
frankrousseau / gist:3500433
Created August 28, 2012 16:49
Cron job with Kue
Job = kue.Job
jobs = kue.createQueue()
# Set up server if you want to see your task progression with a beautiful UI
kue.app.listen 3003
# Your cron timing
delay = 3000
@twosixcode
twosixcode / gist:1988097
Created March 6, 2012 18:40
Make "Paste and Indent" the default paste in Sublime Text 2
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
@loranger
loranger / userscript.js
Created September 27, 2011 10:43
Trello badge userscript for FluidApp
// ==UserScript==
// @name Fluid Dock Badge for Trello
// @namespace http://fluidapp.com
// @description Display a dock badge for the Trello Dashboard with the number of new notifications
// @include *.trello.com
// @author Laurent Goussard
// ==/UserScript==
if (!window.fluid) {
return;
}