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 / 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"
],

Instalación IPA con Ansible Modules

IPA Principal

Instalar paquetes

sudo dnf install ansible-freeipa ansible

Configurar ssh

@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
@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>
#!/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 / 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
@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 / 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 / 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 / instructions.md
Last active August 17, 2025 06:05
Ethernet and Wi-Fi mutually exclusive