Skip to content

Instantly share code, notes, and snippets.

View danimajo's full-sized avatar

Daniel Kreiseder danimajo

View GitHub Profile
@danimajo
danimajo / autopgsqlbackup
Created April 4, 2017 19:19 — forked from matthewlehner/autopgsqlbackup
Auto PostgreSQL backup script.
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
Char Unicode
------------------------------
Ä, ä \u00c4, \u00e4
Ö, ö \u00d6, \u00f6
Ü, ü \u00dc, \u00fc
ß \u00df
@danimajo
danimajo / server.js
Created May 8, 2012 21:39
static http webserver with node.js and connect
var connect = require('connect');
//Hier den Pfad eingeben,
//indem die statischen (html/js/css) Files liegen.
var HTDOCSPATH = 'C:\\data\\js\\learn'
console.log("serving from dir " + HTDOCSPATH)
connect.createServer(
connect.static(HTDOCSPATH)
).listen(8080);