Something like the way thenextweb does their interstitial ads
A Pen by Mpasho Tech on CodePen.
Something like the way thenextweb does their interstitial ads
A Pen by Mpasho Tech on CodePen.
| <?php | |
| // WordPress stores the site URL in the database by default (which I have never | |
| // understood), and it's a pain to have to type out the UPDATE SQL or search in | |
| // phpMyAdmin to change it. This is a simple way to put the URL into | |
| // wp-config.php instead. | |
| // Note that you will still need to update any URLs that appear in the content, | |
| // especially when you copy a database from a development site to production: | |
| // https://gist.github.com/davejamesmiller/a8733a3fbb17e0ff0fb5 |
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
| # Configuration file for varnish | |
| # | |
| # /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK | |
| # to be set from this shell script fragment. | |
| # | |
| # Should we start varnishd at boot? Set to "no" to disable. | |
| START=yes | |
| # Maximum number of open files (for ulimit -n) |
| # AWS specific install of Docker | |
| sudo yum update -y | |
| sudo yum install -y docker | |
| sudo service docker start | |
| sudo usermod -a -G docker ec2-user | |
| # exit the SSH session, login again | |
| # Docker | |
| docker run -d --hostname my-rabbit --name some-rabbit -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 15672:15672 rabbitmq |
| Enter varnish admin | |
| varnishadm | |
| clear cache for index home page only | |
| ban req.http.host ~ www.htpcguides.com && req.url ~ "^/$" | |
| clear cache for specific page |
This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
First be sure to enable the Docker Remote API on the remote host.
This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.
For HTTPS connection use whiledo/docker-remote-api-tls.