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 / README.md
Created September 8, 2021 01:23 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@yebt
yebt / get_composer_deps.py
Last active May 17, 2024 13:24
This script was created as an helps to recover the require dependencies inside vendor directory of project, if you lost the main composer.json
#!/bin/python
# -*- coding: utf-8 -*-
import json
import sys
# Constant vars
if len(sys.argv) != 2:
print('Error!! -- No file specified ')
print('\t get_composer_deps.py <path/to/vendor/composer/installed.json>')
function showcolors256() {
local row col blockrow blockcol red green blue
local showcolor=_showcolor256_${1:-bg}
local white="\033[1;37m"
local reset="\033[0m"
echo -e "Set foreground color: \\\\033[38;5;${white}NNN${reset}m"
echo -e "Set background color: \\\\033[48;5;${white}NNN${reset}m"
echo -e "Reset color & style: \\\\033[0m"
echo

Try use the nginx proxy with podman

Dependincies

  • podman
  • podman-remote
  • podman-docker
  • podman-gvproxy
  • podman-docker
  • podman-compose
# 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
[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
@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
# use it like adebig api server

Call node with env vars

PORT=3001 node index.js 
const { PORT = 0 } = procsess.env 
@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()
{