Skip to content

Instantly share code, notes, and snippets.

View jricardo27's full-sized avatar

Ricardo Perez jricardo27

  • Melbourne, Australia
View GitHub Profile
// ==UserScript==
// @name Flight Centre Extra Filter
// @author Ricardo Perez
// @namespace jricardo27/FlightCentreExtraFilter
// @version 0.1
// @description Hide unwanted flights from search
// @include *://*.flightcentre.com.au/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
// ==/UserScript==
@jricardo27
jricardo27 / aliexpress_total_price.js
Last active October 3, 2022 16:55
Calculate total price by adding shipping price and tax in Australia
// ==UserScript==
// @name Aliexpress Full Price
// @author Ricardo Perez
// @namespace jricardo27/AliexpressFullPrice
// @version 1.2
// @license GPL-3.0
// @description Show full price (including shipping and Australian Taxes) on item list.
// @include *://*.aliexpress.*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
@jricardo27
jricardo27 / gist:3894e09be31069d10ae5
Created July 29, 2015 15:22
Convert Wikitravel page to epub
import glob
import os.path
from bs4 import BeautifulSoup
find_this = [
'meta',
'script',
'link',
'iframe',
{'class_': 'ads'},
@jricardo27
jricardo27 / hostels_cleaner.user.js
Last active August 29, 2015 14:20
Hostels.com cleaner
// ==UserScript==
// @name Hostels Cleaner
// @namespace jricardo27
// @include http://www.hostels.com/*
// @version 0.0.1
// @grant none
// ==/UserScript==
div = document.getElementById('fabLoader');
div.remove();
@jricardo27
jricardo27 / lonelyplanet_ec.user.js
Last active August 29, 2015 14:18
Display plain text with the basic information ready to copy to Google Maps
// ==UserScript==
// @name Lonely Planet Easy Copy LP-EC
// @namespace jricardo27
// @include http://www.lonelyplanet.com/*
// @version 0.0.3
// @require https://code.jquery.com/ui/1.10.4/jquery-ui.min.js
// @grant GM_info
// ==/UserScript==
function GM_main ($) {
@jricardo27
jricardo27 / mysql_run.sh
Last active August 29, 2015 14:13
MySQL docker (mac)
# https://registry.hub.docker.com/_/mysql/
docker pull mysql
docker run --name my_mysql -p 0.0.0.0:3306:3306 -e MYSQL_ROOT_PASSWORD=qwerty123root -d mysql
echo "Connect to the database"
# This requires boot2docker on mac
echo "mysql -h$(boot2docker ip) -P3306 -uroot"
@jricardo27
jricardo27 / postgres_run.sh
Last active August 29, 2015 14:13
Postgres docker (mac)
# https://registry.hub.docker.com/_/postgres/
docker pull postgres
docker run --name my_postgres -p 0.0.0.0:5432:5432 -e POSTGRES_PASSWORD=qwerty123 -d postgres
echo "Connect to the database"
# This requires boot2docker on mac
echo "psql -h $(boot2docker ip) -p 5432 -U postgres"
@jricardo27
jricardo27 / commbank.user.js
Created January 12, 2015 13:00
CommonWealthBank mywealth Clutter Remover
// ==UserScript==
// @name CommonWealthBank mywealth Clutter Remover
// @namespace jricardo27
// @include https://www.mywealth.commbank.com.au/*
// @version 1.0.17
// @require https://code.jquery.com/ui/1.10.4/jquery-ui.min.js
// @grant GM_info
// ==/UserScript==
function GM_main ($) {