Skip to content

Instantly share code, notes, and snippets.

@Fire-
Fire- / railgun-sound.js
Last active August 20, 2017 09:27
sound settings for railgun & mixer
const [muted, unmuted] = [false, true];
let Config = {
Software: {
Playback: {
"Device Name": "Speakers",
Levels: {
"Realtek HD Audio Output": [0.0, unmuted],
Microphone: [0.0, muted],
"Front Pink In": [-34.5, muted],
"Rear Blue In": [-15.0, muted],
@Fire-
Fire- / v2f.sh
Created June 20, 2017 04:28
video to gif
## change seek (-ss) and length (-t) values as appropriate.
## Preview with ffplay first.
ffmpeg -ss 00:00:13.80 -t 00:00:11.90 -i input.file -vf "crop=in_w:720,fps=50" -an -r 50 -f image2pipe -c:v ppm - | magick convert -set delay 2 - -delay 2 -layers Optimize output.file.gif
@Fire-
Fire- / !dynamic-scale.kapchat.css
Last active February 14, 2023 02:55
KapChat changes - dynamic scaling with font size, inverted message order, custom font
/* main, full replace, dynamic kapchat. This will override all CSS in the default clear theme */
html {
font-size: 24px;
/* everything scales with this font-size; default is 16px.
* Usage of `em` in font-size refers to the parent's font-size as 1em.
* Usage of `rem` refers to the root em value ( this ) instead.
* Use `rem` when possible.
*/
width: 100%;
height: 100%;
@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.
@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- / 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

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- / 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 ): "
@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- / 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);