Skip to content

Instantly share code, notes, and snippets.


Jaime Martínez Rincón jamezrin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jamezrin on github.
  • I am jaime29010 ( on keybase.
  • I have a public key ASDgBzPFV4p23SY7T8s23Z39YLMzV1NUxBoQsPAV7EBIcgo

To claim this, I am signing this object:

START_TIMESTAMP="$(date +%s)"
View Spotify.txt
# Spotify AdBlock - Host file
# Blocks all annoying Spotify ads & analytics
# Updated 2018-11-21
# Credits: CHEF-KOCH (original maintainer) and LocalFigurez
# might break Spotify. Commented out by default
# might break Chromecast. Commented out by default
# might break Discord. Commented out by default
jamezrin /
Last active Apr 13, 2019
Script to map files with nested maps to a flat structure with paths separated by dots
import argparse
import sys
from ruamel.yaml import YAML, YAMLError
yaml = YAML()
yaml.allow_unicode = True
yaml.allow_duplicate_keys = True
jamezrin / script.js
Created Mar 15, 2019
Posicionamiento alternativo de la imagen de la autoescuela
View script.js
// ==UserScript==
// @name eTestWeb / Estilo mejorado
// @namespace
// @version 0.1
// @description Posicionamiento alternativo de la imagen de la autoescuela
// @author
// @match *://*
// @grant all
// ==/UserScript==
jamezrin / script.js
Last active Mar 15, 2019
Control de preguntas en tests mediante las flechas de dirección
View script.js
// ==UserScript==
// @name eTestWeb / Controles por Teclado
// @namespace
// @version 0.2
// @description Control de preguntas en tests mediante las flechas de dirección
// @author
// @match *://*
// @grant all
// ==/UserScript==
jamezrin /
Last active Mar 15, 2019
Python script to create an orphan branch
import requests
def create_orphan_branch(repository, authentication, branch_name,
res1 = requests.get(
github_api_path + '/repos/{0}/{1}/git/refs/heads/{2}'.format(
View gist:d836c93cd5ba1651ddf112a2c1e82b8b
(env) pi@raspberrypi:~/algo-master $ ./algo
PLAY [Ask user for the input] *****************************************************************************************************************************************************************
TASK [Gathering Facts] ************************************************************************************************************************************************************************
ok: [localhost]
What provider would you like to use?
1. DigitalOcean
2. Amazon Lightsail
jamezrin / .zshrc-base
Last active Dec 31, 2019
My zshrc base dotfile
View .zshrc-base
# Enable autocompletions
autoload -Uz compinit
typeset -i updated_at=$(date +'%j' -r ~/.zcompdump 2>/dev/null || stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)
if [ $(date +'%j') != $updated_at ]; then
compinit -i
compinit -C -i
jamezrin / !
Created Oct 21, 2018 — forked from Darkhogg/!
"Reboot to {OS}" scripts for rEFInd Next Boot selection
View !

Reboot to {OS}

This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.

General Information

The key for achieving this is to modify the EFI Variable PreviousBoot with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740, which rEFInd uses to store the last entry selected in the menu and, if using the + default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.

You can’t perform that action at this time.