This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Wrapper for Docker container for run any application | |
# and register them as a service | |
# | |
# Required consul >= 0.8.3 | |
# | |
# Copyright Alexander Baryshnikov <dev@baryshnikov.net> | |
# | |
# MIT License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Restore cursor position, window position, and last search after running a | |
" command. | |
function! Preserve(command) | |
" Save the last search. | |
let search = @/ | |
" Save the current cursor position. | |
let cursor_position = getpos('.') | |
" Save the current window position. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
__author__ = 'reddec' | |
import argparse | |
import os | |
import subprocess | |
import shutil | |
import tempfile | |
import platform | |
from distutils.dir_util import copy_tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import subprocess | |
import argparse | |
import os | |
import shutil | |
from urlparse import urlparse | |
parser = argparse.ArgumentParser(description="Clone GIT repo as GO lang package") | |
parser.add_argument('repo', type=str, nargs=1, help='Repository URL') | |
parser.add_argument('--gopath', action='store', default=os.getenv('GOPATH'), |
NewerOlder