Misc scripts
From Wikitech
(Difference between revisions)
(useful thingy from kate) |
|||
| Line 6: | Line 6: | ||
* count the number of contributions from a user: | * count the number of contributions from a user: | ||
/home/wikipedia/bin/editcount en wikipedia Kate | /home/wikipedia/bin/editcount en wikipedia Kate | ||
| + | |||
| + | * make a function for each hostname, so that for e.g.: <tt>browne ps</tt> will connect to browne and perform <tt>ps</tt>: | ||
| + | ALLNG=/usr/local/dsh/node_groups/ALL | ||
| + | if [ -r $ALLNG ]; then for host in $(<$ALLNG); $host() { ssh $0 $* }; fi | ||
Revision as of 09:24, 24 September 2004
Various misc useful scripts:
- upload a local file to the wiki as an edit:
/home/wikipedia/bin/upload en wikipedia /etc/passwd Wikipedia:Sandbox
- count the number of contributions from a user:
/home/wikipedia/bin/editcount en wikipedia Kate
- make a function for each hostname, so that for e.g.: browne ps will connect to browne and perform ps:
ALLNG=/usr/local/dsh/node_groups/ALL
if [ -r $ALLNG ]; then for host in $(<$ALLNG); $host() { ssh $0 $* }; fi