Skip to content

Instantly share code, notes, and snippets.

View joelpurra's full-sized avatar
🤷
¯\_(ツ)_/¯

Joel Purra joelpurra

🤷
¯\_(ツ)_/¯
View GitHub Profile
@joelpurra
joelpurra / pubsublogging.joelpurra.js
Created September 28, 2012 21:35
Overriding $.publish() to capture the event for logging purposes. For use with jQuery pub/sub plugin by Peter Higgins.
/*!
* @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 ([email protected])
* http://higginsforpresident.net/
* https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js
@joelpurra
joelpurra / jquery.youtubin.js
Last active December 26, 2015 18:18
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/
/**
* 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 <[email protected]>
*
* @projectDescription jQuery plugin to allow simple and unobtrusive embedding of youtube videos with a variety of options.
*

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 / update_to_nan_v2.0.x.sh
Last active July 24, 2016 20:02 — 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)
# 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'
@joelpurra
joelpurra / git-create.bash
Created October 6, 2016 16:48
Create new empty remote git repository via ssh
#!/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 / mono-server4.service
Created October 8, 2016 13:13 — forked from virtualdreams/mono-server4.service
systemd mono-server4 unit script
[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 / stonehenge.js
Created October 21, 2018 13:31
monolith was taken so heres the makings to stonehenge
((dev) => {
"use strict";
const fs = require('fs');
const path = require('path');
const express = require('express');
const log_color = {
clear: "\x1b[0m",
read: "\x1b[34m",