Thorsten Glaser [Thu, 27 Jun 2013 15:08:14 +0000 (17:08 +0200)]
add larger sample CGI application from tarent-activity
https://evolvis.org/projects/evolvis-platfrm/ → activity.git
Thorsten Glaser [Wed, 26 Jun 2013 18:37:28 +0000 (18:37 +0000)]
provide access to the apt-file functionality of the PTS
Thorsten Glaser [Wed, 26 Jun 2013 18:31:58 +0000 (20:31 +0200)]
add JBoss init/start scripts
with features like “wait until not only JBoss has fully deployed
everything but also Liferay has hot-deployed the theme and portlets
and is fully usable” and a Debian/LSB sysvinit script
Thorsten Glaser [Thu, 23 May 2013 20:13:52 +0000 (20:13 +0000)]
add more functions from my ~/.profile
Thorsten Glaser [Wed, 22 May 2013 12:25:52 +0000 (14:25 +0200)]
from admin.svn: do not forcibly set the timezone; add manpage
Thorsten Glaser [Wed, 22 May 2013 12:26:31 +0000 (14:26 +0200)]
sync with admin.svn
Thorsten Glaser [Sun, 19 May 2013 21:26:28 +0000 (21:26 +0000)]
updates from MirBSD CVS
Thorsten Glaser [Sun, 19 May 2013 21:10:14 +0000 (21:10 +0000)]
only one of these
Thorsten Glaser [Fri, 26 Apr 2013 17:21:21 +0000 (17:21 +0000)]
merge from MirBSD (if just to give a good example, use "${!foo[@]}")
Thorsten Glaser [Fri, 26 Apr 2013 16:12:51 +0000 (18:12 +0200)]
add generic LDAP parser for assockit
Thorsten Glaser [Tue, 9 Apr 2013 23:03:08 +0000 (23:03 +0000)]
script converting binary input to ksh print statement reproducing input
Thorsten Glaser [Thu, 8 Nov 2012 08:43:44 +0000 (09:43 +0100)]
update from MirBSD/contrib: unbreak for stdin (“-”)
Thorsten Glaser [Thu, 8 Nov 2012 08:42:30 +0000 (09:42 +0100)]
drop useless RCS ID
Thorsten Glaser [Thu, 8 Nov 2012 08:40:46 +0000 (09:40 +0100)]
use a publicly accessible server for additional entropy, not a private
Thorsten Glaser [Thu, 8 Nov 2012 08:40:00 +0000 (09:40 +0100)]
companion script for bash-ksh/generate-pgpkey-for-at-work, with same
warnings apply: review before using
Thorsten Glaser [Fri, 19 Oct 2012 19:00:37 +0000 (19:00 +0000)]
update from MirBSD master: more security for arc4random in Pure mksh™
Thorsten Glaser [Mon, 8 Oct 2012 19:34:08 +0000 (19:34 +0000)]
add support for php-style arrays in QUERY_STRING
Thorsten Glaser [Mon, 8 Oct 2012 18:42:45 +0000 (18:42 +0000)]
nik wants a QUERY_STRING parser, so give him one, for food ☺
also, give it a function: if 'type' is passed, use that as an
override for the content-type served, and offer download links
for all files that force it to application/octet-stream
Thorsten Glaser [Sun, 7 Oct 2012 22:50:38 +0000 (22:50 +0000)]
check that requested documents and dirindicēs lie within basedir
Thorsten Glaser [Sun, 7 Oct 2012 20:55:39 +0000 (20:55 +0000)]
add HTTPS downloader script for natureshadow’s git-annex
honouring permissions, only displaying legible subdirs
Thorsten Glaser [Thu, 27 Sep 2012 18:42:52 +0000 (18:42 +0000)]
sync from MirBSD: fix over-zealous optimisation that was bogus
Thorsten Glaser [Sun, 23 Sep 2012 16:16:12 +0000 (18:16 +0200)]
analog clock
Thorsten Glaser [Sun, 23 Sep 2012 16:17:00 +0000 (18:17 +0200)]
tool to play live365.com streams from the BSD terminal
Thorsten Glaser [Sun, 23 Sep 2012 16:20:59 +0000 (18:20 +0200)]
further fixes for manpage cross-references
Thorsten Glaser [Sun, 23 Sep 2012 16:14:47 +0000 (18:14 +0200)]
replacement
Thorsten Glaser [Sun, 23 Sep 2012 16:06:38 +0000 (18:06 +0200)]
replace with improved/updated versions
Thorsten Glaser [Sun, 23 Sep 2012 16:13:02 +0000 (18:13 +0200)]
support for jessie, and another snapshot exclusion tag
Thorsten Glaser [Sun, 23 Sep 2012 16:09:03 +0000 (18:09 +0200)]
debootstrap and InRelease modes
Thorsten Glaser [Sun, 23 Sep 2012 15:51:49 +0000 (17:51 +0200)]
more examples
Thorsten Glaser [Sun, 23 Sep 2012 15:50:17 +0000 (17:50 +0200)]
LC_ALL=C; detect zsh-old, yash, lksh, pdksh as sh; refer
Thorsten Glaser [Sun, 23 Sep 2012 16:07:02 +0000 (18:07 +0200)]
oh please, https
Thorsten Glaser [Sun, 2 Sep 2012 00:35:42 +0000 (00:35 +0000)]
add tool to store a BDF font in a more terse format and edit a font
with manpage; as used in the MirBSD XFree86® build process
Thorsten Glaser [Sun, 29 Jul 2012 17:49:39 +0000 (17:49 +0000)]
command-line client for live365.com streams
‣ needs inline-editing for credentials
• needs a user account on their site
• works with free and VIP accounts both
only slightly edited from the source, not mirified
Thorsten Glaser [Sun, 15 Jul 2012 14:25:15 +0000 (14:25 +0000)]
time manipulation functions in Pure mksh™
POSIX (i.e. no leap second support and Y2038 problem)
available definitions:
• tm_* constants (offset of "struct tm" members in indexed array)
• mirtime_months, mirtime_wdays (mapping to strings in the "C" locale)
available functions:
• timet2mjd ${posix_timet_seconds}
⇒ ${mjd_day} ${mjd_sec}
• mjd2timet ${mjd_day} ${mjd_sec}
⇒ ${posix_timet_seconds}
• mjd_explode ${mjd_day} ${mjd_sec}
⇒ ${struct_tm[@]}
• mjd_implode ${struct_tm[@]}
⇒ ${mjd_day} ${mjd_sec}
The functions all currently share that they take and output
an array (mirtime_mjd or struct tm) in split form, i.e. one
function argument per struct member, and space-separated output.
(This works with this data.)
Not all members of struct tm are used:
When emitting a struct tm (by mjd_explode), these are hardcoded:
• tm_isdst = 0
• tm_gmtoff = 0
• tm_zone = "UTC"
When parsing a struct tm (by mjd_implode), these are ignored:
• tm_wday, tm_yday (only tm_mon+tm_mday are used)
• tm_isdst (only tm_gmtoff is used as additional offset)
• tm_zone (it's a descriptive string anyway)
This matches behaviour of the mirtime functions in MirBSD libkern
(kernel, bootloader, libc), except that no leap second information
is available, and mksh_ari_t (32 bit) is used instead of time_t.
Thorsten Glaser [Tue, 19 Jun 2012 11:31:55 +0000 (13:31 +0200)]
the Epoch is not part of a package’s filenames, ever.
sometimes misleading behaviour of some apt downloaders notwithstanding
Thorsten Glaser [Tue, 12 Jun 2012 10:57:35 +0000 (12:57 +0200)]
add exclude-files
Thorsten Glaser [Tue, 12 Jun 2012 10:57:24 +0000 (12:57 +0200)]
add support for https:// in deb lines
Thorsten Glaser [Wed, 9 May 2012 09:08:57 +0000 (11:08 +0200)]
update some scripts
Thorsten Glaser [Mon, 7 May 2012 22:25:47 +0000 (22:25 +0000)]
new option -f to skip running sync-available as that takes ages on m68k
Thorsten Glaser [Sun, 6 May 2012 17:18:11 +0000 (17:18 +0000)]
explicitly encode spaces as ‘+’ for $BROWSER
as suggested during the Debian/DuckDuckGo discussion
even though only Dillo seems to need it
proper urlencode would be more useful, e.g. + → %2B, % → %25
but since ${x//y/z} isn’t in POSIX sh, I didn’t put it in here
(we could conceivably call sed, though; discussion?)
Thorsten Glaser [Sun, 6 May 2012 17:15:04 +0000 (17:15 +0000)]
let Debian get revenue from DuckDuckGo calls
since MirBSD doesn’t, and that is the most reasonable place to let
it go to (also, who says we don’t profit from Debian?)
Thorsten Glaser [Mon, 16 Apr 2012 15:20:32 +0000 (15:20 +0000)]
use a function if we define it already (possible renamo)
Thorsten Glaser [Sat, 7 Apr 2012 00:01:57 +0000 (00:01 +0000)]
AO3 EPUB files are structured slightly differently; cope.
Thorsten Glaser [Sat, 7 Apr 2012 00:00:23 +0000 (00:00 +0000)]
download an article from usenet/GMane via msgid or newsgroup+article#
Thorsten Glaser [Fri, 6 Apr 2012 23:57:14 +0000 (23:57 +0000)]
no sense in making arch:all when we have only one arch:any, just use it for all others then to save time
Thorsten Glaser [Fri, 6 Apr 2012 23:56:36 +0000 (23:56 +0000)]
can’t forget sprunge
Thorsten Glaser [Fri, 6 Apr 2012 23:54:20 +0000 (23:54 +0000)]
better etch compatibility
Thorsten Glaser [Fri, 6 Apr 2012 23:52:48 +0000 (23:52 +0000)]
add copyright licence fallback for Public Domain works
and an explanation about Schaffenshöhe / Threshold of Originality
Thorsten Glaser [Tue, 17 Jan 2012 13:06:53 +0000 (14:06 +0100)]
minimal shell templating engine example, using Perl
up for customisation; dedicated to Carsten Klein
Thorsten Glaser [Sat, 31 Dec 2011 20:04:41 +0000 (20:04 +0000)]
profile function to run CR-LF line ended script with mksh, e.g. on Cygwin
Message-ID: <Pine.BSM.4.64L.
1112311952120.14351@herc.mirbsd.org>
Thorsten Glaser [Sun, 18 Dec 2011 17:38:08 +0000 (18:38 +0100)]
merge update from posix/pbuilder-hooks/B20lintian
Thorsten Glaser [Sat, 17 Dec 2011 22:35:54 +0000 (22:35 +0000)]
huh… no --install-recommends apt(1) option on etch and sarge…
(I suppose this is slowly growing large enough for copyright)
Thorsten Glaser [Thu, 15 Dec 2011 21:08:20 +0000 (21:08 +0000)]
update pbuilder hook scripts cross with MirBSD and add new ones
especially nice: always run lintian!
Thorsten Glaser [Sat, 3 Dec 2011 18:22:01 +0000 (18:22 +0000)]
update from MirBSD: deal better with PSD/SMM/USD/PAPERS and overstrikes
Thorsten Glaser [Sat, 3 Dec 2011 16:54:51 +0000 (16:54 +0000)]
colourised wdiff(1) wrapper
Thorsten Glaser [Sat, 3 Dec 2011 16:53:02 +0000 (16:53 +0000)]
script to run Xnest(1) with xauth(1) cookies intact
from https://www.mirbsd.org/man1/Xnest
Thorsten Glaser [Sat, 3 Dec 2011 16:52:02 +0000 (16:52 +0000)]
add script to play FLAC files with flac and waveplay
for those times mplayer segfaults on you
Thorsten Glaser [Sat, 3 Dec 2011 16:46:10 +0000 (16:46 +0000)]
do not use <?xml to avoid triggering "quirks mode"
update from MirBSD master
Thorsten Glaser [Sat, 3 Dec 2011 16:45:20 +0000 (16:45 +0000)]
pretty old script (still in use) to interactively edit a file by diff
(mostly for CVS users)
Thorsten Glaser [Sat, 3 Dec 2011 16:44:37 +0000 (16:44 +0000)]
scripts to easily edit BDF font glyphs in a text editor
Thorsten Glaser [Sat, 3 Dec 2011 16:43:46 +0000 (16:43 +0000)]
script to extract an AO3 .epub and create an index.htm from toc.ncx
(roughed as xmlstarlet is a bit resistant)
Thorsten Glaser [Sat, 3 Dec 2011 16:43:30 +0000 (16:43 +0000)]
pretty old CGI to display connection information (as IFRAME, mostly)
Thorsten Glaser [Sat, 3 Dec 2011 16:43:09 +0000 (16:43 +0000)]
update from MirBSD masters
Thorsten Glaser [Sat, 3 Dec 2011 16:30:51 +0000 (16:30 +0000)]
add pointer to kwalletcli which includes three useful scripts
(that do not really fit into here since they depend on C stuff)
Thorsten Glaser [Sat, 3 Dec 2011 16:24:16 +0000 (16:24 +0000)]
document that and why only shell snippets are admissible here,
and point links to other useful things
Thorsten Glaser [Sat, 3 Dec 2011 16:19:44 +0000 (16:19 +0000)]
update (better Tcl support)
Thorsten Glaser [Sat, 3 Dec 2011 16:19:18 +0000 (16:19 +0000)]
update, make more legible
Thorsten Glaser [Sat, 3 Dec 2011 16:12:39 +0000 (16:12 +0000)]
make profile-funcs POSIXly
Thorsten Glaser [Sat, 3 Dec 2011 15:56:58 +0000 (15:56 +0000)]
add some more functions from MirBSD
Thorsten Glaser [Wed, 23 Nov 2011 15:10:32 +0000 (16:10 +0100)]
script to generate a user list from LDAP (with photos) like
ejabberd sees them, with mod_shared_roster_ldap enabled and
a number of checks, filters, etc.
Thorsten Glaser [Thu, 17 Nov 2011 15:34:12 +0000 (16:34 +0100)]
update (minor)
Thorsten Glaser [Thu, 17 Nov 2011 15:20:35 +0000 (16:20 +0100)]
trick lintian into not checking the latest entry is a new version
Thorsten Glaser [Thu, 17 Nov 2011 14:35:02 +0000 (15:35 +0100)]
eek. when doing work on mirrored code, first commit in the parent VCS
so the RCS IDs are in sync…
Thorsten Glaser [Thu, 17 Nov 2011 14:21:24 +0000 (15:21 +0100)]
when snapshot skip NMU warning; 10x formorer
Thorsten Glaser [Thu, 17 Nov 2011 12:33:51 +0000 (13:33 +0100)]
mandatory run lintian -vIiE --pedantic \o/ my friend…
Thorsten Glaser [Thu, 17 Nov 2011 11:33:47 +0000 (12:33 +0100)]
Jenkins integration with cowbuilder
these two go together with a mvndput installation; these scripts
need to be placed in /usr/local/bin (currently hardcoded), and
the user Jenkins runs under needs to have password-less sudo on
kuhbauer. The /etc/pbuilderrc from MirDebian[1] is an absolute
requirement, and the base.cow-* must be set up by a sysadmin by
hand before and occasionally updated. Set DEBEMAIL in Jenkins,
an export statement in /etc/default/hudson seems to be a good
place. (Disable ENABLE_UPLOAD to work without mvndput.)
Currently, only Debian and *buntu suites are supported, not
Debian-Ports (which probably are broken in that pbuilderrc
anyway). Lists of suites, etc. are replicated several times
so take care. This is experimental, WFM quality.
[1] https://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/deb/pbuilderrc?rev=HEAD
Thorsten Glaser [Wed, 14 Sep 2011 20:54:57 +0000 (20:54 +0000)]
major facelifting for generated HTML manpages
• credits to XTaran@MirBSD.org for help with the colour scheme
• also much faster and more sane now
• cf. https://www.mirbsd.org/permalinks/wlog-10_e20110914-tg.htm
Thorsten Glaser [Thu, 25 Aug 2011 13:21:43 +0000 (15:21 +0200)]
better ldapsearch frontend for postprocessing
since $ ldapsearch -xLLL … | tr … | sed … | tr …
is too much to type, this script even gets $? right
(piping into sort also possible now)
Thorsten Glaser [Thu, 21 Jul 2011 20:05:03 +0000 (20:05 +0000)]
updates to various scripts, from The MirOS Code Factory
Thorsten Glaser [Tue, 21 Jun 2011 19:11:16 +0000 (19:11 +0000)]
bsiegert@mirbsd.org points out how to tame g**gle at least a̲ ̲b̲i̲t̲
Thorsten Glaser [Tue, 21 Jun 2011 12:00:01 +0000 (14:00 +0200)]
fix encoding
Thorsten Glaser [Tue, 21 Jun 2011 11:59:39 +0000 (13:59 +0200)]
cnuke@mirbsd.org points out that DuckDuckGo now works with Lynx ☺
Thorsten Glaser [Mon, 13 Jun 2011 18:44:36 +0000 (18:44 +0000)]
put some links in here
Frank Terbeck [Fri, 10 Jun 2011 12:57:49 +0000 (14:57 +0200)]
Add zsh/vcsupinit
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
Thorsten Glaser [Thu, 9 Jun 2011 22:22:44 +0000 (00:22 +0200)]
Automatic APT Repository build infrastructure
(mvndebri.sh is a modified ../debian-dev/mkdebidx.sh)
(mvndebri.sh has been slightly modified for publication cleanliness)
Basically, mvndput.sh is placed in /opt/mvn-debs which
is the DocumentRoot of the ${jenkinsname}-debs.${domain}
vhost and allows every job to upload files into repos
(at least one repo per job, to avoid race conditions
when more than one job tries to update a repo at the
same time); it calls dput to store the files into the
repository, then mvndebri.sh to update its indicēs.
Thorsten Glaser [Thu, 9 Jun 2011 22:19:09 +0000 (00:19 +0200)]
update from their respective sources
Thorsten Glaser [Thu, 9 Jun 2011 21:43:31 +0000 (23:43 +0200)]
next round of improvement: fix the empty file
Thorsten Glaser [Thu, 9 Jun 2011 21:34:57 +0000 (23:34 +0200)]
replace with NUL-safe variants; document limitation
essentially equivalent commands (for most of ASCII) are:
hexdump -e '"%08.8_ax " 8/1 "%02X " " - " 8/1 "%02X "' -e '" |" "%_p"' -e '"|\n"' "$@"
hexdump -e '"%08.8_ax " 4/1 "%04X " " - " 4/1 "%04X "' -e '" |" "%_p"' -e '"|\n"' "$@"
Thorsten Glaser [Thu, 9 Jun 2011 21:30:48 +0000 (23:30 +0200)]
copy the not NUL-safe variants to different filenames
Thorsten Glaser [Thu, 9 Jun 2011 21:29:58 +0000 (23:29 +0200)]
update from mksh
Thorsten Glaser [Thu, 9 Jun 2011 20:49:31 +0000 (22:49 +0200)]
add manpages from tarent repo
Thorsten Glaser [Wed, 30 Mar 2011 20:48:19 +0000 (20:48 +0000)]
df function tabularised; idea from #grml on irc.ipv6.freenode.net
Thorsten Glaser [Tue, 22 Mar 2011 10:50:54 +0000 (11:50 +0100)]
script for converting an SVG path from absolute to relative movements
reads 'd="..."' in one single chunk as input
used it once for ad-hōc conversion from inkscape to hand-edited
needs in-place configuration
Thorsten Glaser [Sun, 13 Mar 2011 20:40:53 +0000 (20:40 +0000)]
and then, there are some more useful profile functions
Thorsten Glaser [Thu, 10 Mar 2011 15:29:15 +0000 (16:29 +0100)]
script for key generation and upload to a server, uses ../mksh/ui.cgi
I suppose this is not secret either (and some of the algorithms
may help others)
Thorsten Glaser [Wed, 9 Mar 2011 14:57:55 +0000 (15:57 +0100)]
mention works of not enough Schaffenshöhe for copyright law are PD
Thorsten Glaser [Wed, 9 Mar 2011 14:55:30 +0000 (15:55 +0100)]
use urandom(4), not arandom(4), to be more portable
Thorsten Glaser [Wed, 9 Mar 2011 14:52:25 +0000 (15:52 +0100)]
add more common licences (of the GNU variety)
Thorsten Glaser [Wed, 9 Mar 2011 14:49:26 +0000 (15:49 +0100)]
source code for a website, in shell (except a C and a PHP helper)
Thorsten Glaser [Wed, 9 Mar 2011 14:38:35 +0000 (15:38 +0100)]
convert catmanpages to XHTML/1.1