Skip to content

Instantly share code, notes, and snippets.

@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
--- extra/kipi-plugins/CMakeLists.txt~ 2014-11-26 08:53:41.000000000 -0600
+++ extra/kipi-plugins/CMakeLists.txt 2014-11-26 08:53:58.000000000 -0600
@@ -100,8 +100,8 @@
MACRO_OPTIONAL_FIND_PACKAGE(Gdk) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GLIB2) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GObject) # For ipodexport.
- MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
- MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
+ #MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
+ #MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
--- extra/kipi-plugins/CMakeLists.txt~ 2014-11-26 09:06:46.000000000 -0600
+++ extra/kipi-plugins/CMakeLists.txt 2014-11-26 09:07:01.000000000 -0600
@@ -90,8 +90,8 @@
MACRO_OPTIONAL_FIND_PACKAGE(Gdk) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GLIB2) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GObject) # For ipodexport.
-MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
-MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
+#MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
+#MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
@jprjr
jprjr / keybase.md
Created April 8, 2015 13:38
keybase.md

Keybase proof

I hereby claim:

  • I am jprjr on github.
  • I am jprjr (https://keybase.io/jprjr) on keybase.
  • I have a public key whose fingerprint is D1C2 E8CC C232 8C19 98CE 92B7 1A8A B126 F912 9FA6

To claim this, I am signing this object:

./xbps-src -a x86_64-musl pkg zlib
[*] Updating `http://repo.voidlinux.eu/current/x86_64-repodata' ...
[*] Updating `http://repo.voidlinux.eu/current/nonfree/x86_64-repodata' ...
x86_64-repodata: 9120B [avg rate: 249MB/s]
[*] Updating `http://repo.voidlinux.eu/current/multilib/x86_64-repodata' ...
x86_64-repodata: 309KB [avg rate: 1226KB/s]
[*] Updating `http://repo.voidlinux.eu/current/multilib/nonfree/x86_64-repodata' ...
x86_64-repodata: 6423B [avg rate: 180MB/s]
[*] Updating `http://repo.voidlinux.eu/current/x86_64-musl-repodata' ...
ERROR: [reposync] failed to fetch file `http://repo.voidlinux.eu/current/x86_64-musl-repodata': Not Found