Skip to content

Instantly share code, notes, and snippets.

@Fire-
Fire- / installDante.sh
Created October 3, 2014 19:53
Basic Dante Socks5 Server Setup and Configuration
# 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
@Fire-
Fire- / requestUpload.js
Last active July 12, 2017 10:20
example for uploading files to Hipchat with the v2 api with node.js and the Request package
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({
@Fire-
Fire- / randemote.js
Last active August 29, 2015 14:13
Random emotes to part of the dom
'use strict';
var timeoutID;
function makeEmote(emoteWidth, emoteHeight, emoteImage) {
var $newdiv = $('<div>').css({
'width': emoteWidth + 'px',
'height': emoteHeight + 'px',
'background-image': 'url(' + emoteImage + ')'
});
@Fire-
Fire- / ticker.js
Created April 8, 2015 01:52
js ticker
var ticker = setTimeout(function tick() {
clearTimeout(ticker);
console.log('tick');
ticker = setTimeout(tick, 1000);
}, 1000);
@Fire-
Fire- / decode.js
Created April 25, 2015 01:01
don't look at me I'm terrible
decoded = (function (string) {
try {
return decodeURIComponent(string);
} catch (e) {
return unescape(string);
}
})(encoded);
@Fire-
Fire- / editor.bat
Created July 10, 2015 05:46
cut content with ffmpeg
@echo off
:begin
if "%~1" == "" goto end
set "done="
set "start_ts="
set "end_ts="
echo(
echo "Cutting: %~1"
echo(
set /p start_ts="Enter starting timestamp ( Format: hh:mm:ss.mus, eg: 00:38:32.570 ): "

Keybase proof

I hereby claim:

  • I am fire- on github.
  • I am fire (https://keybase.io/fire) on keybase.
  • I have a public key whose fingerprint is 5553 5681 83BE 6D7A A65C 763F 6960 54FD 5C99 1060

To claim this, I am signing this object:

@Fire-
Fire- / controls.ini
Created March 12, 2016 06:26
wasteland kings multiplayer gamepad controls for https://twitter.com/YellowAfterlife/status/708397801110171650
[0]
name=Keyboard+mouse
left=A|Left
right=D|Right
up=W|Up
down=S|Down
shoot=mb1
ability=mb2
take=E
switch=Q|Space
@Fire-
Fire- / reflow.vpy.py
Created June 11, 2016 06:06
fps reflow alteration
### 0
## Uses motion vectors to change the framerate of a file with motion blur instead of standard duplication or decimation
## Requires:
# ffmpeg
# vapoursynth http://www.vapoursynth.com/
# ffms2 vs plugin https://github.com/FFMS/ffms2/blob/master/doc/ffms2-vapoursynth.md
# mvtools vs plugin https://github.com/dubhater/vapoursynth-mvtools
### 1
## Snip the part you want, or use the whole file, either way
## if you do not need to snip, or to re-encode, omit this step.
@Fire-
Fire- / !dynamic-scale.kapchat.css
Last active August 13, 2022 12:36
KapChat changes - dynamic scaling with font size, inverted message order, custom font, setting custom nicknames using nothing but CSS
/* Dynamically scaling chat
* For use with https://nightdev.com/kapchat/
*
* Main file – full replace.
* This should override all CSS in the default clear theme.
*/
html {
font-size: 16px;
/* Everything scales with this font-size.
* Default if not manually set is 16px.