Skip to content

Instantly share code, notes, and snippets.

🏡
Working remotely from Berlin

Joel Purra joelpurra

View GitHub Profile
@joelpurra
joelpurra / stonehenge.js
Created Oct 21, 2018
monolith was taken so heres the makings to stonehenge
View stonehenge.js
((dev) => {
"use strict";
const fs = require('fs');
const path = require('path');
const express = require('express');
const log_color = {
clear: "\x1b[0m",
read: "\x1b[34m",
@joelpurra
joelpurra / mono-server4.service
Created Oct 8, 2016 — forked from virtualdreams/mono-server4.service
systemd mono-server4 unit script
View mono-server4.service
[Unit]
Description=FastCGI mono server 4
After=network.target
[Service]
Environment=MONO_IOMAP=all
EnvironmentFile=
Type=simple
ExecStart=/usr/bin/fastcgi-mono-server4 /applications=*:/:/srv/www/mvc/ /socket=tcp:127.0.0.1:9000
User=www-data
@joelpurra
joelpurra / git-create.bash
Created Oct 6, 2016
Create new empty remote git repository via ssh
View git-create.bash
#!/bin/bash
#
# create a new empty remote repository.
#
# Usage: git-create <remote-url>
#
if [ -z "$1" ]
then
echo "Usage: $0 <remote-url>"
echo
@joelpurra
joelpurra / update_to_nan_v2.0.x.sh
Last active Jul 24, 2016 — forked from thlorenz/update_to_nan_v2.0.x.sh
Script to update Node.js addons to work with nan 2.0.x and thus with iojs v3.x/node v4/5/6 (gets you 99% there)
View update_to_nan_v2.0.x.sh
# Script has moved to https://github.com/joelpurra/getdns-developer-support/tree/master/src/getdns-node/nan-upgrade
open 'https://github.com/joelpurra/getdns-developer-support/tree/master/src/getdns-node/nan-upgrade'
View keybase.md

Keybase proof

I hereby claim:

  • I am joelpurra on github.
  • I am joelpurra (https://keybase.io/joelpurra) on keybase.
  • I have a public key whose fingerprint is 4C47 B4FF 173A E6ED 0DB7 3394 6DF6 890D 2A97 7668

To claim this, I am signing this object:

@joelpurra
joelpurra / jquery.youtubin.js
Last active Dec 26, 2015
A patched version of jquery.youtubin.js that accepts https and youtu.be urls, and fixes a change to jQuery's .attr() http://jonraasch.com/blog/youtubin-jquery-plugin http://dev.jonraasch.com/youtubin/
View jquery.youtubin.js
/**
* jquery.youtubin.js
* Copyright (c) 2009 Jon Raasch (http://jonraasch.com/)
* Licensed under the Free BSD License (see http://dev.jonraasch.com/youtubin/docs#licensing)
*
* @author Jon Raasch
* @author Joel Purra <code@joelpurra.com>
*
* @projectDescription jQuery plugin to allow simple and unobtrusive embedding of youtube videos with a variety of options.
*
@joelpurra
joelpurra / pubsublogging.joelpurra.js
Created Sep 28, 2012
Overriding $.publish() to capture the event for logging purposes. For use with jQuery pub/sub plugin by Peter Higgins.
View pubsublogging.joelpurra.js
/*!
* @license PubSubLogging
* Copyright © 2012 Joel Purra <http://joelpurra.se/>
* Released under MIT, BSD and GPL license. Comply with at least one.
*
* Overriding $.publish() to capture the event for logging purposes.
*
* For use with jQuery pub/sub plugin by Peter Higgins (dante@dojotoolkit.org)
* http://higginsforpresident.net/
* https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js
View README.md
@joelpurra
joelpurra / README.md
Last active Oct 6, 2015
A jQuery plugin to show and hide follow up questions in a form. The follow ups are specified through HTML5 [data-*] attributes.
View README.md
@joelpurra
joelpurra / objectcomparator.joelpurra.js
Created Jun 24, 2012
A javascript plugin to create a comparator for one or more properties of an object. Comparators are useful for sorting arrays of objects, and for general comparisons in, for example, if statements. The comparison is done only if the types of both objects'
View objectcomparator.joelpurra.js
/*!
* @license ObjectComparator
* Copyright © 2012 Joel Purra <http://joelpurra.se/>
* Released under MIT, BSD and GPL license. Comply with at least one.
*
* A javascript plugin to create a comparator for one or more properties of an object.
* Comparators are useful for sorting arrays of objects, and for general comparisons
* in, for example, if statements.
* The comparison is done only if the types of both objects' property matches.
*/
You can’t perform that action at this time.