Skip to content

Instantly share code, notes, and snippets.

View EduardoRT's full-sized avatar
🐓
It's a Unix System, I know This!

Eduardo Reyes EduardoRT

🐓
It's a Unix System, I know This!
View GitHub Profile
#!/bin/env python3
import requests
import shutil
import tkinter as tk
import webbrowser
URL_CATASTRO_MID='https://isla.merida.gob.mx/ServiciosInternet/CCatastral/PHP/PHPCCatastralWEB002.phpx?txtFolio={folio}&sIdEstatus=yes'
URL_GEOPORTAL_CEDULA='https://geoportal.merida.gob.mx/api/sigg/predios/{folio}/cedulas/jpeg'
URL_GEOPORTAL_PLANO='https://geoportal.merida.gob.mx/api/imagenes/planos/{folio}'
@EduardoRT
EduardoRT / main.go
Created March 21, 2018 14:20
Insult generator in Golang
package main
import (
"fmt"
"github.com/go-vgo/robotgo"
"math/rand"
"time"
)
var replace []string
version: '2'
services:
gogs:
container_name: gogs
restart: always
image: gogs/gogs
labels:
- traefik.backend=gogs
- traefik.port=3000
04c5c02e796d6be1a06a0ff8a28382075521f88d25d17befa50a8f51bbdd0247ae9773cf32a4b469a0d1cd1f2a638f1e5b1b7232a91145b6abc945311b043bc7ca
@EduardoRT
EduardoRT / confirm.txt
Created December 20, 2017 19:32
Blockstack confirmation
Verifying my Blockstack ID is secured with the address 15xM7HWGCc2stFk6r8j4USUFno8tCiM5DA https://explorer.blockstack.org/address/15xM7HWGCc2stFk6r8j4USUFno8tCiM5DA
### Keybase proof
I hereby claim:
* I am eduardort on github.
* I am tred27 (https://keybase.io/tred27) on keybase.
* I have a public key ASAjolKr8RCkOp68FSWqy0iT-ut2VxAhuwQQy7GqCcRtzAo
To claim this, I am signing this object:
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if (&t_Co > 2 || has("gui_running")) && !exists("syntax_on")
syntax on
endif
if filereadable(expand("~/.vimrc.bundles"))
source ~/.vimrc.bundles
endif
@EduardoRT
EduardoRT / get_gravatar_url.php
Created June 22, 2015 00:26
get_gravatar_url
/**
* First it validates the gravatar url and if it exists it will return that
* If not it will return a placeholder.
*
* @param String $email The author email
* @return String The gravatar or placeholder url.
*/
function get_gravatar_url( $email ) {
// Craft a potential url and test its headers
$hash = md5( $email );