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 / 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 / .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 / inventory.sh
Created March 29, 2021 19:19 — forked from tuxfight3r/inventory.sh
Ansible dynamic inventory bash demo
#!/bin/bash
if [ "$1" == "--list" ] ; then
cat<<EOF
{
"bash_hosts": {
"hosts": [
"10.220.21.24",
"10.220.21.27"
],
@mrlpm
mrlpm / script-template.sh
Created February 10, 2021 01:52 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@mrlpm
mrlpm / git-pushing-multiple.rst
Created September 26, 2018 17:30 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@mrlpm
mrlpm / ansible-summary.md
Created June 14, 2018 23:06 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@mrlpm
mrlpm / bobp-python.md
Created June 1, 2016 14:56 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens