Skip to content

Instantly share code, notes, and snippets.

View mrlpm's full-sized avatar
🎯
Focusing

Luis Pérez mrlpm

🎯
Focusing
View GitHub Profile
@mrlpm
mrlpm / install_nerd_fonts_on_mac.md
Created October 31, 2025 03:20 — forked from gibranbadrul/install_nerd_fonts_on_mac.md
A script to interactively select and install Nerd Fonts for macOS using Homebrew and fzf

Install Nerd Fonts Script

Description

install_nerd_fonts.sh is a Bash script that allows you to interactively select and install Nerd Fonts on macOS using Homebrew and fzf.

Features

  • Uses fzf for an interactive font selection.
  • Installs selected Nerd Fonts via Homebrew.
@mrlpm
mrlpm / bashrc.sh
Created August 18, 2025 02:34 — forked from skarllot/bashrc.sh
Default Bash prompt (bashrc PS1)
# Each distribution default Bash prompts
# Gentoo (/etc/bash/bashrc)
if [[ ${EUID} == 0 ]] ; then
PS1='\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] '
else
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
fi
@mrlpm
mrlpm / instructions.md
Last active August 17, 2025 06:05
Ethernet and Wi-Fi mutually exclusive
@mrlpm
mrlpm / ng-firebase-google-login.md
Created September 30, 2023 11:27 — forked from debojyoti/ng-firebase-google-login.md
Firebase google login setup in Angular

Firebase google login setup in Angular

Social login is the fastest way to engage users. And luckily firebase has done the hard work for us. In this post we will configure google login in no time!

Step-1: Configure firebase and google cloud console

1.1: Setup firebase project

1.1.1: Head to firebase and open your project

@mrlpm
mrlpm / login-form.component.css
Created September 30, 2023 11:22 — forked from tarikguney/login-form.component.css
Login Form Design in Angular Material
.login-form-flex {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
.button-flex-container {
display: flex;
width: 100%;
@mrlpm
mrlpm / keybase.md
Last active September 21, 2024 21:22

Keybase proof

I hereby claim:

  • I am mrlpm on github.
  • I am binary (https://keybase.io/binary) on keybase.
  • I have a public key ASBKz9fuw8syqsDfuVyn7uX7KbY7PmIh1HA9Zam_W2lbIQo

To claim this, I am signing this object:

@mrlpm
mrlpm / workstation.sh
Last active July 5, 2022 06:37
Provision workstation with GUI
#!/usr/bin/env bash
sudo dnf update -y
sudo dnf install -y vim bash-completion epel-release
sudo dnf repolist
if [ ! -f /usr/local/bin/zellij ];
then
wget -q https://github.com/zellij-org/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz -O /tmp/zellij.tar.gz
sudo tar -xzvf /tmp/zellij.tar.gz -C /usr/local/bin/
sudo chmod 755 /usr/local/bin/zellij
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
dnf update -y
dnf install -y vim bash-completion epel-release
dnf repolist
wget -q https://github.com/zellij-org/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz -O /tmp/zellij.tar.gz
sudo tar -xzvf /tmp/zellij.tar.gz -C /usr/local/bin/
@mrlpm
mrlpm / .htaccess
Created June 2, 2021 17:08 — forked from ThijsFeryn/.htaccess
Force HTTPS redirect for sites behind a reverse (caching) proxy that terminates SSL
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
Header append Vary: X-Forwarded-Proto
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
@mrlpm
mrlpm / rhel6toOL6toOL7.md
Last active August 3, 2021 16:10
Convertir RHEL 6 a Oracle Linux 7

Convertir RHEL6 a OL6 y Actualizar a OL7

Convertir RHEL6 a OL6

  • Descargar paquetes requeridos por oracle, si se tiene ambiente gráfico es obligatorio descargar los 2 paquetes.
wget https://linux-update.oracle.com/rpms/uln_register.tgz
wget https://linux-update.oracle.com/rpms/uln_register-gnome.tgz