Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
################################
# OS X Install ISO Creater #
# #
# Author: shela #
################################
#######################################
# Declarations
@santalex
santalex / myclic.py
Created September 19, 2017 06:39 — forked from meeuw/myclic.py
mycli ssh tunnel script
#!/usr/bin/python
import os
import sys
sshtunnel = None
with open('mysql/'+sys.argv[1]) as f:
s = f.read()
if len(s) > 0 and s[0] == '#':
sshtunnel = s[1:].split('\n')[0]
if sshtunnel and os.system('ssh -O check %s-controlmaster' % sshtunnel) != 0:
os.system('ssh -f %s-controlmaster sleep 60' % sshtunnel)
@santalex
santalex / mycli-ssh
Created September 19, 2017 03:32 — forked from gawel/mycli-ssh
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Use mycli (http://mycli.net/) through ssh
Usage:
$ mycli-ssh yourhost [extra args passed to mycli]
"""