Skip to content

Instantly share code, notes, and snippets.

Avatar

TLZ TheLastZombie

View GitHub Profile
@TheLastZombie
TheLastZombie / README.txt
Last active Oct 2, 2020
A simple server example with websockets, powered by Express and Primus.
View README.txt
git clone https://gist.github.com/TheLastZombie/d670d3c2b7050515ee69ecf060e43f4f
cd d670d3c2b7050515ee69ecf060e43f4f
npm install
npm start
@TheLastZombie
TheLastZombie / README.md
Last active Aug 6, 2020
Default shell executables
View README.md
Shell Executable
Babun C:\Users\%USERNAME%\.babun\cygwin\bin\bash.exe ⚠️
Clink C:\Program Files (x86)\clink\0.4.9\clink.bat ⚠️
Command Prompt C:\Windows\System32\cmd.exe
Cygwin C:\cygwin64\bash.exe
[Git Bash](https://git-s
@TheLastZombie
TheLastZombie / index.js
Created Feb 25, 2020
simple node.js connection test (204) server w/ native http
View index.js
const http = require("http");
http.createServer((req, res) => {
res.writeHead(204);
res.end();
}).listen(80);
View .gitignore
node_modules
package-lock.json
uploads
@TheLastZombie
TheLastZombie / PowercordBDImporter.exe
Last active May 20, 2019
PowercordBDImporter is a tool that helps you migrate from BetterDiscord to Powercord. https://git.io/pcbdi
View PowercordBDImporter.exe
This file has been truncated, but you can view the full file.
@TheLastZombie
TheLastZombie / edt.js
Last active Oct 10, 2019
edt: live webpage editing using javascript.
View edt.js
document.body.contentEditable = "true";
document.designMode = "on";
@TheLastZombie
TheLastZombie / std.bat
Last active Oct 10, 2019
std: subreddit stylesheet downloader.
View std.bat
@echo off
set sub=
echo.
echo std2: subreddit stylesheet downloader
if "%1" == "" (
echo.
echo no subreddit(s^) provided.
) else (
for %%s in (%*) do (
echo.
@TheLastZombie
TheLastZombie / mtw.bat
Last active Feb 21, 2018
mtw: music to webm using ffmpeg.
View mtw.bat
@echo off
chcp 65001 >nul
echo.
echo mtw: music to webm
echo.
where ffmpeg.exe >nul 2>nul
if %errorlevel% == 1 goto ffnf
where ffprobe.exe >nul 2>nul
if %errorlevel% == 1 goto fpnf
if "%~1%" == "" goto help
@TheLastZombie
TheLastZombie / xfx.bat
Last active Oct 18, 2017
xfx: exif orientation fixing using imagemagick.
View xfx.bat
@echo off
chcp 65001 >nul
echo.
if "%~1" == "-i" (
if exist "%~2" (
identify -format "%%[exif:*]" "%~2" | findstr "exif:Orientation"
) else goto fmss
) else if "%~1" == "-f" (
if exist "%~2" (
convert "%~2" -auto-orient "%~2"
You can’t perform that action at this time.