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 / 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
# put the podman sock like docker sock
ln -s /var/run/user/1000/podman/podman.sock /var/run/docker.sock
# OR
export DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
# sart the service of podman
podman system service -t 0 --log-level=debug &
# in case to error in invere proxy
sudo sysctl net.ipv4.ip_unprivileged_port_start=23