Instructions

Renew SSL certificate

See log.

    sudo perl -pi -e 's/Rewrite/# Rewrite/' /etc/apache2/sites-available/000-default.conf
    sudo apachectl graceful
    sudo certbot renew
    sudo perl -pi -e 's/# Rewrite/Rewrite/' /etc/apache2/sites-available/000-default.conf
    sudo apachectl graceful
When connecting to berry over ssl fails from firefox, check the VPN.

letsencrypt> pwd
/etc/letsencrypt
letsencrypt> sudo openssl x509 -enddate -noout -in live/berry314.girod.fi/fullchain.pem
notAfter=Jul 13 19:24:21 2023 GMT
letsencrypt> sudo ls -l live/berry314.girod.fi/fullchain.pem
lrwxrwxrwx 1 root root 46 Apr 14 21:24 live/berry314.girod.fi/fullchain.pem -> ../../archive/berry314.girod.fi/fullchain5.pem
Check cloudflare.

sudo over tramp


/ssh:berry|sudo:berry:/etc:

Resize image


convert -resize 20% 1677228853090.jpg decider.jpg

Convert file to utf-8


iconv -f iso-8859-1 -t utf-8 ea.iso -o ea.html

Update htdig index

Comment the 3 Rewrite lines in the http configuration (prevent redirection to https)

tar zxf /tmp/new.tgz
sudo perl -pi -e 's/Rewrite/# Rewrite/' /etc/apache2/sites-available/000-default.conf
sudo apachectl graceful
export DBDIR=/opt/www/htdig/db COMMONDIR=/opt/www/htdig/common BINDIR=/opt/www/htdig/bin
sudo $BINDIR/htdig
sudo perl -pi -e 's/# Rewrite/Rewrite/' /etc/apache2/sites-available/000-default.conf
sudo apachectl graceful
LC_COLLATE=C sudo $BINDIR/htmerge

Update git forks

This is especially valid for ~/git/mgirod/gcc (very active) but also for ~/git/mgirod/icu.

gcc> git pull upstream master
gcc> git commit -m 'pull update' -a
gcc> git push

Build debuggable

So far failed to understand how to avoid optimizations completely.

fstr> make CXXFLAGS="-std=c++11 -ggdb -Og" # was not working—maybe better now (6.3)
fstr> make CXXFLAGS="-std=c++11 -g -O0"

Debug


fstr> gdb fstr
(gdb) b 631
(gdb) run
(gdb) s
Useful:

(gdb) finish
(gdb) info stack
(gdb) q
Interesting files: gcc-6_3_0-release: Expected effect: the string should get appended to the file

fstr> cat utest.txt; echo

Development
Marc Girod