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"]}
| #!/bin/bash | |
| ## Create the response FIFO | |
| rm -f response | |
| mkfifo response | |
| function handle_GET_home() { | |
| RESPONSE=$(cat home.html | \ | |
| sed "s/{{$COOKIE_NAME}}/$COOKIE_VALUE/") | |
| } |
| from bs4 import BeautifulSoup,SoupStrainer | |
| import urllib.request | |
| import colorama,re,queue,threading | |
| from colorama import Fore | |
| from urllib.parse import * | |
| class check_link(): | |
| def __init__(self,address): | |
| self.address=address | |
| def check(self,address): |
| MITSUBISHI:whois.nic.gmo | |
| XN--3BST00M:whois.gtld.knet.cn | |
| PW:whois.nic.pw | |
| MUSEUM:whois.nic.museum | |
| AMERICANFAMILY:whois.nic.americanfamily | |
| RMIT:whois.nic.rmit | |
| MOTORCYCLES:whois.afilias-srs.net | |
| PROPERTIES:whois.nic.properties | |
| STUDY:whois.nic.study | |
| LY:whois.nic.ly |
| === Plugin Name === | |
| Contributors: (this should be a list of wordpress.org userid's) | |
| Donate link: https://example.com/ | |
| Tags: comments, spam | |
| Requires at least: 4.8 | |
| Tested up to: 5.3 | |
| Stable tag: 5.2 | |
| Requires PHP: 5.2.4 | |
| License: GPLv2 or later | |
| License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| /*global self, document, DOMException */ | |
| /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ | |
| // Full polyfill for browsers with no classList support | |
| if (!("classList" in document.createElement("_"))) { | |
| (function (view) { | |
| "use strict"; |
| <!DOCTYPE html> | |
| <head> | |
| <meta property="og:image" content="https://www.airlineratings.com/wp-content/uploads/uploads/singapore_airlines_logo-200x.jpg" /> | |
| <meta property="og:title" content="Singapore Airlines is giving away Free tickets to celebrate its 70th Anniversary" /> | |
| <script type="text/javascript" language="javascript"> | |
| var areYouReallySure = false; | |
| var internalLink = false; | |
| if (typeof window.orientation == 'undefined' && screen.width >= 1000){window.location.href = 'http://google.com'; areYouReallySure=true;} |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Origin: https://gist.github.com/Bluscream/c0f794186d0236e072b1826987c9390e | |
| from json import dumps, loads | |
| from requests import request | |
| from random import choice | |
| from socket import socket, AF_INET, SOCK_STREAM | |
| domain = "" # Your tld | |
| zone_id = "" # Your zoneid |
| <h4>Use at your own risk. Some of these commands remove data and/or terminate processes.</h4> | |
| <h1><b>Load | |
| </b></h1> | |
| <strong>WordPress attacks</strong> | |
| <code>egrep -c '(wp-comments-post.php|wp-login.php|xmlrpc.php)' /usr/local/apache/domlogs/* |grep -v "_log" |sort -t: -nr -k 2 |head -5 |tee /tmp/delete_check |cut -d'/' -f6; for domlog in $(cut -d':' -f1 /tmp/delete_check); do echo; echo $domlog; echo; echo wp-login.php :: $(grep -c wp-login.php $domlog); echo; grep wp-login.php $domlog | cut -d' ' -f1|egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |sort |uniq -c |sort -nr | head; echo; echo xmlrpc.php :: $(grep -c xmlrpc.php $domlog); echo; grep xmlrpc.php $domlog |cut -d' ' -f1 |egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |sort |uniq -c |sort -nr | head; echo; echo wp-comments-post.php :: $(grep -c wp-comments-post.php $domlog); echo; grep wp-comments-post.php $domlog |cut -d' ' -f1 |egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |sort |uniq -c |sort -nr | head; echo; done |
| #! /bin/bash | |
| # | |
| # Script to deploy from Github to WordPress.org Plugin Repository | |
| # A modification of a number of different sources: | |
| # @link https://github.com/deanc/wordpress-plugin-git-svn | |
| # @link https://github.com/GaryJones/wordpress-plugin-svn-deploy | |
| # @link https://github.com/thenbrent/multisite-user-management/blob/master/deploy.sh | |
| # | |
| # Accompanying Tutorial Here: | |
| # @link https://ericbusch.net/?p=106 |
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"]}