wink.tilde.institute

party like it's 1998!


Pages:


My tilde log:


2018-11-27T23:38:00Z
Yak-shaving: I want to generate this via Makefile + Markdown.
So I downloaded Markdown_1.0.1.zip from daringfireball.net

I don't have sudo, so what can I do?
Checked for the unzip source code, dead links.
PHP is installed, so let's use... oh no, no ext/zip
Maybe this box has perl? Yes.
There's Archive::Extract, this could work.

$ cpan
# local install? sounds good, let's go.
Ok, googling around doesn't really help me. I have local::lib but it won't install locally.
This is the missing clue:
$ perl -I$HOME/perl5/lib/perl5 -MCPAN -Mlocal::lib -e 'CPAN::install(Archive::Extract)'
$ perl -I$HOME/perl5/lib/perl5 -MCPAN -Mlocal::lib -e 'CPAN::install(Archive::Zip)'

So here's my awesome ~/bin/unzip.pl (with hardcoded paths):
use Archive::Extract;
my $ae = Archive::Extract->new( archive =>> '/home/wink/Markdown_1.0.1.zip' );
my $ok = $ae->extract( to => '/home/wink/tmp' );

Running it:
$ perl -I$HOME/perl5/lib/perl5 -MCPAN -Mlocal::lib ~/bin/unzip.pl
$ ls -al ~/tmp/
$ ls -al /home/wink/tmp/Markdown_1.0.1/
total 108
drwxr-xr-x 2 wink tilde 512 Nov 27 18:35 .
drwxr-xr-x 3 wink tilde 512 Nov 27 18:35 ..
-rw-r--r-- 1 wink tilde 1508 Dec 14 2004 License.text
-rw-r--r-- 1 wink tilde 11075 Dec 17 2004 Markdown Readme.text
-rwxr-xr-x 1 wink tilde 35622 Dec 14 2004 Markdown.pl

Wasn't that easy?
Upside: I can now unzip .zip files.
Downside: 48 MB of disk space wasted.


2018-11-27T21:38:00Z
OK, I need a website here. Let's see how I can get this running in a sensible way.
I guess Makefile + Markdown will be good enough until I can look at BCHS.
OK, I already looked at BCHS, I admit it.
Makefile is easy, but ugly. Needs more variables. Markdown next.


2018-11-27T00:56:00Z
I get an email I will not read for another ~20 hours that I was granted an account on tilde.institute. Thanks!

« back to top


My todos:

« back to top