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'), |
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
" 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
#!/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
#!/bin/sh | |
if [ "1$1" != "1" ]; then | |
cd "$1" | |
fi | |
BACKUP_IMAGES="backup/images" | |
BACKUP_VOLUMES="backup/volumes" | |
rm -rf "$BACKUP_IMAGES" |
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
0xaD9b872817b05315611B23F1C16306e0E692ab87 |
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
0x7d60184a28111092225d274c743993D8C9d9D7bb |
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
0xE650dABEC5005E0A7e847f64BFcd743Bd1Bb1a50 |
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
0xcb8606ae62a075cdd20c7da79b79bd387c0f7280 |
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
0x8d3f76cb4d343720913305c599524bbc96e17f6c |
OlderNewer