Skip to content

Instantly share code, notes, and snippets.

View jeop10's full-sized avatar
🖥️
Something something...

Jesus Ortega jeop10

🖥️
Something something...
View GitHub Profile
@jeop10
jeop10 / dns-instead-of-host.md
Created May 31, 2020 19:11
Use dnsmasq instead of /etc/hosts [macports edition]

Original work of Steven Rombauts

Steve did great job creating this guide but he uses brew, so I just decided to created the same guide but for macports.

Install dnsmasq with macports

sudo port install dnsmasq
@jeop10
jeop10 / highlight-subreddit-name.css
Last active July 18, 2018 09:13
Highlight subreddit name on home and multireddits (RES)
body:not([class*="res-r-"]) .tagline .subreddit {
font-weight: bold;
background: #cee3f8;
border-radius: 2px;
color: #369;
/* display: inline-block; */
font-size: 11px;
/* font-weight: 500; */
line-height: 15px;
margin-right: .5em;
@jeop10
jeop10 / PurpleTextField.swift
Created September 25, 2017 08:59
Add a Smack Purple color to the place holder text
//
// PurpleTextField.swift
// Smack
//
// NOTE:
// smackPurplePlaceHolder is a constant that you must have or change.
import Foundation
class PurpleTextField : UITextField {
@jeop10
jeop10 / readme.md
Last active February 1, 2024 05:44
Backup MySQL to Amazon S3 using AWS CLI

Backup MySQL to Amazon S3 using AWS CLI

Based on this awesome gist

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-) ** Using the AWS CLI (aws command) **

1 - Install aws-cli more info on the official repo

Install aws-cli

@jeop10
jeop10 / mail.py
Last active December 22, 2015 22:29
Alertas via correo electronico al final descarga de un archivo torrent. Funciona con uTorrent. Ideal para los que utilizan torrents y rss
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# mail.py
# Basado en el codigo original de KaveenRodrigo <kaveenrodrigo@kaveenrodrigo-Aspire-5742>
# Con modificaciones de Jeop10 < @jeop10 >
#
# Para que funcione correctamente debemos abrir uTorrent, copiar y pegar en
# Opciones->Preferencias->Anzadas->Ejecutar->Cuando finalize un torrent lo siguiente
#