Skip to content

Instantly share code, notes, and snippets.

View electblake's full-sized avatar
🧙

Blake E electblake

🧙
View GitHub Profile
@guest271314
guest271314 / javascript_engines_and_runtimes.md
Last active April 5, 2025 04:14
A list of JavaScript engines, runtimes, interpreters

V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.

SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on

#!/bin/sh
# Wakka: A package manager wrapper.
# Provides a consistent interface across multiple package managers.
# Currently supports: apt (Debian/Ubuntu), yum (Red Hat/CentOS),
# dnf (Fedora), apk (Alpine), and brew (macOS).
WAKKA_VERSION="1.0.0"
print_help() {
@matthughes
matthughes / md_slack.rb
Last active April 3, 2025 21:03 — forked from h6y3/md_slack.rb
Obsidian Markdown to Slack
#!/usr/bin/env ruby
# Read from stdin rather than file.
file_data = $stdin.read
# Upper case title
re = /^#* .+/
file_data.gsub!(re) { |match| "*#{match.upcase}*"}
# Mutate todos
@NatLee
NatLee / restart_docker.sh
Last active October 18, 2024 03:44
Synology DSM 7.x - A way to restart service of docker
# Use new Synology CLI tool -> `synopkgctl`
#usage: synopkgctl <command> [...]
#command:
# enable <package>
# disable <package>
# setup <package>
# start <package>
# stop <package>
# teardown <package>
@jscyo
jscyo / helper.js
Last active September 28, 2022 16:28
Helper functions for Auth0 to SuperTokens migration
let auth0Domain = "https://yourdomain.com"
let userIdMappingFile = "/userDataMapping.json"
let doesUserExistInAuth0DataBase = async (email, password) => {
let config = {
method: "post",
url: auth0Domain + "/oauth/token",
headers: {
@h6y3
h6y3 / md_slack.rb
Last active April 3, 2025 21:03
Obsidian Markdown to Slack
#!/usr/bin/env ruby
filename = "/Users/hyuan/Development/bin/tmp/tmp_slack_md.txt"
file = File.open(filename)
file_data = file.read
# Upper case title
re = /^#* .+/
file_data.gsub!(re) { |match| "*#{match.upcase}*"}
@kepano
kepano / obsidian-web-clipper.js
Last active April 21, 2025 06:17
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@austinsonger
austinsonger / root.md
Created June 9, 2021 16:20
MacOS: Root Directory Structure
/: Root directory, present on virtually all UNIX based file systems. Parent directory of all other files

.DS_Store: This file contains Finder settings, such as icon location, position of icons, choice of a background image, window size and the names of all files (and also directories) in that folder. The file will appear in any directory that you’ve viewed with the Finder and and has functions similar to the file desktop.ini in Microsoft Windows. .DS_Store is an abbreviation of Desktop Services Store

.DocumentRevisions-V100/: DocumentRevisions-V100 is an internal version control system introduced by Apple in OSX Lion. It basically saves a copy of a file each and every time you save it. Apple uses it for TextEdit, KeyNote, Pages, Numbers, and some other programs. Developers can also interact with this API in their apps. Basically this system is a very big database file that keeps track of all your changes to documents and allows you to revert back to any versions.

.fseventsd/: fseventsd is a “File sys
@wbern
wbern / bin.ts
Last active August 17, 2021 18:13
rush-changed-projects (some process.env vars might be org-specific)
import { getCommand } from "./lib";
import { printCommand } from "./util";
import process from "process";
function main() {
const [
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
__,
@statik
statik / waf.ts
Last active October 16, 2024 02:36
WAF with CDK examples
import * as cdk from "@aws-cdk/core";
import * as wafv2 from "@aws-cdk/aws-wafv2";
// This extends the base cdk stack properties to include a tag name input.
export interface StackProps extends cdk.StackProps {
tag: string;
applicationName?: string;
}
export class WAFStack extends cdk.Stack {