Skip to content

Instantly share code, notes, and snippets.

View paulchabotca's full-sized avatar
🤓
Javascript, PHP, Python, Bash, Regex

Paul Chabot paulchabotca

🤓
Javascript, PHP, Python, Bash, Regex
View GitHub Profile
@paulchabotca
paulchabotca / jdk_download.sh
Created April 9, 2017 00:22 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
@paulchabotca
paulchabotca / droptables.sh
Created October 25, 2018 15:46
Remove all the tables from a mysql database without dropping the database
# Drop Tables Script
# Removes all tables from a mysql database without dropping the database
# Paul Chabot - www.paulchabot.ca
# Original script from https://www.cyberciti.biz/faq/how-do-i-empty-mysql-database/
#!/bin/bash
MUSER="$1"
MDB="$2"
# Detect paths
// ==UserScript==
// @name Wikipedia mobile4desktop
// @namespace https://www.paulchabot.ca
// @version 0.1
// @description gives you the mobile version of wikipedia on desktop
// @author Paul Chabot
// @match https://*.wikipedia.org/wiki/*
// @run-at document-start
// @grant none
// ==/UserScript==
@paulchabotca
paulchabotca / ps3_game_updates.py
Last active January 12, 2022 23:21
Very hacky script I made formyself before I realized I was probably re-making the wheel.. but its finished. Needs requests and pick. Windows/Linux/Darwin compatible.. should be.
from typing import Match
import requests, os, argparse, sys, platform
import xml.etree.ElementTree as ET
from urllib.parse import urlparse
from pick import pick
from os import path
'''