Skip to content

Instantly share code, notes, and snippets.

var express = require('express'),
proxy = require('./lib/proxy');
var app = express();
app.configure(function() {
app.use(express.favicon(false));
app.use(express.logger('dev'));
app.use(proxy.initialize({
proxy: {
@steve-jansen
steve-jansen / download.cmd
Created March 5, 2014 22:41
A Windows batch script to download multiple large binary files from an FTP server in parallel, with support for resuming interrupted downloads.
SETLOCAL
PUSHD "%USERPROFILE%\Downloads"
IF NOT EXIST "installers" MKDIR "installers"
CD "installers"
ECHO @ECHO OFF > curl.cmd
ECHO TITLE "%~1" >> curl.cmd
ECHO IF NOT ".%~p1"==".\" IF NOT EXIST ".%~p1" MKDIR ".%~p1" >> curl.cmd
ECHO PUSHD ".%~p1" >> curl.cmd
@steve-jansen
steve-jansen / jenkins.portforwarding.sh
Last active August 29, 2015 13:57
`/etc/init.d/jenkins.portforwarding` script for SUSE Linux to forward port 80 traffic to the HTTP port for the Jenkins continuous build server
#!/bin/sh
#
# SUSE system statup script for port forwarding port 80 to the port
# for the Jenkins continuous build server.
#
# Jenkins normally does not run as root, thus /etc/init.d/jenkins cannot
# bind to ports < 1024 since SUSE does not support authbind (or similar).
#
# The MIT License (MIT)
#