Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊
Operator has been released!

Michael Sly-Little-Fox

🦊
Operator has been released!
View GitHub Profile
@Sly-Little-Fox
Sly-Little-Fox / prismarine2snbt.js
Created April 2, 2023 12:49
Converts PrismarineJS JSON data files into SNBT.
View prismarine2snbt.js
import fs from "node:fs";
const data = JSON.parse(fs.readFileSync("dimensioncodec.json", "utf-8"));
let minified = JSON.stringify(data);
function replaceType(regex, replacement) {
minified = minified.replace(regex, "$1" + replacement);
}
function formatFloat(_, match) {
@Sly-Little-Fox
Sly-Little-Fox / bashrc.bash
Last active April 26, 2022 13:07
My .bashrc (some details removed)
View bashrc.bash
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls -lhA --color=auto'
export PATH="$PATH:$HOME/bin"
@Sly-Little-Fox
Sly-Little-Fox / jimp.patch
Last active April 16, 2021 16:20
Patch for Jimp. For more info go to https://github.com/oliver-moran/jimp/issues/1003. This patch is for node_modules/@jimp/core/dist/request.js.
View jimp.patch
--- request.js 1985-10-26 11:15:00.000000000 +0300
+++ node_modules/@jimp/core/dist/request.js 2021-04-16 19:00:04.976882455 +0300
@@ -6,9 +6,35 @@
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
-function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
+function ownKeys(object, enumerableOnly) {
+ var keys = Object.keys(object);
+ if (Object.getOwnPropertySymbols) {
@Sly-Little-Fox
Sly-Little-Fox / temporary-email-address-domains
Last active April 7, 2021 15:08 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
View temporary-email-address-domains
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com