Skip to content

Instantly share code, notes, and snippets.

View yebt's full-sized avatar
🌱
Whoa. expectant and in awe 🥷🏻

Eduardo Bravo yebt

🌱
Whoa. expectant and in awe 🥷🏻
View GitHub Profile
@yebt
yebt / Usage.md
Created April 9, 2025 21:51
Live server

Usage

node live-server.js [path]
@yebt
yebt / bookmarks.fish
Created March 23, 2025 01:44
bookmarks fish -> use in conf.d/bookmarks.fish
#!/usr/bin/env fish
# Bookmark manager for the fish shell
# Functions:
# - bmadd: Add a bookmark
# - bmrm: Remove bookmarks
# - bmls: List bookmarks
# - goto: Interactive navigation to bookmarks using fzf
# Configuration
// 1. Log in to your Amazon account
// 2. Go to your Content Library > Books - https://www.amazon.com/hz/mycd/digital-console/contentlist/booksAll/dateDsc/
// 3. Open your browser's Javascript console
// 4. For each page of books, paste this script into the console
(async function () {
// Close the notification if it appears
function closeNotification() {
const notifClose = document.querySelector("span#notification-close");
if (notifClose) {
@yebt
yebt / index
Created June 7, 2024 22:28
Index test php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test doc - PHP</title>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
<style>
a,hr{color:inherit}progress,sub,sup{vertical-align:baseline}blockquote,body,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,menu,ol,p,pre,ul{margin:0}dialog,fieldset,legend,menu,ol,ul{padding:0}.relative,sub,sup{position:relative}.text-cosmic-800,.text-east-bay-500,.text-gray-200,.text-gray-300,.text-wby-400{--tw-text-opacity:1}.backdrop-blur-md,.backdrop-brightness-110{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.bg::after,.container{width:100%}*,::after,::before{box-sizing:border-box;border:0 solid #e5e7eb;--tw-
@yebt
yebt / search_engine.md
Created May 29, 2023 16:15
Search engines to chrome and Brave

Google Chrome Custom Search Engines

By Dan Turkel

A lot of people don't seem to realize the utility of the Google Chrome Custom Search Engine feature. Personally, I use it all the time every day. Want to search Wikipedia for Pokemon? Without lifting my fingers off the keyboard, I enter +L, then w Pokemon and Enter and bang, I'm there!

The Search Engines

Name Keyword Url
@yebt
yebt / ffd2023.md
Last active August 17, 2024 03:39

Fedora Full Setup

This setup of fedora use i3wm

Prepare System

updates and rpm fusion

# update
#!/bin/bash
unz (){
[ -z "$1" ] && echo "no file to unzip :|" && exit 1
name="${1%.*}"
echo "----------------------"
echo "uncompress ----------- $1"
echo "----------------------"
unzip $1 -d $name
#!/bin/bash
PMDR_WRK="25"
PMDR_BRK="5"
PMDR_LBRK="15"
# check command
if ! command -v lolcat &>/dev/null; then
echo "'lolcat' could not be found https://github.com/busyloop/lolcat"
exit
@yebt
yebt / GeneralMail.php
Last active June 20, 2023 21:46
Laravel 7 swift dkim usage; on new versions of laravel 9^, swift Mailer is remplaced with Symfony Mailer
<?php
#...
# app/Mail/ResetPassword.php
#...
class GeneralMail extends Mailable{
#...
public function build()
{

Call node with env vars

PORT=3001 node index.js 
const { PORT = 0 } = procsess.env