Skip to content

Instantly share code, notes, and snippets.

@pirogoeth
pirogoeth / openpgp.txt
Created March 11, 2016 02:44
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:fe5936df6b1fae3e0db7716e331c0128eadbd70d]
@pirogoeth
pirogoeth / _INSTALL.md
Created January 16, 2016 22:42 — forked from robinsmidsrod/_INSTALL.md
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

Keybase proof

I hereby claim:

  • I am pirogoeth on github.
  • I am failfish (https://keybase.io/failfish) on keybase.
  • I have a public key whose fingerprint is FE59 36DF 6B1F AE3E 0DB7 716E 331C 0128 EADB D70D

To claim this, I am signing this object:

@pirogoeth
pirogoeth / saml.lua
Created November 9, 2015 04:04
beginning of saml support in lsso
--
-- saml.lua -- module that handles SAML communication
--
module('saml', package.seeall)
-- Lua standard and external library imports
local os = require "os"
local xml = require "xml"
### 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',
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
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
[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>
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
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