This file contains 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
######################################################### | |
# | |
# Memory size: <%= memorysize %> | |
# max_connections: <%= max_connections %> | |
# Lun Fileystems: <%= lun_filesystem %> | |
# | |
######################################################### | |
listen_addresses = '*' | |
port = 5432 | |
max_connections = <%= max_connections %> |
This file contains 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 | |
# | |
# Based on: https://gist.github.com/rajeevkannav/d07f822e209a22d07176 | |
POPPLER_VERSION=$1 | |
# second argument is the pdf2htmlEX version | |
# default to 0.14.6 | |
PDF2HTMLEX_VERSION=${2:-"0.14.6"} |
This file contains 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 | |
sudo apt-get purge -y python-pip | |
cd /tmp | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py |
This file contains 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
sudo tee file_i_want_to_truncate < /dev/null |
This file contains 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
# Installation | |
# ============ | |
# Based off Chad Thompson's: | |
# https://raw.githubusercontent.com/chad-thompson/packer-example/master/ubuntu-simple-preseed.cfg | |
# Clock and Timezone | |
# ------------------ | |
# ### Hardware Clock |
This file contains 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
#!/usr/bin/python | |
import crypt | |
import random | |
import string | |
def getsalt(mysalt = "", chars = string.letters + string.digits): | |
# generate a random 16-character 'salt' |
This file contains 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
######################################################### | |
# | |
# puppet generated postgresql.conf | |
# Memory size: <%= memorysize %> | |
# max_connections: <%= max_connections %> | |
# Lun Fileystems: <%= lun_filesystem %> | |
# | |
######################################################### | |
listen_addresses = '*' | |
port = 5432 |
This file contains 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
# only supply or default logfile path when none is given explicitly in | |
# postgresql.conf | |
my @options = ($pg_ctl, 'start', '-D', $info{'pgdata'}); | |
my $logsize = 0; | |
if ($info{'logfile'}) { | |
push @options, ('-l', $info{'logfile'}); | |
# remember current size of the log | |
$logsize = (stat $info{'logfile'})[7] || 0; # ignore stat errors | |
} |
This file contains 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
neutron floatingip-list --format csv --quote none | awk -F ',' '{ if ($2 == "" ) print $3 }'|head -1 |
This file contains 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
Resque::Failure.each { |idx, f| puts f } |
NewerOlder