|
|
@ -0,0 +1,59 @@
|
|
|
1
|
# lu's little tools (and unfancy symlinks)
|
|
|
2
|
|
|
|
3
|
If you have this directory in your `PATH` then you'll have all of the
|
|
|
4
|
following at your disposal.
|
|
|
5
|
|
|
|
6
|
## rt
|
|
|
7
|
|
|
|
8
|
`rt` (*r*epository *t*ool) is a nice little utility script for [VCS][]s
|
|
|
9
|
such as `git` or `hg`. It detects the type of repository it operates on
|
|
|
10
|
and chooses the appropriate command. I mostly use it for cloning
|
|
|
11
|
repositories, but it should be able to do other VCS tasks aswell.
|
|
|
12
|
|
|
|
13
|
lu ~$ rt
|
|
|
14
|
Usage: /home/lu/.bin/rt <cmd> <repo> [<args>]
|
|
|
15
|
executes <cmd> for <repo> (passing <args> through)
|
|
|
16
|
|
|
|
17
|
lu ~$ rt c hub:anapple/confidence
|
|
|
18
|
# Clones a repository from GitHub (see <../.gitconfig> for the `hub` alias)
|
|
|
19
|
|
|
|
20
|
## events
|
|
|
21
|
|
|
|
22
|
`events` is a logs window manager events to various services (currently
|
|
|
23
|
`~/.eventstream` and [statsd][]). Someday I might live out my
|
|
|
24
|
statistical fetish and get carried away by years of weird logs to
|
|
|
25
|
analyze.
|
|
|
26
|
|
|
|
27
|
## git-ln
|
|
|
28
|
|
|
|
29
|
`git-ln` (use as `git ln`) is a git command that displays a numbered
|
|
|
30
|
(descending) log of commits in a git repository. Use it as you'd use
|
|
|
31
|
`git log` itself.
|
|
|
32
|
|
|
|
33
|
## update-planet.sh
|
|
|
34
|
|
|
|
35
|
`update-planet.sh` does what it's name says: It delivers a new planet
|
|
|
36
|
(usually called "earth") with updated parameters using a template file
|
|
|
37
|
called `~/t/venus/config.ini`.
|
|
|
38
|
|
|
|
39
|
In a boring parallel universe it updates my planet of RSS/ATOM feeds and
|
|
|
40
|
creates `~/t/venus/www/planet/index.html` in which the titles of the
|
|
|
41
|
various posts are displayed, waiting for me to click them and enjoy
|
|
|
42
|
what's behind them.
|
|
|
43
|
|
|
|
44
|
It gets invoked every two hours by the venerable `cron`.
|
|
|
45
|
|
|
|
46
|
## warn-if-low.sh
|
|
|
47
|
|
|
|
48
|
`warn-if-low.sh` constantly nudges me when my battery runs low. It
|
|
|
49
|
spawns up windows everytime it is called and thinks that my battery is a
|
|
|
50
|
little bit neglected. I then get annoyed by it and plug the AC adapter
|
|
|
51
|
in. *Mission accomplished!* (No, any other solution that doesn't create
|
|
|
52
|
a big annoying window right in front of my eyes doesn't work.)
|
|
|
53
|
|
|
|
54
|
It's called periodically (every minute) by `cron`.
|
|
|
55
|
|
|
|
56
|
## xkbswap
|
|
|
57
|
|
|
|
58
|
`xkbswap` swaps the current keyboard layout (from `de` to `us` and the
|
|
|
59
|
other way around).
|