Skip to content

Instantly share code, notes, and snippets.

Sean Johnson pirogoeth

Block or report user

Report or block pirogoeth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pirogoeth /
Created Jul 15, 2014
super fabulous backup script
#!/usr/bin/env bash
if [ "${BS_DEBUG}" == "YES" ] ; then
set -x
# this is a configurable backup script that should run on a cron job.
# declares the arrays we'll be using, don't change these


lua51-5.1.5_9                  Small, compilable scripting language providing easy access to C code
lua51-lpeg-0.12                Parsing Expression Grammars For Lua
lua51-luafilesystem-1.6.3      Library to access directory structure and file attributes
lua51-luasocket-3.0r1          IPv4 and IPv6 socket support for the Lua language
luajit-2.0.4                   Just-In-Time Compiler for Lua
View gist:b74d5daf9d9c5f480122
View gist:91d03b77f7c21e66d35d
[root@68c39403-047d-11e5-aed9-931e8adbea11 /var/cache]# salt-call
[DEBUG ] Configuration file path: /usr/local/etc/salt/minion
[DEBUG ] Reading configuration from /usr/local/etc/salt/minion
[DEBUG ] Including configuration from '/usr/local/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /usr/local/etc/salt/minion.d/_schedule.conf
[DEBUG ] Initializing new SAuth for ('/usr/local/etc/salt/pki/minion', '', 'tcp://[2001:470:1f0f:dff::12]:4506')
[ERROR ] An un-handled exception was caught by salt's global exception handler:
ZMQError: Invalid argument
Traceback (most recent call last):
File "/usr/local/bin/salt-call", line 9, in <module>
View gist:c4a9cf9d45e54830e4db
2015-07-12 10:55:05,651 [salt.cli.daemons ][INFO ][60510] Setting up the Salt Minion ""
2015-07-12 10:55:05,743 [salt.cli.daemons ][INFO ][60510] The salt minion is shut down
2015-07-12 10:55:05,744 [salt.cli.daemons ][INFO ][60515] The salt minion is shut down
2015-07-12 10:55:05,745 [salt.utils.process ][DEBUG ][60516] Created pidfile: /var/run/
2015-07-12 10:55:05,747 [salt.config ][DEBUG ][60516] Reading configuration from /usr/local/etc/salt/minion
2015-07-12 10:55:05,805 [salt.config ][DEBUG ][60516] Including configuration from '/usr/local/etc/salt/minion.d/_schedule.conf'
2015-07-12 10:55:05,805 [salt.config ][DEBUG ][60516] Reading configuration from /usr/local/etc/salt/minion.d/_schedule.conf
2015-07-12 10:55:11,220 [salt.minion ][DEBUG ][60516] Attempting to auth
View gist:53e42c80e94b5e8a9656
root@09c6f1e8-2857-11e5-9437-ffa6f814d82a:~ # salt-minion -c /usr/local/etc/salt -l trace
[DEBUG ] Reading configuration from /usr/local/etc/salt/minion
[TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module.
[DEBUG ] Configuration file path: /usr/local/etc/salt/minion
[TRACE ] Trying pysss.getgrouplist for 'root'
[TRACE ] Trying generic group list for 'root'
[TRACE ] Group list for user 'root': ['operator']
[INFO ] Setting up the Salt Minion ""
[DEBUG ] Created pidfile: /var/run/
[DEBUG ] Reading configuration from /usr/local/etc/salt/minion
View lualdap-makefile.patch
diff --git a/Makefile b/Makefile
index 3ff7bc1..357c235 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
-CFLAGS += $(shell pkg-config --cflags lua)
-LDLIBS += $(shell pkg-config --libs lua) -lldap
+CC := /usr/bin/clang
+CFLAGS += -I/usr/local/include -I/usr/local/include/luajit-2.0
+LDLIBS += -L/usr/local/lib/ -lldap
View map.jinja
### nginx:map.jinja ###
{% set nginx = salt['grains.filter_by']({
'default' : {
'package' : 'nginx',
'base_d' : '/etc/nginx',
'config_path' : '/etc/nginx/nginx.conf',
'conf_d' : '/etc/nginx/conf.d',
'log_d' : '/var/log/nginx',
'sites_d' : '/etc/nginx/sites.d',
pirogoeth /
Created Jan 12, 2011
generates a global.tcl file to load eggtcl scripts simply.
#!/usr/bin/env bash
#global.tcl generator
# variables
select_list="Yes No"
if test -e ./global.tcl ; then
echo "Remove global.tcl?"
select choice in $select_list
View part of index.php
GNU nano 2.2.4 File: ../index.php
include ('include/header.php');
include ('php/');
function github_feed () {
$feed = new SimplePie;
You can’t perform that action at this time.