I hereby claim:
- I am jirikuncar on github.
- I am jirikuncar (https://keybase.io/jirikuncar) on keybase.
- I have a public key ASAO85pR4iDSbCVYfJXmhMiPC9CeUBlqj8OzSOiT3uAcxQo
To claim this, I am signing this object:
| #!/bin/bash | |
| # A script to set up a new mac. Uses bash, homebrew, etc. | |
| # Focused for ruby/rails development. Includes many utilities and apps: | |
| # - homebrew, rvm, node | |
| # - quicklook plugins, terminal fonts | |
| # - browsers: chrome, firefox | |
| # - dev: iterm2, sublime text, postgres, chrome devtools, etc. | |
| # - team: slack, dropbox, google drive, skype, etc |
I hereby claim:
To claim this, I am signing this object:
| git clone https://github.com/inveniosoftware/invenio-$PACKAGE | |
| cd invenio-$PACKAGE/ | |
| git remote add invenio https://github.com/inveniosoftware/invenio | |
| git fetch invenio | |
| git checkout -b master invenio/master | |
| git log --follow invenio/modules/$PACKAGE/models.py | |
| git log --stat --follow invenio/modules/$PACKAGE/models.py | |
| git checkout -b rename fe01274ee7afa8025ae5bfea88eb231dd299637a | |
| git checkout -b pre-rename rename~ | |
| git filter-branch -f --subdirectory-filter modules/$LEGACY/ |
| COMMIT=$1 | |
| YEAR=`date +"%Y"` | |
| START=${YEAR:0:3} | |
| END=${YEAR:3:4} | |
| CMD="sed -i '' 's/\($START[^$END]\) CERN\.$/\1, $YEAR CERN./'" | |
| echo $CMD `git diff-tree --no-commit-id --name-only -r $COMMIT` | sh |
| git log --author="`git config --get user.name`" --pretty=tformat: --numstat --since=`date --date='1 year ago' +"%Y-%m-%d"` | awk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines: %s total lines: %s\n",add,subs,loc }’ - |
| import subprocess | |
| from invenio.base.factory import with_app_context | |
| def html2rst(html): | |
| p = subprocess.Popen(['pandoc', '--from=html', '--to=rst'], | |
| stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
| return p.communicate(html)[0] | |
| @with_app_context() | |
| def main(): |
| find invenio -iname \*.py -exec grep -H -E -o -c "^# -\*- coding: utf-8 -\*-$" {} \; | grep py:0 | cut -d: -f1 |