Skip to content

Instantly share code, notes, and snippets.

@jprjr
jprjr / README.md
Created October 17, 2013 14:39 — forked from ismell/README.md

Production Ready Process Monitoring

  1. Install docker-manger.conf and docker-instance.conf in /etc/init

  2. Create a containers file in /etc/docker/ with the following format

     name: image cmd
    

    The name must be unique.

  3. sudo service docker-manager start

@jprjr
jprjr / Dockerfile
Created November 26, 2013 23:09
Setting up pyenv in docker
FROM tianon/centos-null:5.9
RUN rpm -i http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
RUN yum -y update
RUN yum -y install gcc git curl make zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl openssl-devel
RUN useradd -m python_user
RUN ln -s /proc/self/fd /dev/fd
build_package_shared() {
local package_name="$1"
# patch the makefile for a shared library
curl -L https://gist.github.com/jprjr/8476378/raw/lua51-shared-library.patch | patch -p 1
if [ "${MAKEOPTS+defined}" ]; then
MAKE_OPTS="$MAKEOPTS"
elif [ -z "${MAKE_OPTS+defined}" ]; then
MAKE_OPTS="-j 2"
@jprjr
jprjr / index_idea.lua
Last active August 29, 2015 13:56
Lua Indexed-List Demo
#!/usr/bin/env lua
-- I'm using luajson here
local json = require("json");
local list_file = "data.lst";
local index_file = "data.idx";
-- returns just the list index
function list_load_index()
local index;
@jprjr
jprjr / ss2csv
Created February 28, 2014 14:41
#!/usr/bin/env perl
use strict;
use warnings;
use version; our $VERSION = qv('1.0.0');
use utf8;
use open qw(:std :utf8);
use Carp;
pkgname=php-libgit2-git
pkgver=20140409
pkgrel=3
pkgdesc="PHP bindings for libgit2 (php-git)"
url="https://github.com/libgit2/php-git"
license="MIT"
arch=('i686' 'x86_64')
depends=('php' 'libgit2')
conflicts=('php-libgit2')
makedepends=('php' 'git' 'cmake')
@jprjr
jprjr / PKGBUILD
Created August 25, 2014 15:42
PKGBUILD - musl 1.0.4
# Maintainer: TJ Vanderpoel <tj@rubyists>
# Contributor: John Regan <john@jrjrtech.com>
pkgname=musl
pkgver=1.0.4
pkgrel=1
pkgdesc="An implementation of the C/POSIX standard library intended for use on Linux-based systems"
arch=('i686' 'x86_64')
url="http://www.musl-libc.org/"
license=('MIT')
--- nginx-1.6.2/debian/rules 2014-09-16 14:06:41.000000000 +0000
+++ nginx-1.6-2-ldap/debian/rules 2014-09-16 15:02:21.707068296 +0000
@@ -49,6 +49,7 @@
--with-mail \
--with-mail_ssl_module \
--with-file-aio \
+ --add-module=/tmp/mods/nginx-auth-ldap \
$(WITH_SPDY) \
--with-cc-opt="$(CFLAGS)" \
--with-ld-opt="$(LDFLAGS)" \
@jprjr
jprjr / ps2.config
Created November 19, 2014 12:53
PS2 as XBOX 360 with xboxdrv
[xboxdrv]
trigger-as-button=true
[evdev-absmap]
ABS_X=x1
ABS_Y=y1
ABS_Z=y2
ABS_RZ=x2
ABS_HAT0X=dpad_x
ABS_HAT0Y=dpad_y
@jprjr
jprjr / weechat.md
Last active June 6, 2022 10:10 — forked from zer4tul/weechat.md

A Simple, Base16 Friendly, Weechat Setup

Scripts

  • Some must-have scripts
  /script install buffers.pl beep.pl urlserver.py highmon.pl