sudo apt-get install openvpn
sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa2
cd /etc/openvpn/easy-rsa2
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.define "vagrant-windows" | |
| config.vm.box = "windows2008r2" | |
| # You should be using the vagrant-windows Vagrant Plugin! | |
| # Admin user name and password | |
| config.winrm.username = "Administrator" |
| # Add this line to your software sources | |
| deb http://debian.meebey.net/experimental/mono / | |
| sudo apt-get update | |
| # of course, apt-get remove mono-complete first... | |
| sudo apt-get install mono-complete | |
| # I installed monodevelop from apt just to get all the prereqs | |
| sudo apt-get install monodevelop |
| package org.sprocky.util; | |
| import org.apache.commons.lang3.ArrayUtils; | |
| import org.sprocky.NameMappingConvention; | |
| import org.sprocky.ResultSetColumn; | |
| import org.sprocky.ResultSetColumnIgnore; | |
| import org.sprocky.impl.DefaultNameMappingConvention; | |
| import java.io.InputStream; | |
| import java.io.Reader; |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| -- Start of Script - Find_Table_Reference_Levels.sql | |
| /* | |
| Find Table Reference Levels | |
| This script finds table references and ranks them by level in order | |
| to be able to load tables with FK references in the correct order. | |
| Tables can then be loaded one level at a time from lower to higher. | |
| This script also shows all the relationships for each table | |
| by tables it references and by tables that reference it. |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| #!/usr/bin/env python | |
| import cStringIO | |
| import json | |
| import pycurl | |
| import os | |
| import sys | |
| ########## | |
| # configuration |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Security; | |
| using System.Web; | |
| using System.Web.Hosting; | |
| namespace PdfGenerator | |
| { | |
| public class PdfGenerator |