This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE {{ table.name }}_post_{{ issue }} | |
LIKE {{ table.name }}; | |
-- Your alterations here. | |
CREATE TRIGGER ai_{{ table.name }} | |
AFTER INSERT | |
FOR EACH ROW | |
REPLACE INTO {{ table.name }}_post_{{ issue }} ( | |
{% for column in table.columns %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib as c | |
import decorator as d | |
from pgconvert import schema as ps | |
@d.decorator | |
def with_cursor(f, conn, *args, **kwargs): | |
with c.closing(conn.cursor()) as cursor: | |
return f(cursor, *args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ldapauth($ldap_uri, $search_base, $bind_dn, $bind_passwd, $enable_root = false, $root_dn = '', $root_passwd = '') { | |
package { 'libnss-ldap': | |
ensure => installed, | |
} | |
package { 'libpam-cracklib': | |
ensure => installed, | |
} | |
package { 'libpam-ldap': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash/zsh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see the current branch in your prompt. | |
# | |
# To enable: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:)owen@nj1:~$ cat /etc/apache2/sites-available/grimoire.ca | |
<VirtualHost *:80> | |
ServerName grimoire.ca | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/grimoire.ca | |
<Directory /var/www/grimoire.ca> | |
Options FollowSymLinks MultiViews | |
</Directory> | |
</VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.web; | |
import java.net.URI; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.MediaType; | |
import javax.ws.rs.core.UriInfo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rules xmlns="http://unreasonent.com/xml/ds/string-generator"> | |
<rule name="name"> | |
<template>{onset}{nucleus}{coda}</template> | |
</rule> | |
<rule name="onset"> | |
<template>{V}</template> | |
<template>{V}{c}</template> | |
</rule> | |
<rule name="nucleus"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.ojacobson; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.Scanner; | |
import java.util.regex.Pattern; | |
import com.google.common.collect.ArrayListMultimap; | |
import com.google.common.collect.ListMultimap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
HOOKS="$(dirname "$0")" | |
# Capture stdin for replay into individual hooks. | |
REFS=$(cat) | |
for hook in "$HOOKS"/post-receive.d/*; do | |
echo "$REFS" | "$hook" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo puppet | |
config hooks.post-receive-command = "sudo pupdate -a" |