Are you over 18 and want to see adult content?
More Annotations
![A complete backup of www.bbc.co.uk/sport/football/51532901](https://www.archivebay.com/archive2/c7afd3bf-a5f6-4234-936a-b4dc9735209c.png)
A complete backup of www.bbc.co.uk/sport/football/51532901
Are you over 18 and want to see adult content?
![A complete backup of www.independent.co.uk/sport/football/premier-league/watford-vs-liverpool-live-stream-watch-online-tv-channe](https://www.archivebay.com/archive2/a7ca7f9d-2322-4f97-8f05-04baf8c73346.png)
A complete backup of www.independent.co.uk/sport/football/premier-league/watford-vs-liverpool-live-stream-watch-online-tv-channe
Are you over 18 and want to see adult content?
![A complete backup of www.corrieredellosport.it/news/calcio/serie-a/2020/02/29-67267499/diretta_napoli-torino_ore_20_45_come_vede](https://www.archivebay.com/archive2/17066d7b-5eca-4622-a05c-9f44762becbb.png)
A complete backup of www.corrieredellosport.it/news/calcio/serie-a/2020/02/29-67267499/diretta_napoli-torino_ore_20_45_come_vede
Are you over 18 and want to see adult content?
Favourite Annotations
![A complete backup of https://thebeautyholic.com](https://www.archivebay.com/archive6/images/fab173f9-ac28-4f4b-8953-24bccc7b41e6.png)
A complete backup of https://thebeautyholic.com
Are you over 18 and want to see adult content?
![A complete backup of https://soiree-eventdesign.com](https://www.archivebay.com/archive6/images/1533bf3d-6c58-4c1e-8de5-a317c053b26d.png)
A complete backup of https://soiree-eventdesign.com
Are you over 18 and want to see adult content?
![A complete backup of https://iqeq.com.cn](https://www.archivebay.com/archive6/images/464f096e-9e9e-4b79-a6db-3d3e7dce823d.png)
A complete backup of https://iqeq.com.cn
Are you over 18 and want to see adult content?
![A complete backup of https://eduaict.ru](https://www.archivebay.com/archive6/images/05427b77-7192-4d89-a030-1453e8c30841.png)
A complete backup of https://eduaict.ru
Are you over 18 and want to see adult content?
![A complete backup of https://vin-info.com](https://www.archivebay.com/archive6/images/b6157e8a-993c-45a4-b9d2-f8032cef0c7b.png)
A complete backup of https://vin-info.com
Are you over 18 and want to see adult content?
![A complete backup of https://pamyatnik-spb.ru](https://www.archivebay.com/archive6/images/8d6cca07-9223-4711-b28b-adbd8d53acb5.png)
A complete backup of https://pamyatnik-spb.ru
Are you over 18 and want to see adult content?
![A complete backup of https://chadwicks.ie](https://www.archivebay.com/archive6/images/e1501f3a-2ff8-4eda-a2e2-df2240e78457.png)
A complete backup of https://chadwicks.ie
Are you over 18 and want to see adult content?
![A complete backup of https://herthabsc.com](https://www.archivebay.com/archive6/images/d1bd2a2b-a743-4180-8e68-f009ea1bc302.png)
A complete backup of https://herthabsc.com
Are you over 18 and want to see adult content?
![A complete backup of https://indiadivine.org](https://www.archivebay.com/archive6/images/6ac5471e-1881-41c8-8669-4d99b5754aab.png)
A complete backup of https://indiadivine.org
Are you over 18 and want to see adult content?
![A complete backup of https://dabbled.org](https://www.archivebay.com/archive6/images/58a5add8-c471-4649-a85f-f3e0a9bc1d8d.png)
A complete backup of https://dabbled.org
Are you over 18 and want to see adult content?
![A complete backup of https://atos-kliniken.com](https://www.archivebay.com/archive6/images/aec01572-7f94-4c04-a441-092f66f7a174.png)
A complete backup of https://atos-kliniken.com
Are you over 18 and want to see adult content?
Text
reading e-books.
C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent. UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review before EXPAND A HARD DISK WITH UBUNTU LVM Expand a Hard Disk with Ubuntu LVM. So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager. (link is external) (LVM) in Ubuntu, so the process isn't too bad. VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type.INSTALLING DRUSH 8
Procedures for installing Drush 8, the Drupal management utility, on Unix-like operating systems, with instructions to make Drush availablesystem-wide.
PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely:WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
JQUERY: SUMMARIZE TABLE ENTRIES jQuery script for calculating integer table columns and then summarizing the totals and averages in the specified row. USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
REMOVE THE DRM FROM AMAZON KINDLE BOOKS Disclaimer: I don't endorse pirating e-books. If you do this, you won't hurt Amazon or Sony, but you might hurt the author. Sermon: Why DRM Is Bad. Like many people you own an Amazon Kindle device forreading e-books.
C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent. UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review before EXPAND A HARD DISK WITH UBUNTU LVM Expand a Hard Disk with Ubuntu LVM. So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager. (link is external) (LVM) in Ubuntu, so the process isn't too bad. VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type.INSTALLING DRUSH 8
Procedures for installing Drush 8, the Drupal management utility, on Unix-like operating systems, with instructions to make Drush availablesystem-wide.
PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely:WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
JQUERY: SUMMARIZE TABLE ENTRIES jQuery script for calculating integer table columns and then summarizing the totals and averages in the specified row. USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page.STUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side.MAIL SERVER
Ubuntu 16.04 Mail Server Updates. My previous instructions for setting up a Postfix/Dovecot/MySQL mail server on Ubuntu 12.04 work mostly as-is for Ubuntu 16.04, but there are a couple of gotchas. These workarounds are necessary due to some different locations of utilities on the filesystem and some changes to Ubuntu's internals.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
JQUERY: SUMMARIZE TABLE ENTRIES jQuery script for calculating integer table columns and then summarizing the totals and averages in the specified row. TRUECRYPT ON FEDORA LINUX Update 2015: Support and development of TrueCrypt have, of course, now ended, although an independent audit of TrueCrypt revealed no severe security problems.I'd suggest the TrueCrypt fork VeraCrypt as a replacement.. Note: I'm using Fedora 19 here. VARNISH AND POUND WITH APACHE Using Varnish and Pound together is a relatively easy way to ensure the Varnish cache works for both SSL and non-SSL web sites. Varnish is a general-purpose web cache that can make your web sites and applications run substantially faster for your visitors while reducing the overall load on your web server. It works by assembling a local cache of your HTML pages, scripts, images and other ADDING AN SSL CERTIFICATE Install Your SSL Certificate. Put the file in your certificates directory on your web server (e.g., /etc/ssl/certs), and chown/chmod to root:root 644. If your certificate is an intermediate certificate (likely), your issuer will also give you a file like mysite_com.ca-bundle that RECOMPILE NGINX INSTALLED WITH APT Update, August 2016: This article refers to Nginx 1.5.x. As of version 1.9.11, Nginx supports loading modules dynamically at runtime, so I'd suggest that route instead. If you still want to recompile Nginx, an updated tutorial for recompiling Nginx 1.9+ installed with Apt on Ubuntu 16.04 is available here.Meanwhile, an updated tutorial for compiling Nginx 1.9+ from source on Ubuntu 16.04 COMPARISON OF APACHE MULTI-PROCESSING MODULES Worker. Threaded design is lighter on RAM and better for busy servers. Spawns processes with many threads each, and each thread handles one connection at a time. Unsafe for use with non-thread-safe modules, so alternatives should be found (e.g., FastCGI and PHP-FPM instead of mod_php) Best choice in most environments running < Apache 2.4.GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review before SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail serverSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. EXPAND A HARD DISK WITH UBUNTU LVM So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager (LVM) in Ubuntu, so the process isn't too bad. (This example uses Ubuntu Server 10.04, but it works for 12.04, 14.04, and 16.04 aswell.)
VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type. C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review before SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail serverSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. EXPAND A HARD DISK WITH UBUNTU LVM So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager (LVM) in Ubuntu, so the process isn't too bad. (This example uses Ubuntu Server 10.04, but it works for 12.04, 14.04, and 16.04 aswell.)
VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type. C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page.STUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side.PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: APACHE | GEOFFSTRATTON.COM Ubuntu 16.04 Web Server with Apache, PHP, and MySQL. Ubuntu 16.04 LTS has been out for a little while now, and its standard repos offer some nice enhancements over Ubuntu 14: Apache 2.4.18, PHP 7, and MySQL 5.7.12 The process for creating a basic LAMP web server is also streamlined, as a couple of bugs that plagued Ubuntu 14.04 are noweliminated.
WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
JQUERY: SUMMARIZE TABLE ENTRIES jQuery script for calculating integer table columns and then summarizing the totals and averages in the specified row. RECOMPILE NGINX INSTALLED WITH APT Update, August 2016: This article refers to Nginx 1.5.x. As of version 1.9.11, Nginx supports loading modules dynamically at runtime, so I'd suggest that route instead. If you still want to recompile Nginx, an updated tutorial for recompiling Nginx 1.9+ installed with Apt on Ubuntu 16.04 is available here.Meanwhile, an updated tutorial for compiling Nginx 1.9+ from source on Ubuntu 16.04 INSTALLING AN SSL CERTIFICATE (NGINX) Update April 2018: I'd suggest using Let's Encrypt for this instead.. How to create and install an SSL certificate for Nginx 1.10 on Ubuntu 16. (Apache setup here.)This setup also gets you an A on the SSL Labs SSL Server Test.. Part I: Create and Obtain your SSL Cert ADDING AN SSL CERTIFICATE Install Your SSL Certificate. Put the file in your certificates directory on your web server (e.g., /etc/ssl/certs), and chown/chmod to root:root 644. If your certificate is an intermediate certificate (likely), your issuer will also give you a file like mysite_com.ca-bundle that NGINX: REDIRECT HTTP AND NON-WWW TO HTTPS WWW How to configure an Nginx web site on Ubuntu 16 to forward HTTP www/non-www and HTTPS non-www to HTTPS www. Includes info on setting up free certificates!GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review before EXPAND A HARD DISK WITH UBUNTU LVM Expand a Hard Disk with Ubuntu LVM. So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager. (link is external) (LVM) in Ubuntu, so the process isn't too bad. VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type.PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review before EXPAND A HARD DISK WITH UBUNTU LVM Expand a Hard Disk with Ubuntu LVM. So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager. (link is external) (LVM) in Ubuntu, so the process isn't too bad. VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type.PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page.STUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
JQUERY: SUMMARIZE TABLE ENTRIES jQuery script for calculating integer table columns and then summarizing the totals and averages in the specified row. USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
VARNISH AND POUND WITH APACHE Using Varnish and Pound together is a relatively easy way to ensure the Varnish cache works for both SSL and non-SSL web sites. Varnish is a general-purpose web cache that can make your web sites and applications run substantially faster for your visitors while reducing the overall load on your web server. It works by assembling a local cache of your HTML pages, scripts, images and other RECOMPILE NGINX INSTALLED WITH APT Update, August 2016: This article refers to Nginx 1.5.x. As of version 1.9.11, Nginx supports loading modules dynamically at runtime, so I'd suggest that route instead. If you still want to recompile Nginx, an updated tutorial for recompiling Nginx 1.9+ installed with Apt on Ubuntu 16.04 is available here.Meanwhile, an updated tutorial for compiling Nginx 1.9+ from source on Ubuntu 16.04 2017 COMPLETED BOOKS LIST 2017 completed books list, with links to Amazon. Past Book Listings: 2016 2015 2017 Reading List Ratings Guidelines To Read INSTALL ROUNDCUBE ON UBUNTU 16 WITH NGINX So you want to set up a webmail system. SquirrelMail was a fine community-supported project for many years, but as of July 2017 it seems to have been abandoned by its developers, so we're going to use Roundcube for our webmail system instead.. This guide assumes you have Ubuntu 16 running a MariaDB-Postfix-Dovecot email server with Spamassassin.The instructions here were written NGINX: REDIRECT HTTP AND NON-WWW TO HTTPS WWW How to configure an Nginx web site on Ubuntu 16 to forward HTTP www/non-www and HTTPS non-www to HTTPS www. Includes info on setting up free certificates!GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server EXPAND A HARD DISK WITH UBUNTU LVM Expand a Hard Disk with Ubuntu LVM. So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager. (link is external) (LVM) in Ubuntu, so the process isn't too bad. UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review beforeSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type. C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
HOSTING BY GEOFFSTRATTON.COM Managed hosting and support, as needed. No setup fees or hidden charges. Free assisted setup and transfer from your current host. Free SSL certificates from letsencrypt.org. (link is external) Up to 10 GB of space, and 500 GB monthly transfer*. Up to three yoursite.com emailaccounts.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page.STUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. APACHE | GEOFFSTRATTON.COM Ubuntu 16.04 Web Server with Apache, PHP, and MySQL. Ubuntu 16.04 LTS has been out for a little while now, and its standard repos offer some nice enhancements over Ubuntu 14: Apache 2.4.18, PHP 7, and MySQL 5.7.12 The process for creating a basic LAMP web server is also streamlined, as a couple of bugs that plagued Ubuntu 14.04 are noweliminated.
WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: TRUECRYPT ON FEDORA LINUX Update 2015: Support and development of TrueCrypt have, of course, now ended, although an independent audit of TrueCrypt revealed no severe security problems.I'd suggest the TrueCrypt fork VeraCrypt as a replacement.. Note: I'm using Fedora 19 here. RECOMPILE NGINX INSTALLED WITH APT Update, August 2016: This article refers to Nginx 1.5.x. As of version 1.9.11, Nginx supports loading modules dynamically at runtime, so I'd suggest that route instead. If you still want to recompile Nginx, an updated tutorial for recompiling Nginx 1.9+ installed with Apt on Ubuntu 16.04 is available here.Meanwhile, an updated tutorial for compiling Nginx 1.9+ from source on Ubuntu 16.04 ADDING AN SSL CERTIFICATE Install Your SSL Certificate. Put the file in your certificates directory on your web server (e.g., /etc/ssl/certs), and chown/chmod to root:root 644. If your certificate is an intermediate certificate (likely), your issuer will also give you a file like mysite_com.ca-bundle that NGINX: REDIRECT HTTP AND NON-WWW TO HTTPS WWW How to configure an Nginx web site on Ubuntu 16 to forward HTTP www/non-www and HTTPS non-www to HTTPS www. Includes info on setting up free certificates!GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server EXPAND A HARD DISK WITH UBUNTU LVM Expand a Hard Disk with Ubuntu LVM. So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager. (link is external) (LVM) in Ubuntu, so the process isn't too bad. UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review beforeSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type. C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server EXPAND A HARD DISK WITH UBUNTU LVM Expand a Hard Disk with Ubuntu LVM. So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager. (link is external) (LVM) in Ubuntu, so the process isn't too bad. UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQL Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review beforeSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. VB.NET: BASIC JSON AND LINQ This uses simple LINQ but the Newstonsoft LINQ to JSON API. (link is external) will be more efficient in many cases. Mysafeinfo.com returns its data as a list of JSON objects -- -- so on line 32 we tell the DeserializeObject () (link is external) method that the objects to deserialize are embedded within another data type. C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
HOSTING BY GEOFFSTRATTON.COM Managed hosting and support, as needed. No setup fees or hidden charges. Free assisted setup and transfer from your current host. Free SSL certificates from letsencrypt.org. (link is external) Up to 10 GB of space, and 500 GB monthly transfer*. Up to three yoursite.com emailaccounts.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page.STUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. APACHE | GEOFFSTRATTON.COM Ubuntu 16.04 Web Server with Apache, PHP, and MySQL. Ubuntu 16.04 LTS has been out for a little while now, and its standard repos offer some nice enhancements over Ubuntu 14: Apache 2.4.18, PHP 7, and MySQL 5.7.12 The process for creating a basic LAMP web server is also streamlined, as a couple of bugs that plagued Ubuntu 14.04 are noweliminated.
WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: TRUECRYPT ON FEDORA LINUX Update 2015: Support and development of TrueCrypt have, of course, now ended, although an independent audit of TrueCrypt revealed no severe security problems.I'd suggest the TrueCrypt fork VeraCrypt as a replacement.. Note: I'm using Fedora 19 here. RECOMPILE NGINX INSTALLED WITH APT Update, August 2016: This article refers to Nginx 1.5.x. As of version 1.9.11, Nginx supports loading modules dynamically at runtime, so I'd suggest that route instead. If you still want to recompile Nginx, an updated tutorial for recompiling Nginx 1.9+ installed with Apt on Ubuntu 16.04 is available here.Meanwhile, an updated tutorial for compiling Nginx 1.9+ from source on Ubuntu 16.04 ADDING AN SSL CERTIFICATE Install Your SSL Certificate. Put the file in your certificates directory on your web server (e.g., /etc/ssl/certs), and chown/chmod to root:root 644. If your certificate is an intermediate certificate (likely), your issuer will also give you a file like mysite_com.ca-bundle that NGINX: REDIRECT HTTP AND NON-WWW TO HTTPS WWW How to configure an Nginx web site on Ubuntu 16 to forward HTTP www/non-www and HTTPS non-www to HTTPS www. Includes info on setting up free certificates!GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server EXPAND A HARD DISK WITH UBUNTU LVM So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager (LVM) in Ubuntu, so the process isn't too bad. (This example uses Ubuntu Server 10.04, but it works for 12.04, 14.04, and 16.04 aswell.)
UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQLPOSTFIX DOVECOT MYSQLUBUNTU INSTALL POSTFIX DOVECOTPOSTFIX MYSQLPOSTFIX DOVECOT IMAPPOSTFIX DOVECOT LDAPSETUP ROUNDCUBE POSTFIX DOVECOT Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review beforeSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side.PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server EXPAND A HARD DISK WITH UBUNTU LVM So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager (LVM) in Ubuntu, so the process isn't too bad. (This example uses Ubuntu Server 10.04, but it works for 12.04, 14.04, and 16.04 aswell.)
UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQLPOSTFIX DOVECOT MYSQLUBUNTU INSTALL POSTFIX DOVECOTPOSTFIX MYSQLPOSTFIX DOVECOT IMAPPOSTFIX DOVECOT LDAPSETUP ROUNDCUBE POSTFIX DOVECOT Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review beforeSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side.PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page.STUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. LINKS | GEOFFSTRATTON.COM DailyTech Eclipse Foundation Fedora Core The Grymoire HeidiSQL Jakob Nielsen's Alertbox John C. Dvorak Just Great Software LINUX | GEOFFSTRATTON.COM logwatch on Ubuntu 16. logwatch is a utility that helps you track. (link is external) your system's log files, and it can monitor them on a schedule and email you a daily summary of its findings. Like most security packages, logwatch itself isn't a magic bullet, butWGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
NGINX + PHP-FPM + PHP CACHE + SSL + VARNISH + DRUPAL 9) Get Drupal set up for SSL and Varnish: Install the Varnish module. (link is external) , then configure it through the Drupal admin panel. Ensure "3.x" is selected as the Varnish version and copy in the contents of /etc/varnish/secret as the "Control Key". Then edit the settings.php for your Drupal site. ADDING AN SSL CERTIFICATE Install Your SSL Certificate. Put the file in your certificates directory on your web server (e.g., /etc/ssl/certs), and chown/chmod to root:root 644. If your certificate is an intermediate certificate (likely), your issuer will also give you a file like mysite_com.ca-bundle that C#.NET: DOC/DOCX TO SIMPLE HTML CONVERTER The operation is linear: you take a Word .doc or .docx file, drag it onto a Windows form, the program invokes Word, converts your .doc/.docx to the cleanest HTML that Word can manage, parses the HTML using Html Agility Pack, and finally spits out a simple HTML document in Notepad that you can copy-paste into whatever web system you'reusing.
M-DISC: LONG-TERM OPTICAL STORAGE? M-DISCs are expensive, going for around $3 US each for the 4.7GB DVD discs, and they aren't compatible with all players. As with other Blu-Ray formats, M-DISCs are available in 25, 50, and 100GB versions as well. Allegedly, the U.S. Department of Defense Naval Air Warfare Weapons Division facility at China Lake, California tested a number of UBUNTU 16 MAIL SERVER My previous instructions for setting up a Postfix/Dovecot/MySQL mail server on Ubuntu 12.04 work mostly as-is for Ubuntu 16.04, but there are a couple of gotchas. These workarounds are necessary due to some different locations of utilities on the filesystem and some changes toGEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server EXPAND A HARD DISK WITH UBUNTU LVM So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager (LVM) in Ubuntu, so the process isn't too bad. (This example uses Ubuntu Server 10.04, but it works for 12.04, 14.04, and 16.04 aswell.)
UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQLPOSTFIX DOVECOT MYSQLUBUNTU INSTALL POSTFIX DOVECOTPOSTFIX MYSQLPOSTFIX DOVECOT IMAPPOSTFIX DOVECOT LDAPSETUP ROUNDCUBE POSTFIX DOVECOT Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review beforeSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side.PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page. REMOVE THE DRM FROM AMAZON KINDLE BOOKS Start up Calibre and go to Preferences -> Advanced -> Plugins. ( Click images for full size.) Click the "Load plugin from file" button. Select the "DeDRM_plugin.zip" file you placed in step 2 and click "Open". Calibre will add this plugin under its "File type plugins" list in the Preferences window. SPAMASSASSIN ON UBUNTU Note: This article pertains to Ubuntu 12, and it applies to versions of Ubuntu or Debian that use init rather than systemd. To install SpamAssassin on Ubuntu 15+, see the instructions here. In our previous installment, we set up a Postfix and Dovecot mail server with virtual domains and users on Ubuntu 12.04.It works really well. It works so well that everybody wants to use our new mail server EXPAND A HARD DISK WITH UBUNTU LVM So you're running an Ubuntu server in a virtual machine, and now you need to add 20 GB of disk space to root (/). There are quite a few ways to do this, and fortunately you're running the Logical Volume Manager (LVM) in Ubuntu, so the process isn't too bad. (This example uses Ubuntu Server 10.04, but it works for 12.04, 14.04, and 16.04 aswell.)
UBUNTU MAIL SERVER WITH POSTFIX, DOVECOT, AND MYSQLPOSTFIX DOVECOT MYSQLUBUNTU INSTALL POSTFIX DOVECOTPOSTFIX MYSQLPOSTFIX DOVECOT IMAPPOSTFIX DOVECOT LDAPSETUP ROUNDCUBE POSTFIX DOVECOT Update November 2020: If you're on Ubuntu 20.04, these instructions still mostly work as written. There is one update of note, though, related to Dovecot and SSL. This is indicated below for Dovecot's 10-ssl.conf file.-----Update November 2016: If you're on Ubuntu 16.04, these instructions will mostly work as written. However, there are a few minor changes that you might want to review beforeSTUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side.PYTHON LDAP LOOKUPS
Python LDAP Lookups. An example of a Python LDAP lookup, Python 2.x. This one uses the on-campus LDAP service at UC Davis, so just change the LDAPServer and searchBase for another LDAP server. Or you can print the results a little more nicely: C#.NET: COUNTDOWN TIMER The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down while displaying the remaining time, and then beeps at you when it reaches 00:00. It still works in Windows 7 x64 using the .NET 4.6 framework. The following code would go in Form1.cs or equivalent.WGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
USE FAIL2BAN TO BLOCK BOT ATTACKS How to use the Fail2ban monitoring utility for blocking the bot attacks that clutter up your server logs. Uses Ubuntu but apply toother distros.
GEOFFSTRATTON.COM
Welcome. This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center. (link is external) in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m. There's a little more about me on the About page.STUPID SQL TRICKS
4. 5. SELECT column1, column2. FROM table1. JOIN table2. ON table1.column3=table2.column3. ORDER BY table1.column1. table1 is considered the "left" table, while table2 is the "right" table. Think of them as two pages in a book, side by side. LINKS | GEOFFSTRATTON.COM DailyTech Eclipse Foundation Fedora Core The Grymoire HeidiSQL Jakob Nielsen's Alertbox John C. Dvorak Just Great Software LINUX | GEOFFSTRATTON.COM logwatch on Ubuntu 16. logwatch is a utility that helps you track. (link is external) your system's log files, and it can monitor them on a schedule and email you a daily summary of its findings. Like most security packages, logwatch itself isn't a magic bullet, butWGET AND CURL
wget. wget is a GNU utility for retrieving files over the web using the popular internet transfer protocols (HTTP, HTTPS, FTP). It's useful either for obtaining individual files or mirroring entire web sites, as it can convert absolute links in downloaded documents torelative links.
NGINX + PHP-FPM + PHP CACHE + SSL + VARNISH + DRUPAL 9) Get Drupal set up for SSL and Varnish: Install the Varnish module. (link is external) , then configure it through the Drupal admin panel. Ensure "3.x" is selected as the Varnish version and copy in the contents of /etc/varnish/secret as the "Control Key". Then edit the settings.php for your Drupal site. ADDING AN SSL CERTIFICATE Install Your SSL Certificate. Put the file in your certificates directory on your web server (e.g., /etc/ssl/certs), and chown/chmod to root:root 644. If your certificate is an intermediate certificate (likely), your issuer will also give you a file like mysite_com.ca-bundle that C#.NET: DOC/DOCX TO SIMPLE HTML CONVERTER The operation is linear: you take a Word .doc or .docx file, drag it onto a Windows form, the program invokes Word, converts your .doc/.docx to the cleanest HTML that Word can manage, parses the HTML using Html Agility Pack, and finally spits out a simple HTML document in Notepad that you can copy-paste into whatever web system you'reusing.
M-DISC: LONG-TERM OPTICAL STORAGE? M-DISCs are expensive, going for around $3 US each for the 4.7GB DVD discs, and they aren't compatible with all players. As with other Blu-Ray formats, M-DISCs are available in 25, 50, and 100GB versions as well. Allegedly, the U.S. Department of Defense Naval Air Warfare Weapons Division facility at China Lake, California tested a number of UBUNTU 16 MAIL SERVER My previous instructions for setting up a Postfix/Dovecot/MySQL mail server on Ubuntu 12.04 work mostly as-is for Ubuntu 16.04, but there are a couple of gotchas. These workarounds are necessary due to some different locations of utilities on the filesystem and some changes to Skip to main content GeoffStratton.com Tue, 29 Oct 2019 13:03:25 -0500* About/Contact
* Hosting
* Reading List
* Resume
* Links
* Commodities
SEARCH FORM
Search
WELCOME
0
This is the home server of Geoff Stratton. The server itself lives in Softlayer's DAL02/06 data center in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m . There's a little more about me onthe About page.
I use this place mostly as a personal knowledge base, although I keep it public in case anything useful emerges. All of this worked for me, but caveat emptor, and don't go handling snake-skin.
SOFTWARE DEVELOPMENT These are programs and scripts I've written over the years in various languages and frameworks. More general notes on development, databases, specific platforms and administration are in the "Linux/Unix" section below. I'll continue adding stuff here as I have time to clean it up and test it. Consider everything posted here to be covered by the GNU PublicLicense Version 3
. You should read
the whole license, but essentially it means you can do anything you want with the code, including bundle it up and sell it as a new application. The catch is that if you make and distribute a new app, you are required to make all the source code available for free toeveryone.
* C#(.NET): Globalization ; Doc/Docx to Simple HTML Converter ; CountDown Timer * Drupal: Module development tutorial ; Programmatically create a block ; A client/server data model using the Services module * JavaScript/jQuery: Reading progress meter ; Summarize table entries * Perl: File change notification ; XHTML validation cleanup ; Hyperlink relativizer * PHP: The Amazon Product Advertising API(Working example
); Database access with PDO ; List most recently changed files in adirectory
* Python: Webscraping with BeautifulSoup ; Statistics calculators; XML-RPC requests
; SMTP ; LDAP
* Shell (Bash): Quick WordPress Installer ; Make a web site index * SQL: Stupid SQL tricks * Visual Basic (VB.NET): Free RSS Reader; JSON with LINQ
* WordPress: Plugin development tutorialLINUX/UNIX STUFF
* CentOS: CentOS 7 kickstart script * Databases: Tuning MySQL and PostgreSQL; Reset the MySQL root password ; MySQL backups * Debian: Quick setup notes * Drupal: Ubuntu 16 with Drupal 7 and Varnish 4 ; Ubuntu 16 web server with Nginx, MariaDB, Redis, and Drupal 8; Installing
Drush 8 ; Ubuntu 16 web server with Nginx, MariaDB, Redis, and Drupal 7; Using
jQuery UI with Drupal 7 ; Drupal SEO; Installation and
performance ; Recipe for Drupal + Nginx + PHP-FPM + PHP Opcode Cache + Varnish + SSL; Installing
and using Drush ; Generic notes on development ; Querying databases from the PHP filter ; SyntaxHighlighter with CKEditor and TinyMCE; Webform fixes ; The Drupal 7 file description field ; Customize the search form * Email: Set up a Postfix/Dovecot email server on Ubuntu; SpamAssassin on
Ubuntu 12 and SpamAssassin on Ubuntu 16 ; Webmail (Roundcube);
Webmail (SquirrelMail) ; Ubuntu 16.04 MailServer Updates
* Fedora: TrueCrypt ; Fedora 20 installation problems * File searching and manipulation: Search and replace ; grep ; sed and awk * MediaWiki: General notes * Networking: tcpdump ; mtr ; Wireshark; nmap ; wget and curl ; DNSSEC; LOC records ; Online analytics tools * OTRS: Installation of OTRS 5 on Ubuntu 16.04 ; Installation on Ubuntu ; Migration from Ubuntu to CentOS * Performance monitoring: Perfmon tools * Security: OSSEC ; rkhunter on Ubuntu ; Using ufw ; Stop xmlrpc.php attacks ; Fail2ban for blocking bot attacks; logwatch ;
Samhain; Snort
* Storage/disk: Expanding a disk with Ubuntu LVM ; SATA disk diagnosis ; SMART disk diagnosis ; RAID levels ; Securely erase ahard disk
* Web Servers: Free SSL certs with Let's Encrypt;
Install Nginx 1.9+ from Source on Ubuntu 16 ; Recompile Nginx (1.9+) Installed with Apt On Ubuntu 16.04;
Ubuntu 16 with Apache, PHP-FPM, and MySQL ; Web Server Performance 2016 ; Apache multi-processing modules ; Swap Apache prefork for worker ; Install APC; Varnish and Pound
; Recompile Nginx installed with apt ; Ubuntu 14 with Apache, PHP-FPM and MySQL ; Adding an SSLcertificate (Nginx)
;
Adding an SSL certificate (Apache) ; Apache 2 Fixes for the SSL Labs Test ; Install theZend Opcode Cache
* WordPress: Installation and performance ; Optimizing Nginx and WP Super Cache ; Installwp-cli
* Zope/Plone: Migration from CentOS to UbuntuOTHER PROJECTS?
* M-DISC optical storage? ; Remove the DRM from Kindle books I participate in the Amazon Associates program. Making your Amazon purchases through my affiliate links supports this site at no additional cost to you: Shop Related ProductsAds by Amazon
×
Thank you!
This will help us improve your ad experience. We will try not to showyou such ads again.
Report a problem
This item is...
Not relevant
Inappropriate / OffensiveDisplayed poorly
Other
Add Comments (Max 320 characters) Drupal 8 SEO: The Visual, Step-By-Step Guide to Drupal Search Engi…$29.95$29.95
Bestseller
(12)
DEAL OF THE DAY
ENDS IN
×
Thank you!
This will help us improve your ad experience. We will try not to showyou such ads again.
Report a problem
This item is...
Not relevant
Inappropriate / OffensiveDisplayed poorly
Other
Add Comments (Max 320 characters)jQuery UI Cookbook
$18.49
Bestseller
(6)
DEAL OF THE DAY
ENDS IN
×
Thank you!
This will help us improve your ad experience. We will try not to showyou such ads again.
Report a problem
This item is...
Not relevant
Inappropriate / OffensiveDisplayed poorly
Other
Add Comments (Max 320 characters) Nginx HTTP Server - Fourth Edition: Harness the power of Nginx tomake t…
$44.99$44.99
Bestseller
(2)
DEAL OF THE DAY
ENDS IN
×
Thank you!
This will help us improve your ad experience. We will try not to showyou such ads again.
Report a problem
This item is...
Not relevant
Inappropriate / OffensiveDisplayed poorly
Other
Add Comments (Max 320 characters) Professional WordPress Plugin Development$23.99
Bestseller
(35)
DEAL OF THE DAY
ENDS IN
×
Thank you!
This will help us improve your ad experience. We will try not to showyou such ads again.
Report a problem
This item is...
Not relevant
Inappropriate / OffensiveDisplayed poorly
Other
Add Comments (Max 320 characters) Bulletproof SSL and TLS: Understanding and Deploying SSL/…$53.00$60.00
Bestseller
(44)
DEAL OF THE DAY
ENDS IN
×
Thank you!
This will help us improve your ad experience. We will try not to showyou such ads again.
Report a problem
This item is...
Not relevant
Inappropriate / OffensiveDisplayed poorly
Other
Add Comments (Max 320 characters) Nmap Network Scanning: The Official Nmap Project Guide to NetworkD…
$37.78$49.95
Bestseller
(90)
DEAL OF THE DAY
ENDS IN
×
Thank you!
This will help us improve your ad experience. We will try not to showyou such ads again.
Report a problem
This item is...
Not relevant
Inappropriate / OffensiveDisplayed poorly
Other
Add Comments (Max 320 characters) jQuery, jQuery UI, and jQuery Mobile: Recipes and Examples(Developer'…
$17.27
Bestseller
(17)
DEAL OF THE DAY
ENDS IN
×
Thank you!
This will help us improve your ad experience. We will try not to showyou such ads again.
Report a problem
This item is...
Not relevant
Inappropriate / OffensiveDisplayed poorly
Other
Add Comments (Max 320 characters) Using Drupal, 2nd Edition$31.84$44.99
Bestseller
(32)
DEAL OF THE DAY
ENDS IN
Ads by Amazon
SUPPORT THIS SITE
Did you find something here useful? Please consider putting a tip in my tip jar. Many thanks!DONATE VIA PAYPAL:
Making your Amazon.com purchases through my affiliate link helps to support this site at no added cost to you. Looking for free, managed web hosting? Try my hosting service.
Looking for affordable, unmanaged hosting? Try GreenGeeks web hostingfor only $3.95
per month.
Some additional donation options . Many thanks!ADSENSE
RECENT CONTENT
*
Commodities Prices
Post date: 11/17/2018 - 18:48*
Nginx: Redirect All HTTP and HTTPS non-WWW to HTTPS WWW Post date: 07/02/2018 - 15:12*
Free SSL Certificates with Let's Encrypt (Ubuntu 16) Post date: 04/18/2018 - 13:35*
2017 Completed Books List Post date: 01/19/2018 - 17:11*
Install Roundcube on Ubuntu 16 with Nginx and PHP-FPM Post date: 07/13/2017 - 09:13 Last updated 11:50 CDT, 12 September 2019 All contents © 2019 GeoffStratton.com unless otherwise indicated. Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 from 104.207.149.158.__
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0