Skip to content

Instantly share code, notes, and snippets.

View habibimustafa's full-sized avatar

Habibi Mustafa habibimustafa

View GitHub Profile
@bakulrujak
bakulrujak / demo_helmfile.yaml
Last active January 7, 2022 04:06
Plain Helmfile declaration
## ---------------------------------------------------------------------------------
## Get helmfile binary: https://github.com/roboll/helmfile/releases/latest
## Run it:
## $ helmfile --namespace ${NAMESPACE} -f ./demo_helmfile.yaml --interactive apply
## ---------------------------------------------------------------------------------
repositories:
- name: nicholaswilde
url: https://nicholaswilde.github.io/helm-charts/
- name: bitnami
@joswr1ght
joswr1ght / accesslog2csv.py
Created December 16, 2019 11:45
Convert Apache/Nginx Unified Log Format to CSV
# accesslog2csv: Convert default, unified access log from Apache, Nginx
# servers to CSV format.
#
# Original source by Maja Kraljic, July 18, 2017
# Modified by Joshua Wright to parse all elements in the HTTP request as
# different columns, December 16, 2019
import csv
import re
@bradtraversy
bradtraversy / rethinkdb_cheat_sheet.MD
Last active December 1, 2024 11:36
RethinkDB Query Cheat Sheet

RethinkDB Cheat Sheet

Create database

r.dbCreate('mydb')

List databases

@bradtraversy
bradtraversy / mysql_cheat_sheet.md
Last active October 12, 2025 09:00
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@bradtraversy
bradtraversy / docker-help.md
Last active October 14, 2025 08:30
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@mihow
mihow / load_dotenv.sh
Last active October 13, 2025 18:35
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@hodak
hodak / Vagrantfile
Created October 6, 2016 12:07
Add SSH key as authorized key for Vagrant's root
Vagrant.configure(2) do |config|
...
id_rsa_pub = File.read("#{Dir.home}/.ssh/id_rsa.pub")
config.vm.provision "copy ssh public key", type: "shell",
inline: "echo \"#{id_rsa_pub}\" >> /home/vagrant/.ssh/authorized_keys"
end
@cod3beat
cod3beat / MemasangMailcatcher.md
Created March 28, 2015 11:12
Memasang Mailcatcher

Ternyata memasang Mailcatcher tidak semengerikan seperti yang sebelumnya saya duga.

Apa Gunanya?

  • Dapat dijadikan mail client untuk urusan local development
  • Dapat dijadikan mail client untuk Integration Test: kita dapat memeriksa apakah emailnya benar

Caranya

Pasang Deps