I like to work with GIT, but company SCM is SVN. To make my GIT project work with SVN:
- initialize GIT repo
$ cd /path/to/my/repo
$ git init
- initialize SVN directory and
| // via UX-SE | |
| // http://ux.stackexchange.com/a/54443 | |
| var hasfocus = 'false'; | |
| // when focus happens, set a variable | |
| $(document).on('focusin','input, textarea',function() { | |
| hasfocus = 'true'; | |
| }); |
| img { | |
| -webkit-filter: blur(10px); | |
| -moz-filter: blur(10px); | |
| } |
| # got it via http://aussie.lunix.com.au/blog/2013/02/08/coloured-git-status-in-your-bash-prompt/ | |
| # put into .bashrc or .bash_profile | |
| function _git_prompt() { | |
| local git_status="`git status -unormal 2>&1`" | |
| if ! [[ "$git_status" =~ Not\ a\ git\ repo ]]; then | |
| if [[ "$git_status" =~ nothing\ to\ commit ]]; then | |
| local ansi=32 | |
| elif [[ "$git_status" =~ nothing\ added\ to\ commit\ but\ untracked\ files\ present ]]; then | |
| local ansi=34 |
| import uuid | |
| import hashlib | |
| def hash_password(password, version=1, salt=None): | |
| if version == 1: | |
| if salt == None: | |
| salt = uuid.uuid4().hex[:16] | |
| hashed = salt + hashlib.sha1( salt + password).hexdigest() | |
| # generated hash is 56 chars long | |
| return hashed |
| [unix_http_server] | |
| file=/tmp/supervisor.sock ; path to your socket file | |
| [supervisord] | |
| logfile=/var/log/supervisord/supervisord.log ; supervisord log file | |
| logfile_maxbytes=50MB ; maximum size of logfile before rotation | |
| logfile_backups=10 ; number of backed up logfiles | |
| loglevel=error ; info, debug, warn, trace | |
| pidfile=/var/run/supervisord.pid ; pidfile location | |
| nodaemon=false ; run supervisord as a daemon |
| $ touch -t [[CC]YY]MMDDhhmm[.ss] ~/date | |
| $ find /here/be/path/to/search ! -newer ~/date |