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 / gitcheck.sh
Last active March 27, 2024 03:48
"Gitcheck," checks for repositories within a directory that require actions, such as adding files or committing changes.
#!/bin/bash
################################################################################
# Script: gitcheck #
# Description: Script to check for repositories needing actions. #
# Created by: Felipe Alfonso González - github.com/felipealfonsog - #
# [email protected] #
# License: BSD 3-Clause #
################################################################################
@felipealfonsog
felipealfonsog / Action Script Linux
Last active June 27, 2024 10:19
This Bash script allows users to easily shutdown, suspend, or reboot their system via a simple menu interface.
#!/bin/bash
# Action Script
# Author: Felipe Alfonso González
# GitHub: github.com/felipealfonsog
# Contact: [email protected]
# License: BSD 3-Clause License
# Function to display the options menu
display_menu() {
@felipealfonsog
felipealfonsog / ca-certificates.crt
Created March 18, 2024 15:19
This is a bundle of X.509 certificates of public Certificate Authorities (CA).
##
## Bundle of CA Root Certificates
##
## Certificate data from Mozilla as of: Thu Dec 9 22:21:11 2021 GMT
##
## This is a bundle of X.509 certificates of public Certificate Authorities
## (CA). These were automatically extracted from Mozilla's root certificates
## file (certdata.txt). This file can be found in the mozilla source tree:
## https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
##
@felipealfonsog
felipealfonsog / ca-bundle.crt
Last active March 18, 2024 15:42
ca-bundle The Mozilla CA bundle extracted and converted to PEM at regular intervals. See the PEM file itself for the actual date of the latest Mozilla source change that is included in converted file. Github: https://github.com/bagder/ca-bundle
##
## Bundle of CA Root Certificates
##
## Certificate data from Mozilla as of: Mon Mar 11 15:15:21 2024 GMT
##
## This is a bundle of X.509 certificates of public Certificate Authorities
## (CA). These were automatically extracted from Mozilla's root certificates
## file (certdata.txt). This file can be found in the mozilla source tree:
## https://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt
##
@felipealfonsog
felipealfonsog / ca-certificates.sh
Last active March 21, 2024 16:42
Update ca-certificates.crt
#!/usr/bin/env bash
#=================================================
# https://github.com/P3TERX/ca-certificates.crt
# Description: Update ca-certificates.crt
# Version: 1.1
# Lisence: MIT
# Author: P3TERX
# Blog: https://p3terx.com
#=================================================
# This package should be installed in: /etc/ssl/certs
@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
# [email protected]
#------------------------
# 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 = [email protected]
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)