Skip to content

Instantly share code, notes, and snippets.

View eralvarez's full-sized avatar

Erick Alvarez eralvarez

View GitHub Profile
docker run --network=host --name cloudflared-tunnel-container -d cloudflare/cloudflared:latest tunnel --no-autoupdate run --token <TOKEN>
@eralvarez
eralvarez / sleep fn
Created September 25, 2024 21:59
fn to sleep js code
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
@eralvarez
eralvarez / .bashrc
Last active January 10, 2023 16:43
WSL2 Ubuntu 18.04/20.04
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac