aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Don't use cache for phpcsff(1df)Tom Ryder2019-11-291-1/+1
|
* Prevent diagnostics from php-cs-fixerTom Ryder2019-11-291-1/+1
|
* Add phpcsff(1df)Tom Ryder2019-11-291-0/+15
|
* Use rmdir(1) rather than `rm -r` in gms lock clearTom Ryder2019-11-101-2/+2
|
* Correct printf pattern in finc(1df)Tom Ryder2019-09-081-1/+1
| | | | Results were wildly wrong!
* Make intent of `umake` terminal condition clearerTom Ryder2019-08-031-1/+2
|
* Add defang(1df)Tom Ryder2019-08-021-0/+4
| | | | | | | | | ><tejr> I learned the word "defang" today as applied to URLs ><tejr> I knew about the practice but not what it was called ><tejr> Now I am writing a little script to do it for me ><russm> tejr: pip install defang ? ><tejr> Why you gotta be like that, russm ><tejr> Let me have my three-line sed script
* Extend td(1df) to edit multiple filesTom Ryder2019-07-111-9/+9
|
* Add vic(1df)Tom Ryder2019-06-181-0/+6
|
* Use RFC2822 date format in dfv(1df)Tom Ryder2019-06-161-1/+1
|
* Trim some trailing whitespaceTom Ryder2018-12-311-1/+1
|
* Clarify control flow in shell scriptsTom Ryder2018-12-3110-23/+47
|
* Remove some vestigial Bash 2.05 guards/commentsTom Ryder2018-12-271-7/+3
|
* Break up some long linesTom Ryder2018-12-273-8/+8
|
* Two-space sentences in shell commentsTom Ryder2018-12-2711-14/+14
|
* Break up some long linesTom Ryder2018-12-264-8/+14
|
* Remove unneeded semicolon from sh "for VAR ; do"Tom Ryder2018-12-0619-20/+20
| | | | | It turns out the semicolon belongs to the "in" syntax, and is optional without it.
* Remove executable bit from mim.mi5Tom Ryder2018-11-301-0/+0
|
* Merge branch 'hotfix/v1.77.1' into developTom Ryder2018-11-241-2/+2
|\ | | | | | | | | | | * hotfix/v1.77.1: Bump VERSION Allow equal bounds in rndi(1df)
| * Allow equal bounds in rndi(1df)Tom Ryder2018-11-241-2/+2
| | | | | | | | | | | | | | | | | | Calling rndi(1df) like `rndi 1 1` should work; it should just always yield one. Instead, it was complaining about the second bound not being greater than the first. I noticed this because I only had one background image in ~/.xbackgrounds and ran xrbg(1df), and it didn't know how to handle it.
* | Remove a lot of alignment spacingTom Ryder2018-11-233-4/+4
|/
* Add collation locale def for plmu(1df) sort checkTom Ryder2018-08-231-1/+1
|
* Add explicit LC_COLLATE settings to plmu(1df)Tom Ryder2018-08-061-2/+2
| | | | | This prevents it getting upset if the sorting for the ignore list used a different collation.
* Add mked(1df) and mkvi(1df)Tom Ryder2018-07-032-0/+12
|
* Simplify exm(1df)Tom Ryder2018-06-211-2/+1
| | | | | I thought shell script stripped \r from the end of variables, but that does not actually seem to be the case. I think it's just newlines.
* Define `self` var for mim(1df)Tom Ryder2018-06-101-0/+1
| | | | Required for the mktd(1df) boilerplate.
* Replace mail_mutt.vim with mim(1df)Tom Ryder2018-06-071-0/+12
| | | | Way better, and more generally useful.
* Suppress error messages in td(1df)Tom Ryder2018-02-051-2/+2
| | | | | Don't report to the user when a repository is created, and ignore errors from git-diff-index(1) for when there is no HEAD
* Remove unused `self` var from clog(1df)Tom Ryder2018-01-151-1/+0
| | | | | | | | ShellCheck: In bin/clog.sh line 2: self=clog ^-- SC2034: self appears unused. Verify it or export it.
* Change double-quote printf pattern to single-quoteTom Ryder2018-01-151-1/+1
| | | | | | | | ShellCheck 0.4.7 pointed to this indirectly: In bin/sshi line 24: printf "%s:%u -> %s:%u (%s)\n" \ ^-- SC1117: Backslash is literal in "\n". Prefer explicit escaping: "\\n".
* Move ShellCheck line to correct place in sra(1df)Tom Ryder2018-01-151-1/+2
| | | | | | | | | | ShellCheck 0.4.7 was upset about this: In bin/sra line 7: ssh -qt -- "$hostname" "$@" <&3 # shellcheck disable=SC2029 ^-- SC1073: Couldn't parse this simple command. ^-- SC1126: Place shellcheck directives before commands, not after. ^-- SC1072: Fix any mentioned problems and try again.
* Refactor clog(1df), allow args and non-term stdinTom Ryder2018-01-151-11/+12
| | | | | This makes a bit clearer how awkward the rlwrap(1) code is, too. It may not be worth keeping it.
* Reimplement bl(1df) in AwkTom Ryder2018-01-132-10/+5
| | | | This is shorter and tidier.
* Make newline explicit for ax(1df)Tom Ryder2018-01-111-2/+2
| | | | | This makes it a little more flexible, if you genuinely don't want a newline in the output.
* Make first ax(1df) arg safer, warn on second argTom Ryder2018-01-111-9/+4
| | | | | | | | | | | | | The format in the first argument does not need to be evaluated, so it can be passed in a simple awk variable. The second argument is evaluated, by design, so code injection is trivial. It's probably a good idea to warn users about this explicitly. $ ax '0);system("cat /etc/passwd")' Make the whole thing a little terser, too, with the awk program construction, variable assignment, and invocation all on one line.
* Strip trailing whitespaceTom Ryder2017-11-135-6/+6
|
* Fix oii(1df) so it works as a pipeTom Ryder2017-11-101-6/+7
| | | | | | | | | I realised I could make this work by recording a single byte in the temporary file with dd(1) and then emitting that and then the rest of the input with cat(1) if the file ended up with a byte in it. This lets me remove the CAVEATS section from the manual, as it no longer applies.
* Merge branch 'feature/d2u-u2d-con...' into developTom Ryder2017-11-032-3/+2
|\ | | | | | | | | * feature/d2u-u2d-consist: Make d2u(1df)/u2d(1df) like their stream analogues
| * Make d2u(1df)/u2d(1df) like their stream analoguesTom Ryder2017-11-032-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the idempotency guarantee, and simplify the ed(1) scripts. See commits 2905980 and cd8e9cc: >commit 29059804f7708413843687c1764bc845d374a82d >Author: Tom Ryder <tom@sanctum.geek.nz> >Date: Fri Nov 3 13:58:23 2017 > > Remove idempotency assert for sd2u(1df)/su2d(1df) > > Commit cd8e9cc applies a cleaner implementation of these tools but > loses the idempotency: > > * Repeated su2d applications will result in double \r, so \r\r\n > * Repeated s2ru applications will result in an extra newline at the > end of the file, because the whole file will be interpreted as > one line > > However, I am OK with this, as I think of the operation as simpler > and more predictable, and I wouldn't apply it as a means to "force" > a file of unknown or various line-ending types to one type. > >commit cd8e9cc27f7dd9d360b64f4a34b8c2d048f42e45 >Author: Tom Ryder <tom@sanctum.geek.nz> >Date: Fri Nov 3 13:46:30 2017 > > Apply simpler method for sd2u(1df) and su2d(1df) > > This method is shorter, easier to read, and more idiomatic.
* | Apply simpler method for sd2u(1df) and su2d(1df)Tom Ryder2017-11-032-6/+6
|/ | | | This method is shorter, easier to read, and more idiomatic.
* Quote filename correctly in dfv(1df)Tom Ryder2017-11-011-1/+1
| | | | | If we don't do this, we run the risk of expanding an arbitrary macro VERSION on any given system.
* Add dfv(1df) version-printing toolTom Ryder2017-11-011-0/+8
| | | | | | | | | | This is mostly just for fun, but could be handy later on when I'm playing with distributed or automated deployments of tagged and verified releases. Like a few of the other shell scripts, this is built by abusing my mi5(1df) wrapper to get static details baked into the shell script that are only known at runtime.
* Remove -no_ssl2 from osc(1df)Tom Ryder2017-10-311-1/+1
| | | | | | | | | | | | Modern OpenSSL builds, at least on Debian Stretch, don't even include this as an option anymore, because SSLv2 has been so broken for so long. There's not really much point trying to keep it. $ openssl version OpenSSL 1.1.0f 25 May 2017 $ openssl -no_ssl2 Invalid command '-no_ssl2'; type "help" for a list.
* Refactor min.awk to match max.awkTom Ryder2017-10-301-4/+2
| | | | This is more idiomatic, and explicitly initialises the result variable.
* Correct misnamed variableTom Ryder2017-10-261-1/+1
|
* Make rndi(1df) upper bound a little clearerTom Ryder2017-10-261-1/+2
|
* Document why fnl(1df) command is wrappedTom Ryder2017-10-131-1/+3
| | | | Because I forgot
* Add arg checks to chc(1df)Tom Ryder2017-08-211-0/+7
|
* Add missing slash to commentTom Ryder2017-08-211-1/+1
|
* Correct typo commentTom Ryder2017-08-081-1/+1
|