Skip to content

Instantly share code, notes, and snippets.

View kylejeske's full-sized avatar
🐛
(!(while(succeed=try())));

kyle kylejeske

🐛
(!(while(succeed=try())));
  • Distributed
View GitHub Profile
@kylejeske
kylejeske / gist:742775c9e259469f09582c2834ea3f53
Created December 4, 2019 15:06 — forked from billsinc/gist:4665346
Find Largest Files/Directories on Linux System
# 10 Largest Files
find . -type f -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
@kylejeske
kylejeske / console-log-format-timestamp.ts
Last active February 8, 2024 22:14 — forked from mikeatlas/console-log-format-timestamps.js
Overrides the console.log (specifically this is for node.js) with an ISO timestamp prefix and still handles string interpolation formats.
import { debuglog, format } from "util";
import { Console } from "console";
type LoggerOverrideFunction = (...args: any) => void;
type InjectedConsole = {
info: LoggerOverrideFunction;
log: LoggerOverrideFunction;
warn: LoggerOverrideFunction;
};
@kylejeske
kylejeske / RustJS.md
Created March 5, 2024 23:31 — forked from ulanda/RustJS.md
Rust Compile with asmjs target

You will need nightly Rust

  • Install Rust, se rustup.sh curl -sSf https://static.rust-lang.org/rustup.sh | sh
  • Update installaion with: rustup self update rustup self update-data
  • Install nightly Rust: rustup toolchain install nightly
  • Default to nightly: rustup default nightly
@kylejeske
kylejeske / ecmascript-rs.md
Created May 2, 2024 18:22 — forked from pitaj/ecmascript-rs.md
ECMAScript/JavaScript tokenizers, lexers, parsers, tools, minifiers, compilers, etc in rust
  • spdy web compiler swc is rust port of babel and closure compiler.
  • ratel High performance JavaScript to JavaScript compiler with a Rust core
  • RESS Rusty EcmaScript Scanner
  • RESSA Rust EcmaScript Syntax Analyzer
  • rjs An implementation of ECMAScript 5.1, in Rust. Work in progress.
  • espadon EcmaScript parser writter in Rust (WIP)
  • tyrion EcmaScript 6 parser written in Rust.
  • esprit A JavaScript parser written in Rust
  • j8t