Skip to content

Instantly share code, notes, and snippets.

View danopia's full-sized avatar

Daniel Lamando danopia

View GitHub Profile
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@affinity-matrix
affinity-matrix / gist:3430820
Created August 23, 2012 00:27
TheEmpath repping 4over with class
~ #node.js
[20.16.16] < TheEmpath> so
[20.16.34] < TheEmpath> anyone else have a hot programmer girl in their office? o____O
[20.16.42] < Lorentz> I wiiish
[20.16.48] <@Nexxy> not appropriate.
[20.16.57] »¡« Signoff caaakeeey: #Node.js (Ping timeout: 260 seconds)
[20.17.32] < joshwnj> yeah guys, grow up
[20.17.38] < jerrysv> Nexxy: olynode was fun, you should have gone
[20.18.03] < TheEmpath> my boss came by and said "Here, a new subodinate" and its a very attractive female. the otherwise painfully quite engineering room suddenly came to life and its a problem :X
~~~~~~~
#!/usr/bin/env ruby
# Praxis -- a multicaster proxy for Axis Camera MJPEGs.
# License: MIT
# Author: Ricky Elrod <[email protected]>
STREAM_URL = 'http://wm161.kicks-ass.net:8080/mjpg/video.mjpg'
require 'em-http-request'
require 'sinatra'
set :server, :thin
@reyjrar
reyjrar / elasticsearch.yml
Last active December 26, 2024 21:46
ElasticSearch config for a write-heavy cluster
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration for a write heavy cluster
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing
@blha303
blha303 / irccloud-colorize.js
Last active November 8, 2018 13:13
IRCCloud replace & with formatting characters | &b is bold, &r is reset, &<number from 0 to 15> is a color | I'm going to regret this.
var inputbox = $('#bufferInputView' + cb().bid());
var msg = inputbox.val();
inputbox.val("");
var cc = "\u0003";
var bold = "\u0002";
var reset = "\u000f";
var italic = "\u0016";
var underline = "\u001f";
cb().say(msg.replace(/&b/g,bold).replace(/&r/g,reset).replace(/&i/g,italic).replace(/&u/g,underline).replace(/&/g,cc));

ETEKCITY ZAP Remote control codes

These are the codes sent by the 5-device remote included in part number 10-BH9938U-3:

3349955349964
DeviceOnOff
1349491349500
2349635349644

WebRTC negotiation over IRC

Copyright (c) 2015 Patrick Cloke [email protected]

Unlimited redistribution and modification of this document is allowed provided that the above copyright notice and this permission notice remains intact.

WebRTC

@richardg867
richardg867 / proxy.py
Last active June 25, 2025 01:28
Comic Chat fixer
#
# Comic Chat fixer MITM proxy: fixes Comic Chat to (sort of) work with modern
# IRC servers. Tested with Microsoft Chat 2.5 on Windows XP, 8 and 10
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,

Deploying Meteor Apps Via Docker

###Requirements You only need docker installed to use this guide. Meteor, Node and MongoDB will be provided by the docker image.

###Docker Installation Install docker using the instructions for your preferred OS from: https://docs.docker.com/installation/

If you didn't add your user to the docker group you will need to use sudo for all commands.