Skip to content

Instantly share code, notes, and snippets.

View LeetCodes's full-sized avatar
🎱
Choppin' caine rain, hail, sleet, or snow

LeetCodes

🎱
Choppin' caine rain, hail, sleet, or snow
View GitHub Profile
//colorize-text.js -by- KenDB3 of KD3net (http://bbs.kd3.us)
//This script is meant for use with Synchronet BBSes.
//It requires JSexec.exe (from SBBS) to be run from command line.
//It was written in the spirit of the 1991 program A2A - ASCII to ANSI file converter by David Kauffman A.K.A. Ansi.
//colorize-text.js takes a plain text file and adds Synchronet Ctrl-A colorization.
//If you prefer ANSI color encoding, you could convert the output file with the SBBS utility asc2ans.exe.
//Usage:
//Pick a color and intensity for Text, a color and intensity for Numbers, and a color and intensity for Non-Text Characters
//Add the colorize-text.js script to your mods (/sbbs/mods/) or your exec (/sbbs/exec/) directory.
@LeetCodes
LeetCodes / reclaimWindows10.ps1
Created October 1, 2019 04:20 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <[email protected]>
# Modified by: alirobe <[email protected]> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@LeetCodes
LeetCodes / dontforget.bash
Created September 5, 2019 22:46 — forked from ttscoff/dontforget.bash
Quick reminders from Terminal (bash)
#!/bin/bash
# dontforget
#
# A stupid script for short term reminders in bash
#
# Arguments just need to contain a number and a bunch of words.
#
# The number can be anywhere in the arguments, but there shouldn't
# be any other numeric digits.
#
@LeetCodes
LeetCodes / is-private-mode.js
Created June 22, 2019 21:40 — forked from jherax/is-private-mode.js
Detect if the browser is running in Private mode
// uncomment if you are transpiling with Babel + Webpack
// const { window, document } = global;
/**
* Lightweight script to detect whether the browser is running in Private mode.
*
* You should use a polyfill for Promise.
* @see https://ourcodeworld.com/articles/read/316/top-5-best-javascript-promises-polyfills
*
* @returns {Promise}
@LeetCodes
LeetCodes / gist:91a95d26bb5e02543aeb24d77e4ec7ab
Created June 10, 2019 21:19 — forked from philfreo/gist:7257723
Facebook Perl source code from 2005. When browsing around thefacebook.com in 2005 the server spit out some server-side source code rather than running it. I believe this was for their old graph feature that let you visualize the graph between all your friends. The filename is `mygraph.svgz` and contains some gems such as a commented out "zuck" d…
#!/usr/bin/perl
use Mysql;
use strict;
use vars qw($school_name);
use vars qw($pass);
require "./cgi-lib.pl";
@LeetCodes
LeetCodes / README.md
Created June 10, 2019 21:17 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@LeetCodes
LeetCodes / dat-api.md
Created April 19, 2019 23:58 — forked from donmccurdy/dat-api.md
Missing api docs for dat.gui.
@LeetCodes
LeetCodes / stacker.scss
Created April 17, 2019 03:23 — forked from jerrylow/stacker.scss
Pure CSS Game Stacker
@import url('https://fonts.googleapis.com/css?family=VT323');
$block-gap: 8px;
$block-size: 25px;
$blocks-per-row: 7;
$blocks-color: #233f5a;
$blocks-active: #fabc7f;
$blocks-bg: #172031;
$speed: 2.5s;
@LeetCodes
LeetCodes / SSimSuperRes.glsl
Created April 4, 2019 01:50 — forked from igv/SSimSuperRes.glsl
To make it sharper use Mitchell params instead of Catmull-Rom (1.0/3.0, 1.0/3.0 instead of 0.0, 0.5), another less preferable option is to decrease locality. Usage: glsl-shaders="~~/SSimSuperRes.glsl"
// SSimSuperRes by Shiandow
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@LeetCodes
LeetCodes / DC6.ksy
Created April 4, 2019 01:45 — forked from MarkKoz/DC6.ksy
Diablo II's DC6 file format described with Kaitai.
meta:
id: dc6
title: Diablo CEL 6
application: Diablo II
file-extension: dc6
license: MIT
ks-version: 0.7
encoding: ASCII
endian: le
seq: