Skip to content

Instantly share code, notes, and snippets.

View dhazel's full-sized avatar

David Hazel dhazel

View GitHub Profile
@dhazel
dhazel / .bashrc
Created March 26, 2020 23:01
Open file in neovim from terminal in same editor. Simple. Windows compatible.
alias e="remote.neovim.py"
@dhazel
dhazel / mysql-mirror.sh
Last active December 13, 2015 18:39 — forked from peta/mysql-mirror.sh
added support for setting the remote ssh port
#!/bin/bash
# Copyright (c) 2005 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# Source: http://www.cyberciti.biz/tips/move-mysql-users-privileges-grants-from-one-host-to-new-host.html
# Author Vivek Gite <vivek@nixcraft.com>,
# Peter Geil <code@petergeil.name>
# ------------------------------------------------------------
# SETME First - local mysql user/pass
_lusr="src-db-user"
_lpass="src-db-pw"