Skip to content

Instantly share code, notes, and snippets.

View adeyahya's full-sized avatar
😶
I can't fix broken printing machine!

Ade Yahya Prasetyo adeyahya

😶
I can't fix broken printing machine!
View GitHub Profile
@adeyahya
adeyahya / mysql-docker.sh
Created March 27, 2020 13:58 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@adeyahya
adeyahya / viscosity-to-ovpn.py
Created December 9, 2019 19:13 — forked from ishahid/viscosity-to-ovpn.py
Convert all of your Viscosity connections into OVPN configuration files for OpenVPN
#!/usr/bin/python
"""Convert all of your Viscosity connections into OVPN configuration files for OpenVPN
https://gist.github.com/ishahid/693c2c97b3236a3c2416fc09ab170244
"""
import re
import glob
from os.path import expanduser, dirname
@adeyahya
adeyahya / README.md
Created January 19, 2017 03:47 — forked from jonathantneal/README.md
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@adeyahya
adeyahya / tmux-cheatsheet.markdown
Created November 14, 2016 05:14 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname