Skip to content

Instantly share code, notes, and snippets.

View wvandrunen's full-sized avatar

Wouter van Drunen wvandrunen

View GitHub Profile
@ihgrant
ihgrant / create-connection.js
Created May 23, 2016 21:17
using mssql node library with promise support
const sql = require('mssql');
const Promise = require('bluebird');
Promise.promisifyAll([
sql.Connection,
]);
const createConnection = connectionOptions => {
const connection = new sql.Connection(connectionOptions);
return connection.connectAsync().then(() => {
@SeonghoonKim
SeonghoonKim / apache-balancer.sh
Last active September 24, 2024 10:59
Apache HTTPD balancer-manager control script
#! /bin/sh
# Set up a default search path
PATH="/usr/bin:/bin"
CURL=`which curl`
if [ -z "$CURL" ]; then
echo "curl not found"
exit 1
fi