assuming password protected svn repo with standard trunk, branches, tags setup
svn2git http://svn.example.com/path/to/repo --username [USERNAME] --verbose
MY_BASH_BLUE="\033[0;34m" #Blue | |
MY_BASH_NOCOLOR="\033[0m" | |
HISTTIMEFORMAT=`echo -e ${MY_BASH_BLUE}[%F %T] $MY_BASH_NOCOLOR ` | |
HISTSIZE=20000 | |
HISTFILESIZE=20000 |
#! /usr/bin/python | |
## get_instagram_tag | |
## by Chris Foresman | |
## @foresmac | |
## | |
## Instagram API: http://instagram.com/developer/ | |
## Requires the requests Python library | |
## (sudo) pip install requests |
# get into the master branch | |
git checkout master | |
# create a new branch for the changes and check it out | |
git checkout -b dev_branch | |
# stash the changes until we revert master | |
git stash | |
# go back to master |
DECLARE | |
open_count integer; | |
BEGIN | |
-- prevent any further connections | |
EXECUTE IMMEDIATE 'alter user @USERNAME account lock'; | |
--kill all sessions | |
FOR session IN (SELECT sid, serial# | |
FROM v$session | |
WHERE username = '@USERNAME') | |
LOOP |
echo off | |
set app="%AppData%\Dropbox\bin\Dropbox.exe" | |
taskkill -F -IM "Dropbox.exe" | |
start "Restart Dropbox" %app% -B; |
/* | |
PL/SQL sample for HTTP access (Oracle 11g R2) | |
1. Execute /u01/app/oracle/product/11.2.0/xe/rdbms/admin/utlhttp.sql to use UTL_HTTP package | |
Run the following command in shell in the DB server | |
$ cd /u01/app/oracle/product/11.2.0/xe/rdbms/admin/ | |
$ sqlplus SYS/passwd@localhost:1521/XE AS SYSDBA @utlhttp.sql | |
2. Grant the connect and resolve privileges for all hosts to the user 'SCOTT' | |
Run the following commands in SQL*Plus |
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |