Skip to content

Instantly share code, notes, and snippets.

View mrlpm's full-sized avatar
🎯
Focusing

Luis Pérez mrlpm

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dbinary on github.
  • I am binary (https://keybase.io/binary) on keybase.
  • I have a public key whose fingerprint is 29C9 F364 3A27 3BD4 5A0E D9D8 F05E 47A3 93AF FBE6

To claim this, I am signing this object:

@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
@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 / 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

diff --git a/.SRCINFO b/.SRCINFO
index 1fbb6bf..5cb9c97 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = advanced-rest-client
pkgdesc = A developer tool to test a HTTP request. The Advanced REST Client desktop application.
- pkgver = 13.0.7
+ pkgver = 15.0.0
pkgrel = 1
diff --git a/.SRCINFO b/.SRCINFO
index 8465e28..60f3c67 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = session-desktop-bin
pkgdesc = Private messaging from your desktop
- pkgver = 1.0.1
+ pkgver = 1.0.2
pkgrel = 1
@mrlpm
mrlpm / PKGBUILD
Created May 3, 2020 19:50
AUR goneovim
# Maintainer: Yasuo Ozu <yasuo@ozu.email>
pkgname=goneovim
pkgver=0.4.6
pkgrel=1
arch=(x86_64)
pkgdesc='Neovim GUI written in Golang, using a Golang qt backend'
url='https://github.com/akiyosi/goneovim'
license=(MIT)
depends=(neovim glibc gcc-libs libx11 nss nspr fontconfig freetype2 expat zlib libglvnd libxcb)
using System;
using System.Collections.Generic;
namespace cunada
{
class Program
{
static void Main(string[] args)
{
@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 / UpgradeCentOS6.3toOL7.8.md
Last active August 15, 2025 19:39
Procedure to upgrade CentOS 6.3 to OL7.8
  • Crear o Editar Vault repo centos 6 latest /etc/yum.repos.d/Vault-CentOS.repo
#-----------------

[C6.10-base]
name=CentOS-6.10 - Base
baseurl=http://vault.centos.org/6.10/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1