Dobrica Pavlinušić's random unstructured stuff
SocialText Administration: Revision 2

List all workspace acls

root@saturn:~# st-admin list-workspaces | xargs -i st-admin show-acls --workspace {}

Give admin permission

st-admin add-workspace-admin --email dpavlin@rot13.org --workspace vjezbe_kpu_1
st-admin add-workspace-admin --email dpavlin@rot13.org --workspace vjezbe_kpu_2
st-admin add-workspace-admin --email dpavlin@rot13.org --workspace vjezbe_kpu_3

Remove spam

root@saturn:~# ls /var/www/socialtext/data/vjezbe_kpu_1/ > files

root@saturn:~# ls /var/www/socialtext/plugin/vjezbe_kpu_1/counter/ | grep -v -f files \
| xargs -i rm -Rf /var/www/socialtext/plugin/vjezbe_kpu_1/counter/{}