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 / 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/alpinejs@3.x.x/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

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 
# use it like adebig api server
@yebt
yebt / ssh-usage.md
Last active September 19, 2022 21:01
This is a file to how confugate ssh access

Gen

ssh-keygen -t rsa -b 4096 -C "yourmail@gmail.com"

Test connection

ssh -T git@github.com
ssh -T git@gitlab.com
[Desktop Entry]
Version=1.0
Name=Firefox Developer Edition
Comment=Browse the Web
Exec=~/Documents/executables/firefox-103.0b6/firefox/firefox --class="firefox-developer" -P dev-edition-default %u
StartupNotify=true
StartupWMClass=firefox-developer
Icon=/opt/firefox/browser/icons/mozicon128.png
Terminal=false