See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.jsonfile in/etc/docker:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
See this issue.
Docker best practise to Control and configure Docker with systemd.
Create daemon.json file in /etc/docker:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
| #!/bin/bash | |
| # All users from all domains from all accounts in /home | |
| MAILDIRS=$(find /home/*/mail/ -type d) | |
| # Only .Trash .Junk .Spam folders | |
| INBOXFOLDERS=(.Trash .Junk .spam) | |
| for basedir in $MAILDIRS; do | |
| for ((i = 0; i < ${#INBOXFOLDERS[*]}; i++)); do | |
| # Only cur and new folders | |
| for dir in cur new; do | |
| # Only if the full path to the folder exists |
| #!/bin/bash | |
| # Copyright (C) 2016 Arash Shams <https://github.com/Ara4Sh>. | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| from passlib.hash import pbkdf2_sha256 | |
| import getpass | |
| import mysql.connector | |
| def enc_pass(pwd): | |
| hash=pbkdf2_sha256.encrypt(pwd,rounds=200,salt_size=16) | |
| return hash | |
| def con_database(pwd): | |
| cnx=mysql.connector.connect(user='*****',password='*****',host='*******',database='******') | |
| cursor=cnx.cursor() | |
| try: |
| prestashop - 500 error | |
| =================== | |
| https://www.prestashop.com/forums/topic/421126-request-exceeded-the-limit-of-10-internal-redirects-due-to-probable-configuration-error/ | |
| =================== | |
| CloudFlare installation: | |
| ========== | |
| http://www.cpanelkb.net/cloudflare-plugin-install/ | |
| http://crybit.com/install-cloudflare-plugin-on-cpanel/ | |
| http://stackoverflow.com/questions/23860877/how-to-install-cloudflare-on-cpanel-servers |
Print a count of the messages in the queue:
exim -bpc
How to resend frozen messages in exim4 queue
exim -bp | grep frozen | awk '{print $3}' | xargs exim -v -M
Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
| ls -lhac |
| <?php | |
| function whois_query($domain) { | |
| // fix the domain name: | |
| $domain = strtolower(trim($domain)); | |
| $domain = preg_replace('/^http:\/\//i', '', $domain); | |
| $domain = preg_replace('/^www\./i', '', $domain); | |
| $domain = explode('/', $domain); | |
| $domain = trim($domain[0]); |