$ sudo install -o redis -g redis -d /var/lib/redis2
$ sudo cp -p /etc/redis/redis.conf /etc/redis/redis2.conf
| Accessing docker container private network easily from your boot2docker host | |
| ----- | |
| (from http://ispyker.blogspot.com/2014/04/accessing-docker-container-private.html) | |
| add a Host-only adapter in VirtualBox | |
| OSX: | |
| # show route table | |
| netstat -nr |
| # Optimized my.cnf configuration for MySQL/MariaSQL | |
| # | |
| # by Fotis Evangelou, developer of Engintron (engintron.com) | |
| # | |
| # ~ Updated January 2020 ~ | |
| # | |
| # | |
| # The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores. | |
| # If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
| # |
| const puppeteer = require('puppeteer'); | |
| const request = require('request-promise-native'); | |
| const poll = require('promise-poller').default; | |
| const siteDetails = { | |
| sitekey: '6LeTnxkTAAAAAN9QEuDZRpn90WwKk_R1TRW_g-JC', | |
| pageurl: 'https://old.reddit.com/login' | |
| } | |
| const getUsername = require('./get-username'); |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |