This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var timeoutID; | |
function makeEmote(emoteWidth, emoteHeight, emoteImage) { | |
var $newdiv = $('<div>').css({ | |
'width': emoteWidth + 'px', | |
'height': emoteHeight + 'px', | |
'background-image': 'url(' + emoteImage + ')' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'), //ezmode | |
fs = require('fs'); | |
var uploadFileName = 'tit.jpg'; // this is a local file, but could be any file or data you want to read in | |
//ITS A BIRD I SWEAR | |
fs.readFile('./' + uploadFileName, function read(err, data) { | |
// hipchat appears to expect the file as a byte array | |
// and does not support Content-Transfer-Encoding at the time of this gist's creation | |
request.post({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic Dante Socks5 Setup, Debian | |
apt-get update | |
apt-get install make gcc | |
cd /usr/src | |
# get newest from http://www.inet.no/dante/download.html | |
wget http://www.inet.no/dante/files/dante-1.4.1.tar.gz |
NewerOlder