Skip to content

Instantly share code, notes, and snippets.

@pirogoeth
pirogoeth / zenstaller.sh
Created August 25, 2012 05:06
I found this while searching my old hard drive.
#!/bin/bash
#zenstaller script for linux - pirogoeth
#copyright 2009-2010 brokendream products
clear
##############################################
# VARIABLES #
@pirogoeth
pirogoeth / Lines.java
Created October 30, 2012 02:03
A little program I wrote to do my precal homework problems for me.
import java.lang.Math;
import java.util.*;
public class Lines {
public CoordSet first;
public CoordSet second;
public static class CoordSet {
@pirogoeth
pirogoeth / dirlocate.sh
Created November 28, 2012 02:34
locates a directory above the current. used to find project directories in dm. based on lsiden's original.
function dirlocate () {
fDir=$1
sLimit=$2
lDir=""
curdir=`pwd`
while [[ "`pwd`" != "${sLimit}" && "`pwd`" != "/" ]] ; do
if test -e "${fDir}" ; then
cd ${fDir}
lDir=`pwd`
break;
@pirogoeth
pirogoeth / backup.sh
Created July 15, 2014 15:20
super fabulous backup script
#!/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

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
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
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
[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>
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
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