Skip to content

Instantly share code, notes, and snippets.

View astellingwerf's full-sized avatar

Anne Stellingwerf astellingwerf

View GitHub Profile
@matthiassb
matthiassb / dns-sync.sh
Last active March 20, 2024 12:12
Init.d script for keeping WSL resolv.conf in-sync with Windows
#! /bin/bash
### BEGIN INIT INFO
# Provides: dns-sync
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Synchronizes /etc/resolv.conf in WLS with Windows DNS - Matthias Brooks
### END INIT INFO
@jhngrant
jhngrant / postgresql-debugger-install-ubuntu
Last active September 26, 2022 21:23
Installing the PL/pgSQL Debugger Extension (pldbgapi) for pgAdmin III on PostgreSQL 9.4 and Ubuntu 14.10
# PostgreSQL can be on a remote server but you'll need root privileges in Linux and superuser in PostgreSQL.
# First install build tools
sudo su
aptitude install build-essential
aptitude install postgresql-server-dev-9.4
# Clone and build the PL/pgSQL server-side debugger
@Lien
Lien / signJar_build.gradle
Created October 25, 2013 06:57
Simple gradle sign jar task using ant task.
task signJar << {
description = "Signs JAR"
def config = loadProperties(project.ext.keystorePropsFilename)
ant.signjar(jar: project.ext.jarToSign,
alias: config.key.alias,
keystore: config.key.store,
storepass: config.key.'store.password',
keypass: config.key.'alias.password')
}
@ewa
ewa / pgp-merge-drv
Created April 24, 2012 15:10
Git merge driver to decrypt (and re-encrypt) files before merging.
#!/bin/bash
# WARNING: This creates and manipulates clear text copies of the
# encrypted files. It tries to clean up afterwards, but lots can go
# wrong. If you are seriously worried about the secrecy of the files,
# don't trust this!
ANCESTOR=$1
MINE=$2
OTHER=$3