Skip to content

Instantly share code, notes, and snippets.

View felipealfonsog's full-sized avatar
🧳
Working from home

Felipe Alfonso González felipealfonsog

🧳
Working from home
View GitHub Profile
@felipealfonsog
felipealfonsog / install_yay.sh
Last active March 18, 2024 15:32
This bash script installs Yay, a package manager for Arch Linux, from its source on the Arch User Repository (AUR). It checks if the user is in their home directory and prompts for confirmation before proceeding. The script then removes any existing Yay installation, clones the Yay repository, builds and installs it, and cleans up temporary file…
#!/bin/bash
#------------------------
# By Felipe Alfonso González
# Computer Science Engineer
# github.com/felipealfonsog
# f.alfonso.go@res-ear.ch
#------------------------
# Follow this commands before executing:
# chmod +x install_yay.sh
# ./install_yay.sh
@felipealfonsog
felipealfonsog / L'Évangile de Tux
Last active July 26, 2023 11:39
L'Évangile de Tux
L'Évangile de Tux, dévoilé
L'histoire de chaque génération est façonnée par une mythologie. Chaque millénaire
abrite un culte de l'apocalypse. Chaque légende est déformée jusqu'à ce que le
haut-parleur fonde. Aujourd'hui, des archéologues de l'Université de Helsinki ont
mis au jour ce qui pourrait être les premiers écrits connus du Culte de Tux, une
secte religieuse fanatique qui a prospéré à l'aube de l'Ère du Silicium, aux
alentours du début du troisième millénaire après J.-C...
L'Évangile de Tux (v1.0)
@felipealfonsog
felipealfonsog / Configuration for .gitconfig
Last active January 4, 2022 11:04 — forked from pksunkara/config
The git ~/.gitconfig & .gitconfig - Fix the problem of How can I save username and password in Git Unix//Mac
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[sendemail]
smtpencryption = tls
@felipealfonsog
felipealfonsog / gpg_fix.txt
Created December 30, 2021 20:27 — forked from cezaraugusto/gpg_fix.txt
fixing `gpg failed to sign data` error on macOS
For troubleshooting, two things to first try:
run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg
run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working
If that all looks all right, one next thing to try:
run `brew install pinentry` to ensure you have a good tool installed for passphrase entry
If after that install and you re-try git commit and still get the "failed to sign the data" error:
run `gpgconf --kill gpg-agent` to kill any running agent that might be hung
@felipealfonsog
felipealfonsog / Gospel of Tux unearthed
Created July 26, 2021 12:18
Gospel of Tux unearthed
Gospel of Tux unearthed
Gospel of Tux unearthed
Every generation has a mythology. Every millenium has a doomsday cult. Every
legend gets the distortion knob wound up until the speaker melts. Archeologists at
the University of Helsinki today uncovered what could be the earliest known
writings from the Cult of Tux, a fanatical religious sect that flourished during the
early Silicon Age, around the dawn of the third millenium AD...
The Gospel of Tux (v1.0)
@felipealfonsog
felipealfonsog / El Evangelio de Tux, desenterrado
Last active October 7, 2021 10:22
El Evangelio de Tux, desenterrado
El Evangelio de Tux, desenterrado.
__________________________________________________________________________________________
Cada generación tiene una mitología. Cada milenio tiene un día del
Juicio Final.
Cada leyenda lleva el nudo de la distorsión hasta que el orador se
funde. Un grupo de arqueólogos en la Universidad de Helsinki descubrieron
hoy lo que pueden ser las escrituras más antiguas conocidas del Culto de
@felipealfonsog
felipealfonsog / Samba Config
Last active April 8, 2024 08:46 — forked from sytkov/smb.conf
/etc/samba/smb.conf
# Quick general config
min protocol = SMB2
vfs objects = catia fruit streams_xattr
fruit:aapl = yes
fruit:metadata = stream
fruit:model = Macintosh
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
@felipealfonsog
felipealfonsog / matrixshell.sh
Last active January 15, 2024 23:32
Matrix effect for a shell on Unix/Linux
#!/bin/bash
#modified from https://gist.github.com/dhaiducek by Felipe Gonzalez f.alfonso@res-ear.ch
lines=$(tput lines)
cols=$(tput cols)
awkscript='
#!/bin/env sh
lines=$(tput lines)
cols=$(tput cols)
awkscript='
{
letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"
lines=$1
@felipealfonsog
felipealfonsog / gomatrix
Created July 16, 2021 00:44 — forked from dhaiducek/gomatrix
Modified Matrix Effect (original from @khakimov)
#!/bin/bash
lines=$(tput lines)
cols=$(tput cols)
awkscript='
{
lines=$1
random_col=$3
letter=$4