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
pirogoeth / backup.sh
Created Jul 15, 2014
super fabulous backup script
View backup.sh
#!/usr/bin/env bash
if [ "${BS_DEBUG}" == "YES" ] ; then
set -x
fi
# this is a configurable backup script that should run on a cron job.
# declares the arrays we'll be using, don't change these
View ssowat-setup.md

Packages

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
py27-salt-2015.5.2:
py27-requests-2.7.0
py27-MarkupSafe-0.23
py27-pycrypto-2.6.1_1
py27-m2crypto-0.22.3
py27-pyzmq-14.6.0
py27-libcloud-0.17.0
py27-progressbar-2.3
python27-2.7.9_1
python2-2_3
View gist:91d03b77f7c21e66d35d
[root@68c39403-047d-11e5-aed9-931e8adbea11 /var/cache]# salt-call test.ping
[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', 'www.epsilon.maio.me', '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 "www.epsilon.maio.me"
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/salt-minion.pid
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 "fluent.epsilon.maio.me"
[DEBUG ] Created pidfile: /var/run/salt-minion.pid
[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
pirogoeth / global.sh
Created Jan 12, 2011
generates a global.tcl file to load eggtcl scripts simply.
View global.sh
#!/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
do
View part of index.php
GNU nano 2.2.4 File: ../index.php
<?
include ('include/header.php');
include ('php/simplepie.inc');
function github_feed () {
$feed = new SimplePie;
$feed->set_feed_url('http://github.com/miyoko.atom');
$feed->enable_cache(true);
You can’t perform that action at this time.