Skip to content

Instantly share code, notes, and snippets.

View ditatompel's full-sized avatar
💭
I may be slow to respond.

Christian Ditaputratama ditatompel

💭
I may be slow to respond.
View GitHub Profile
@ditatompel
ditatompel / ghost-minio-backup.sh
Created January 17, 2023 21:56
Simple bash script to automatic backup multiple Ghost blog on the same server to remote AWS S3 compatible server.
#!/bin/bash
# Backup ghost website(s) to Minio
# https://rtd.ditatompel.com/ghost-multi-blog-backup-bash-script-to-minio-s3-compatible/
# Inspired from https://jerrynsh.com/backing-up-ghost-blog-in-5-steps/
#
# This script also need Minio CLI configured, see:
# https://min.io/docs/minio/linux/reference/minio-mc.html
# Or edit and adapt with your favorite s3 client on
# S3_SECTION below.
@ditatompel
ditatompel / check-runtime-cs50-lab3.sh
Created August 16, 2022 01:56
Simple bash script to check execution time of given binary from CS50 Harvard University Lab #3
#!/bin/bash
# Simple bash script to check execution time of given
# binary from CS50 Harvard University Lab #3
#
# Make sure you download correct .zip file, extract and
# place this script to ./sort directory.
# Please see https://cs50.harvard.edu/x/2022/labs/3/ for
# more details.
#
# NOTE:
@ditatompel
ditatompel / might_be_useful_someday.md
Created April 20, 2021 04:23
These words will be useful someday =)

factual antics kettle

@ditatompel
ditatompel / mysql_backup_all_db.sh
Created August 31, 2017 18:34
MySQL Backup All DB Example
#!/bin/sh
# A simple bash script for backup all MySQL database.
# Christian Dita Putratama <svcadm[at]ditatompel[dot]com>
HOST="localhost"
USER="<YOUR_MYSQL_USER>"
PASSWORD="<YOUR_MYSQL_PASS>"
BACKUPBASEDIR='/path/to/backup/dir/'
THEDATE=`date +%d-%m-%Y-%H-%M`
@ditatompel
ditatompel / .gitignore
Last active March 31, 2017 16:03 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #