[dev] [sbase] [patch v3] Add sum.[ch] and update md5sum and sha1sum

2013-07-12 Thread sin
Hi, Renamed from crypt to sum. Thanks, stateless From be2fbf8c8cb6ec434ad2d65ac3eeaf8882c60d77 Mon Sep 17 00:00:00 2001 From: sin s...@2f30.org Date: Sun, 7 Jul 2013 15:29:45 +0100 Subject: [PATCH] Add sum.[ch] and update md5sum and sha1sum Factor out the code from md5sum and sha1sum into a

[dev] [dwm] [patch] Fix warning about XKeycodeToKeysym

2013-07-12 Thread Alexander Rødseth
Attaching a patch for fixing a warning about XKeycodeToKeysym, by replacing it with a call to XGetKeyboardMapping. -- Sincerely, Alexander Rødseth Arch Linux TU dwm-6.1-xgetkeyboardmapping.diff Description: Binary data

Re: [dev] [sbase] [patch v3] Add sum.[ch] and update md5sum and sha1sum

2013-07-12 Thread Galos, David
Renamed from crypt to sum. I think crypt was a good name. cryptsum made sense as a function, I think that printing should be removed from cryptsum, though. Another function, cryptprint (or mdprint) could take a digest, and a length. I believe this is a better separation of concerns. v2 was

Re: [dev] [sbase] [patch v3] Add sum.[ch] and update md5sum and sha1sum

2013-07-12 Thread sin
On Fri, Jul 12, 2013 at 09:56:21AM -0500, Galos, David wrote: Renamed from crypt to sum. I think crypt was a good name. cryptsum made sense as a function, I think that printing should be removed from cryptsum, though. Another function, cryptprint (or mdprint) could take a digest, and a

[dev] [sbase] [patch] Adding tar v2

2013-07-12 Thread Galos, David
Thanks in large part to your information about how you invoke tar, I believe I have come up with a decent solution. I also was able to find the structified version of tar I had worked on in the past. The argument parsing is a bit ugly, so simplifications are welcome, provided they keep the

[dev] Re: [sbase] [patch] Adding tar v2

2013-07-12 Thread Galos, David
And, here is that patch that I stupidly forgot to attach. sbase-adding-tar-2.diff Description: Binary data

Re: [dev] [sbase] [patch] Adding tar v2

2013-07-12 Thread Truls Becken
On 2013-07-12, at 17:30, David Galos wrote: The argument parsing is a bit ugly, so simplifications are welcome, provided they keep the current functionality The goto seems uncalled for. An ordinary if does the job equally well. Also, I wonder if a mode variable isn't just as simple as the flg

[dev] [sbase] [patch] Get it building on OpenBSD

2013-07-12 Thread Steve Dee
OpenBSD doesn't have utmpx.h or clearenv. Also, the dependency $(BIN): util.a seems to shadow the implicit build rule in BSD make, resulting in nothing past util.a getting built. The patch includes a rather stupid workaround for this. (Less stupid solutions welcome --- it'd be simple to specify

Re: [dev] [sbase] [patch] Get it building on OpenBSD

2013-07-12 Thread Galos, David
OpenBSD doesn't have utmpx.h or clearenv. Does it also not have getutent? Replacing clearenv with environ=NULL is fine, though. it'd be simple to specify with a .for, but then it'd be BSD-make--specific, and I don't feel like figuring out cross-platform makefiles.) Good, we want nothing to do

[dev] [sbase] [patch] Adding tar v2

2013-07-12 Thread Galos, David
The goto seems uncalled for. An ordinary if does the job equally well. Also, I wonder if a mode variable isn't just as simple as the flg array. Good catches. I probably went through 10 permutations of argument parsing until I found the current one, so I'm not surprised that I missed some

[dev] tmux export buffer to pastebin

2013-07-12 Thread Kai Hendry
Hi guys, Since hopefully most of you are running http://st.suckless.org/ and tmux, perhaps you'll find this bind interesting: bind-key p capture-pane -S -32768 \; save-buffer /tmp/tmux-buffer \; run cat /tmp/tmux-buffer | curl -F 'sprunge=-' http://sprunge.us | tmux load-buffer -; tmux