This file contains hidden or 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/bash | |
# Rename a JFrog Artifactory repository | |
# See https://jfrog.com/knowledge-base/is-there-a-way-to-rename-a-repository/ for details | |
usageAndExit() { | |
echo "Usage: " | |
echo " $ export ARTIFACTORY_USER=..." | |
echo " $ export ARTIFACTORY_PASS=..." | |
echo " $ $0 -u <ARTIFACTORY_URL> [-d] <OLD_REPO> <NEW_REPO>" |
This file contains hidden or 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
usage() { | |
echo "Usage: $0 <DB_NAME> <DB_USER> <DB_PASSWORD>" | |
exit | |
} | |
DB_NAME=$1 | |
DB_USER=$2 | |
DB_PASSWORD=$3 | |
[ -z "${DB_NAME}" -o -z "${DB_USER}" -o -z "${DB_PASSWORD}" ] && usage |
This file contains hidden or 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 | |
# variables | |
git_location=$1 | |
proj_name=`basename $PWD` | |
# error check | |
[ "${git_location}" = "" ] && echo "usage: $0 <git_dir>" && exit | |
# git commands |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
import sys | |
from subprocess import Popen,PIPE | |
dav_svn_passwd = '/etc/apache2/dav_svn.passwd' | |
if len(sys.argv) < 2: | |
print "Usage:", sys.argv[0], "<passwd.txt>" |
OlderNewer