Run while you can

Running while you can

And now the end is near
And so I face the final curtain
My friend I’ll say it clear
I’ll state my case of which I’m certain

“My way”, Frank Sinatra


So run baby run baby run baby run
Baby run

From the old familiar faces and
Their old familiar ways
To the comfort of the strangers
Slipping out before they say
So long
Baby loves to run

“Run, Baby, Run”, Sheryl Crow

One second after by William R. Forstchen

In this entertaining apocalyptic thriller from Forstchen (We Look Like Men of War), a high-altitude nuclear bomb of uncertain origin explodes, unleashing a deadly electromagnetic pulse that instantly disables almost every electrical device in the U.S. and elsewhere in the world. Airplanes, most cars, cellphones, refrigerators—all are fried as the country plunges into literal and metaphoric darkness. History professor John Matherson, who lives with his two daughters in a small North Carolina town, soon figures out what has happened. Aided by local officials, Matherson begins to deal with such long-term effects of the disaster as starvation, disease and roving gangs of barbarians. While the material sometimes threatens to veer into jingoism, and heartstrings are tugged a little too vigorously, fans of such classics as Alas, Babylon and On the Beachwill have a good time as Forstchen tackles the obvious and some not-so-obvious questions the apocalypse tends to raise.

The Plague” (1947) by Albert Camus,

library

“The Plague” (1947) by Albert Camus, the bible of all novels about epidemics in the 20th century, ends with the recognition that such phenomena will continue to plague mankind and will destroy not just the residents of Oran in Algeria, but will recur repeatedly with the same frightening randomness. And they will demand that people look deeply within themselves to rediscover their consciences and morality, their solidarity and their altruism, which will be necessary to save their environment. Not everyone will succeed. The good people won’t necessarily survive. In modern literature the question of “Why did this plague happen,” will generally remain unanswered.

The Aztecs, the Egyptians and the Greeks, the Finnish and the Hindus – all created deities who were responsible for plagues and who would unleash them capriciously upon the world. From Pandora, who unleashed all the evils trapped in her box, to the son of Nigeria’s Yoruba people, who angers Sopona, the god of smallpox – many mythological tales are used as threats to spur man to improve his ways; if not, he is doomed to suffer from Ebola, pestilence, fever, Spanish flu and blisters.

The discovery of bacteria and viruses and the achievements of modern medicine have not eradicated the thinking that human beings have suffered from diseases or the deluge as justified punishment for their sins.

Tuning Your Apache Server

See also : https://www.linode.com/docs/web-servers/apache-tips-and-tricks/tuning-your-apache-server/

curl -sL https://raw.githubusercontent.com/richardforth/apache2buddy/master/apache2buddy.pl > apache2buddy.pl

perl apache2buddy.pl –skip-os-version-check

vi /etc/apache2/mods-enabled/mpm_prefork.conf service apache2 restart

debian lamp with php 7.3.

apt-get -y update

apt-get -y upgrade

# install apache software-prop

apt-get -y install tasksel apache2 software-properties-common mariadb-client mariadb-server  python-certbot-apache lsb-release apt-transport-https ca-certificates

# install php 7.3

apt -y install lsb-release apt-transport-https ca-certificates

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” | tee /etc/apt/sources.list.d/php7.3.list

apt-get -y updateapt-get -y upgradeapt-get -y install libapache2-mod-php7.3 php7.3-gd php7.3-mysql php7.3-curl php7.3-intl php7.3-xsl php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-soap php7.3-imagick

making a lamp with P H P

apt-get -y update
apt-get -y upgrade

# install apache software-prop

apt-get -y install tasksel apache2 software-properties-common mariadb-client mariadb-server  python-certbot-apache lsb-release apt-transport-https ca-certificates

# install php 7.3
apt -y install lsb-release apt-transport-https ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” | tee /etc/apt/sources.list.d/php7.3.listapt-get -y update

apt-get -y upgrade

apt-get -y install libapache2-mod-php7.3 php7.3-gd php7.3-mysql php7.3-curl php7.3-intl php7.3-xsl php7.3-mbstring php7.3-zip php7.3-bcmath php7.3-soap php7.3-imagick

### install lets encrypt#
apt-get -y install python-certbot-apache
# set cert
certbot –apache

## harden mysql

mysql_secure_installation

Letsencrypt on haproxy

I created a couple of scripts

1/ the script to create the certs

root@groupmgt:~# cat createCert.sh 

#######################################

### create cert with letsencrypt    ###

#######################################

#!/bin/ksh

file=”${1:-/dev/null}”

while read domain

do

   echo “==================================” 

   echo “$domain”

   #ping -c 1 $domain

   #

   # run command letsencrupt

   letsencrypt certonly –text –webroot –webroot-path /tmp -d $domain –renew-by-default –agree-tos –email rcveen@gmail.com

   echo “==================================” 

done <“$file” 

the second script will create the pem files for haproxy

root@groupmgt:~# cat createCert.sh 

#######################################

### create cert with letsencrypt    ###

#######################################

#!/bin/ksh

file=”${1:-/dev/null}”

while read domain

do

   echo “==================================” 

   echo “$domain”

   #ping -c 1 $domain

   #

   # run command letsencrupt

   letsencrypt certonly –text –webroot –webroot-path /tmp -d $domain –renew-by-default –agree-tos –email rcveen@gmail.com

   echo “==================================” 

done <“$file” 

root@groupmgt:~# cat createAll_PEM.sh 

echo “================================”

echo “===  CREATE INPUT FILES      ===”

echo “================================”

cd /etc/letsencrypt/live

ls -1 > /root/Alldirs.txt

while read dir

do

  echo “dir:$dir”

  cd $dir

  ls -l 

  cat privkey.pem fullchain.pem | tee haproxy.pem

  cat privkey.pem fullchain.pem | tee $dir.pem

  cp $dir.pem ../../all/.

  echo “created: $dir/haproxy.pem”

  cd /etc/letsencrypt/live

done <“/root/Alldirs.txt”

echo “================================”

echo “=== DONE : all haproxy.pem created   ===”

And the third script will update the cerst and update the haproxy part

root@groupmgt:~# cat refreshCert.sh 

/usr/bin/letsencrypt renew >> /var/log/certRenewal.log

/root/createAll_PEM.sh >> /var/log/cert_createPEM.log

The haproxy part like installation and restartting after the update of the created pem’s that’s something which will not be written out in this section 🙂

Let’s blame it on the boogie

In spite of the abuse heaped on farmers by urbanites, the causes of climate change are a town and country problem. By most key measures, and even counting food miles for our exports, we already are. But that message needs amplifying.

Never mind the world stage – farmers need defending at home against the current fashion for demonizing them as the prime culprits for greenhouse-gas emissions and water pollution.

The causes of climate change are a town and country problem. It is pointless to pit “their” dirty rivers and belching cows against “our” urban traffic and sewage discharge. Yet the abuse of farmers by self-righteous urbanites is becoming so severe that it is probably contributing – along with debt and isolation – to serious mental health problems in rural country.

Reflexive cries of “soft on farmers!” ignore the green imperatives for carefully calibrating these settings. Were vast tracts of our productive land rendered uneconomic to farm or crop because of new restrictions, there is little to stop it being taken over by forestry. Carbon sinks are highly attractive to international investors.

Further, there is nothing to replace our agricultural sector’s economic heft – least of all more sustainably. Were it to come from massive expansion in tourism, unlikely though that is, our carbon emissions would rise as a result of burning more aviation fuel.

This effect, known as carbon leakage, will remain a risk until competitors’ green efficiency starts catching up with ours. For structural economic reasons – chiefly that most are heavily subsidized – this is highly unlikely any time soon. For example, despite the UK’s large population and guaranteed – for now – European market access, only a quarter of its farms are profitable without subsidies and supplementary employment.

It would be instructive to poll those blackguarding the farm sector as to what they would give up in exchange for a much-reduced national income.

Agricultural exports make up a lot of our foreign earnings from merchandise and more than half of all earnings including services, which allow us to import prized – and not particularly green – items such as iPhones, computers, coffee, designer goods, e-scooters and cars that are bought primarily by city dwellers.

Those tempted to rejoice in farmer discomfort should also consider the social cost of a devastated farm sector: social dislocation, provincial business failures, and unemployment.

Source: https://www.noted.co.nz/money/money-economy/climate-change-blame-game-nz

That nasty boogie bugs me
But somehow it has drugged me
Spellbound rhythm gets me on my feetI’ve changed my life completely
I’ve seen the lightening leave me
My baby just can’t take her eyes off meDon’t blame it on the sunshine
Don’t blame it on the moonlight
Don’t blame it on good times
Blame it on the boogie

Either I will find a way, or I will make one by Philip Sidney