Skip to content

Instantly share code, notes, and snippets.

@andreassiegel
andreassiegel / vpnConnection.sh
Last active January 24, 2022 08:56
Utility for VPN connections on Mac OS
#!/bin/bash
#
# Provides some basic utilities for VPN connections.
readonly cmd="${1}"
readonly vpn="${2}"
err() {
echo "$*" >&2
@gingerlime
gingerlime / change_db_owner.sh
Created April 24, 2012 19:32
Postgresql - Changing ownership on all tables
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto