Skip to content

Instantly share code, notes, and snippets.

View tmatilai's full-sized avatar

Teemu Matilainen tmatilai

View GitHub Profile
@tmatilai
tmatilai / README.md
Last active October 13, 2015 12:18
POC for integrating knife-ec2 and knife-solo plugins

knife-ec2-solo

Description

Proof of concept implementation to integrate knife-ec2 and knife-solo Chef Knife plugins. Adds --solo option to knife ec2 server create that uses knife solo bootstrap for bootstrapping the instance. Also other solo bootstrap options are available.

@cybozuty
cybozuty / mod_authnz_crowd-2.0.2-groupsenv.patch
Created April 17, 2012 01:03
Patch Atlassian mod_authnz_crowd 2.0.2 to provide space-delimited list of remote user's groups to CGIs via a user-configurable environment variable. Supercedes https://gist.github.com/2154942
--- src/crowd_client.h 2012-03-16 14:05:25.000000000 +0900
+++ src/crowd_client.h 2012-03-16 14:52:02.000000000 +0900
@@ -14,6 +14,7 @@
const char *crowd_app_password; /* Application password used to authenticate with Crowd */
const char *crowd_url; /* Base URL of the Crowd server */
long crowd_timeout; /* Crowd response timeout, in seconds, or 0 for no timeout */
+ const char *groups_env_name; /* Name of the environment variable to store a space-delimited list of groups that the remote user belongs to */
} crowd_config;
/**
@tmatilai
tmatilai / todo-txt-colors-solarized-dark.config
Created January 18, 2012 16:18
todo.txt colors for dark Solarized color scheme
# todo.txt colors for dark Solarized color scheme
export PRI_A=$RED
export PRI_B=$BROWN
export PRI_C=$BLUE
export PRI_D=$CYAN
export PRI_E=$LIGHT_PURPLE
export PRI_X=$LIGHT_CYAN
export COLOR_DONE=$LIGHT_GREEN
@sinisterchipmunk
sinisterchipmunk / LICENSE
Last active October 23, 2024 21:10
tar, gzip, and untar files using ruby in memory without tempfiles
Copyright (C) 2011 by Colin MacKenzie IV
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
@eric
eric / DISCLAIMER.md
Created March 28, 2011 22:59
Log directly to Papertrail or any remote syslog target from Heroku