Skip to content

Instantly share code, notes, and snippets.

View hellstackdev's full-sized avatar

Jordan Mostroso Francia hellstackdev

View GitHub Profile
@hellstackdev
hellstackdev / .bash_aliases
Created September 6, 2025 18:21 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@hellstackdev
hellstackdev / deno.ts
Last active April 11, 2025 12:27
Deno Easter Eggs
function printLogo() {
const logo = `
@@@@@@@@@
@@%=.--.-*@@@@
@@@-. #@@* .-*@@@@
@@*. +@@: . ..=@@@
@@=.. .%@
@@=. . . . .%@
@@= . .#@@
@@+ .*+. .*@@@
@hellstackdev
hellstackdev / UnregisterServiceWorker.md
Created November 18, 2023 20:35
Unregister all installed service workers in the Browser

Service Worker

Code Snippet to unregister all installed service workers in the Browser

Chrome (Work with all Chromium-Based Browsers)

Note

Shows all installed Service Workers : chrome://serviceworker-internals/

@hellstackdev
hellstackdev / index.html
Last active March 12, 2023 15:58
OJopLPN
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand navbar-logo" href="#">Navbar</a>
<button class="navbar-toggler" type="button" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars text-white"></i>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto">
<div class="hori-selector">
<div class="left"></div>
<div class="right"></div>
@hellstackdev
hellstackdev / copy_env_example_to_env.md
Last active November 18, 2023 20:39
npm postinstall script copy .env.example to .env

This script uses the if statement to check if the file .env exists (with [ ! -f ".env" ]). If the file doesn't exist, the script uses the cp command to copy .env.example to .env. If the file exists, a message is displayed indicating that the file already exists.

📄 Shell script version

#!/bin/bash

if [ ! -f ".env" ]; then
  cp .env.example .env
 echo "Copied .env.example to .env"