Skip to content

Instantly share code, notes, and snippets.

# Database administrative login by Unix domain socket
local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
@jljohnstone
jljohnstone / index.html
Last active August 29, 2015 14:16
display a page inside of a div in another page
<!DOCTYPE html>
<html>
<head>
<title>There's a page in my div</title>
<style type="text/css">
.the-div {
border: 1px solid #555;
}
</style>
</head>
@jljohnstone
jljohnstone / gist:7cf5fb848ed15e0803e7
Created February 19, 2015 18:06
jquery ui accordian collapse all
$(function() {
$( "#Accordion1" ).accordion({
collapsible: true,
active: false
});
});
@jljohnstone
jljohnstone / app.rb
Created August 10, 2014 21:29
Example Watir/CSV script
require 'csv'
require 'watir-webdriver'
######### If IE is required, comment out line 7 and uncomment line 10 #########
# Use default browser
browser = Watir::Browser.new
# Use Internet explorer
# browser = Watir::Browser.new :ie
@jljohnstone
jljohnstone / data.csv
Created August 10, 2014 21:28
Example CSV data file
asdf wqer
weqa ezasdb
awegh sadfwegtg
awg23h awb
adfbnj kirtyuk
tyks ejhsfgm
srtmk earmkd
sfgkwr aezsr