Skip to content

Instantly share code, notes, and snippets.

View DC3's full-sized avatar

Dee Cheung DC3

View GitHub Profile
@CodeIter
CodeIter / termux-pacman-glibc-setup.sh
Last active October 26, 2024 06:26
Setup `glibc-runner` with pacman on Termux and install Deno.JS and Bun.JS .
#!/usr/bin/env -S bash -xeuo pipefail
set -xeuo pipefail
pkg install pacman patchelf \
which time ldd tree
echo
echo
@CodeIter
CodeIter / custom-tinycore.sh
Created April 13, 2024 10:50 — forked from dankrause/custom-tinycore.sh
Create a custom tinycore linux iso. Adjust the config at the beginning of the script, or supply a conf as the first arg. Requires xorriso.
#!/bin/bash
set -e
function cleanup() {
# clean up our temp folder
rm -rf "${TMPDIR}"
}
trap cleanup EXIT
@billywhizz
billywhizz / README.md
Last active February 15, 2024 17:04
example extracting audio mp3 from video file in browser using native browser api's

Setup

install the audio-encoder package

github

curl -L -o audio_encoder.js https://raw.githubusercontent.com/cstoquer/audio-encoder/master/dist/audioEncoder.js
@yusukebe
yusukebe / .gitignore
Last active November 27, 2023 15:52
node-benchmarks
node_modules
yarn.lock
yarn-error.log
*.tgz
@CPatchane
CPatchane / updateImageExif.js
Last active May 3, 2024 15:41
getaround-tech-blog_exif-data-manipulation-javascript
// Gist used for this getaround tech article: https://getaround.tech/exif-data-manipulation-javascript/
const getUpdatedImage = (image, onReady) => {
const reader = new FileReader()
reader.addEventListener("load", ({ target }) => {
if (!target) throw new Error("no blob found")
const { result: buffer } = target
if (!buffer || typeof buffer === "string") {
throw new Error("not a valid JPEG")
}
@ThioJoe
ThioJoe / Appx-Uninstaller.ps1
Last active November 6, 2024 16:36
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows
#
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
#
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ )
# .\WhateverScriptName.ps1
# -------------------------------------------------------------------------------------------
# Script by ThioJoe - https://github.com/ThioJoe
@dmnsgn
dmnsgn / JavaScript landscape: compilers, bundlers and others by the numbers.md
Last active October 3, 2024 22:16
A non-exhaustive list of tools for JavaScript development as it has become "complicated".

JavaScript landscape: compilers, bundlers and others by the numbers

A non-exhaustive list of tools for JavaScript development as it has become "complicated".

Compilers

Name: language Stars Last Commit Owner/Sponsorship
tsc: JavaScript GitHub Repo stars GitHub last commit Microsoft
[babel]
@Zikoat
Zikoat / 1_vue2-zustand.md
Last active August 1, 2024 18:36
vue2-zustand

How to use Zustand with Vue 2

💻 Check out this Codesandbox demo: Vue 2 Playground

ℹ️ This approach works for Vue 2.6 and above.

🔍 Tiny: Just 10 lines of source code, no dependencies.

✨ The same Zustand store can be used with different libraries, such as Vue, React, or Svelte.

@kfox
kfox / README.md
Last active December 4, 2023 11:08
TCP echo server for Node.js

TCP echo server for Node.js

Usage

  1. Make sure you have a modern-ish version of Node.js installed.
  2. Type npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3
  3. Connect to it from a client, e.g. netcat or similar: nc localhost 9000
@insertish
insertish / React Native.md
Last active October 16, 2024 10:41
Configure React Native with Typescript, Vite.js for react-native-web and Storybook.