Skip to content

Instantly share code, notes, and snippets.

View jcalado's full-sized avatar

Joel Calado jcalado

View GitHub Profile
mrwweb /
Last active May 18, 2023 18:57
The Events Calendar v2 Template Reset & Customizations - Now on Github
sutlxwhx /
Last active February 1, 2024 21:08
Backup all your MySQL / MariaDB databases with rclone
#!/usr/bin/env bash
# To run this script you need to install first
# Use current date and time for future backup folder name
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
# Declare the directory where the temporary backup files will be stored
# State the username for your MySQL / MariaDB instace that can access the neccessary databases
# Point this script to mysql executable file
betweenbrain / gist:69e03984b94fb899900a
Last active January 16, 2020 20:58
Fix database encoding issue (export Latin-1, import UTF-8)
gokulkrishh / media-query.css
Last active July 16, 2024 10:52
CSS Media Queries for Desktop, Tablet, Mobile.
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
/* CSS */
FGRibreau /
Created November 2, 2013 22:56
Mock NodeJS net.Socket with ReadWriteStream
var dummySocket = new ReadWriteNetStream();

// Debug
dummySocket.on('data', function(data){
console.log('write received', data);

dummySocket.write('hey !');
lyoshenka /
Last active October 11, 2023 04:28 — forked from kevinoconnor7/
Quick and dirty DDNS using Bash and Cloudflare (API v4 compatible)
#!/usr/bin/env bash
# Step 1: Fill in EMAIL, TOKEN, DOMAIN and SUBDOMAIN. Your API token is here:
# Make sure the token is the Global token, or has these permissions: #zone:read, #dns_record:read, #dns_records:edit
# If you want to set the root domain instead of a subdomain, set SUBDOMAIN to "@"
# Step 2: Create an A record on Cloudflare with the subdomain you chose
# Step 3: Run "./ -l" to get the zone_id and rec_id of the record you created.
# Fill in ZONE_ID and REC_ID below
# This step is optional, but will save you 2 requests every time you run this script
# Step 4: Run "./". It should tell you that record was updated or that it didn't need updating.