Skip to content

Instantly share code, notes, and snippets.

View e30chris's full-sized avatar
💭
ensuring infrastructure state from git

chrisL e30chris

💭
ensuring infrastructure state from git
View GitHub Profile
<!-- for the autocomplete on arrivals departues and search box -->
<script>
$(function() {
var guest = [
"Peter Venkman",
"Ray Stantz",
"Dana Barrett",
"Egön Spengler",
"Louis Tullu",
"Janine Milnitz",
@e30chris
e30chris / gist:3140518
Created July 19, 2012 03:12
chris login error
Started POST "/login/login" for 216.36.113.246 at 2012-07-19 03:11:46 +0000
Processing by LoginController#login as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ax1A9APK3MLxxwEnWByh6IHwEqQdqxyTfoU92VwDB7Q=", "username"=>"chris", "password"=>"[FILTERED]", "commit"=>"Login"}
\n\n/user/login
\n\n--------------------\n Requesting: POST ipa.hostelhub.me /api/user/login {"username"=>"chris", "password"=>"kirklandsnowcones"} json
\nresponse: 200 {"sessid"=>"PJy3XyBp_l7HTXV1zWnAvkN7UaY6XuoUYxi4n1SuhfE", "session_name"=>"SESS32a831bc13ee4bdfe4ca6310c283b894", "user"=>{"uid"=>"7876", "name"=>"chris", "mail"=>"chris_a5338559a0dac4c6fe750d82d832163f@example.com", "theme"=>"", "signature"=>"", "signature_format"=>"filtered_html", "created"=>"1342035556", "access"=>"1342667438", "login"=>1342667506, "status"=>"1", "timezone"=>"America/Los_Angeles", "language"=>"", "picture"=>nil, "init"=>"chris_a5338559a0dac4c6fe750d82d832163f@example.com", "data"=>false, "uuid"=>"ae59bd41-ef58-27a4-6905-6bbfe453ee3c", "roles"=>{
@e30chris
e30chris / site.pp
Created February 18, 2013 18:09
Puppet site.pp file for installing 'screen' on PuppetAgents.
class screen {
package { screen:
ensure => present,
}
file { "/root/.screenrc":
owner => "root",
group => "root",
mode => 0440,
source => "puppet://$puppetserver/modules/screen/root/.screenrc",
# make bash our shell
shell /bin/bash
# detach on hangup
autodetach on
# don't display copyright page
startup_message off
#should resolve some "can't find display" issues
@e30chris
e30chris / nginx.conf
Last active December 14, 2015 06:38
PuppetMaster with Nginx and Passenger - nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@e30chris
e30chris / puppet.conf
Last active December 14, 2015 06:39
PuppetMaster with Nginx and Passenger - /etc/nginx/conf.d/puppet.conf
server {
listen 8140 ssl;
server_name puppet pmaster.gamilon.com;
passenger_enabled on;
passenger_set_cgi_param HTTP_X_CLIENT_DN $ssl_client_s_dn;
passenger_set_cgi_param HTTP_X_CLIENT_VERIFY $ssl_client_verify;
access_log /var/log/nginx/puppet_access.log;
error_log /var/log/nginx/puppet_error.log;
@e30chris
e30chris / nginx
Created February 28, 2013 00:11
Nginx init script
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
@e30chris
e30chris / nginx
Created February 28, 2013 00:15
Nginx sysconfig file
# Configuration file for the nginx service.
NGINX=/opt/nginx/sbin/nginx
CONFFILE=/etc/nginx/nginx.conf
LOCKFILE=/var/lock/subsys/nginx
@e30chris
e30chris / .bashrc
Last active December 16, 2015 00:49
Linux aliases
# Aliases
alias la='ls -alhFG'
alias c='clear'
alias c.='cd ../'
alias c..='cd ../../'
alias c~='cd ~'
alias f='mdfind -name'
alias gh='history |grep'
alias gp='ps -aux |grep'
alias p='pwd'
@e30chris
e30chris / category_list.html
Created November 27, 2013 01:05
category_list.html aside for Octopress
<section class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Categories</h3>
</div>
<div class="list-group">
{% for category in site.categories %}
{% capture category_url %}{{ site.category_dir }}/{{ category | first | slugize | downcase | replace:' ','-' | append:'/index.html'}}{% endcapture %}
<a class="list-group-item {% if category_url == page.url %}active{% endif %}" href="{{ root_url | append:'/' | append:category_url }}">
<span class="badge">{{ category | last | size }}</span>
{{ category | first }}