Useful if you’re copy & pasting.
query-replace-regexp ^[[:digit:]]+\.? ?
Or even better, define this function in your .emacs
(defun remove-line-numbers ()
"remove line numbers"
(replace-regexp "^[[:digit:]]+\.? ?" ""))
Download, compile & install openssl 1.02 somewhere (eg /usr/local/openssl102)
IMPORTANT: config with -fPIC flag
./config --prefix=/usr/local/openssl102 -fPIC no-gost no-shared no-zlib && make && make install
Download compile & install nghttp2 (straightforward, I went for default path – to ensure it’s picked up by apache module create
/etc/ld.so.conf.d/local.conf with contents /
usr/local/lib & run ldconfig unless this is already in your linker dirs).
Download and untar apache 2.4.17
Download and untar latest apr & apr-util,
unpack them into ./srclib/apr and ./srclib/apr-util inside apache distributrion (be sure the dir names
do not have version numbers; for example, the APR distribution must be under ./srclib/apr/)
Config & compile apache
# set prefix if you want, default will install to /usr/local/apache2
# add --with-lua if you have it installed for fun!
./configure --enable-http2 --enable-ssl --with-ssl=/usr/local/openssl102 --with-included-apr
Configure apache to use http2.
To test your http2 server you might want a recent build of curl, download the latest and configure like so:
./configure --with-ssl=/usr/local/openss102 --prefix=/usr/local/curl --with-nghttp2=/usr/local
Customizable alternative to Oracle’s SQL*PLUS command-line interface
Prerequisites to install:
- Ensure you have oracle client libraries & ORACLE_HOME set (run the environment script)
/etc/ld.so.conf.d/oracle.confwith contents of your lib directory (eg: /u01/app/oracle/product/11.2.0/xe/lib) and run ldconfig
- pip install cx-Oracle
This is partly based on instructions from https://servercheck.in/blog/running-ansible-within-windows but uses a virtual environment and no checking out from Github / manually installing packages.
- Install Cygwin. Include following packages:
- openssl / openssl-devel
- Install & configure pip, virtualenv & virtualenvwrapper as per http://atbrox.com/2009/09/21/how-to-get-pipvirtualenvfabric-working-on-cygwin/
- Create a virtual environment for ansible with
mkvirtualenv --system-site-packages ansi
- Install ansible inside your virtual environment with
pip install ansible pyyaml jinja2
That’s it (remember to set
ssh_args = -o ControlMaster=no in ansible.cfg as cygwin doesn’t support it).
- Use Apache 2.4 (so if you use Centos / RHEL, use v7). This has lower memory requirements, stable Event MPM (see below) and far more functionality.
- If you terminate SSL at Apache, use a clustered cache to keep track of SSL sessions. Otherwise the SSL session establishment will have to be renegotiated every time you hop server (if you have sticky sessions at the load balancer, this may not be the case, but sticky sessions can be unreliable) and this is very expensive.
- Consider using nginx or the event MPM where you can (eg for static requests).
- Disable Etags (FileEtag None). As with SSL, you will get a new Etag every time you hop server (so sticky session caveat applies again) breaking the client side cacheing. Disabling Etags will drop back to Last-modified.
Not sure why OVH allows one of its customers (184.108.40.206) to blog spam
From: Jason Peterson <a class="moz-txt-link-rfc2396E" href="mailto:firstname.lastname@example.org"><email@example.com></a>
Subject: Increase Sales / Customers
Would you like to see you how your competitors are getting more sales than you are?
Improving your website visibility online is more important than ever.
What's a good phone number so we can discuss my plan?
Thanks for your time
testssl.sh is a free command line tool which checks a server’s service on any port for the support of TLS/SSL ciphers, protocols as well as some flaws. It’s designed to provide a clear output for a “is this good or bad” decision. It works for Linux and BSD out of the box – no need to install or configure something, no gems, CPAN, pip or the like.
If you use the Qualys online SSL checker a lot, you need to try this, it’s very fast if you are experimenting with SSL config options.
If you want this to work (for example for https elisp repositories) I strongly recommend you use the version of Emacs that is bundled with Cygwin.