国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
Ubuntu 16.04+、Debian 8+、CentOS 7+
docker run \ | |
--name {{printf "%q" .Name}} \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- if .Runtime}} |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import urllib | |
import urllib2 | |
import re | |
import socket | |
import os | |
import time | |
import random | |
import requests |
<?php | |
ini_set('display_errors',true); | |
error_reporting(E_ALL ^ E_NOTICE); | |
$obj = new HtmlImporter(); | |
$obj->run(); | |
class HtmlImporter { |
# -*- coding: UTF-8 -*- | |
import XenAPI | |
import os | |
class XenController(): | |
def __init__(self, URL, UserName, Password): | |
self.session = XenAPI.Session(URL) | |
self.session.xenapi.login_with_password(UserName, Password) |
<?php | |
define("DOMAIN_NAME", 'mydomain.com'); | |
$dnspod_header = "主机|类型|线路|记录值|MX优先级|TTL|备注\n"; | |
$dnspod_content = ""; | |
$xinnet_html = file_get_contents("o.txt"); | |
preg_match('/<!-- ADDRESS RECORDS -->([\s\S]+)tbccname/',$xinnet_html,$ret); |
<html> | |
<body> | |
<!-- Add jQuery library --> | |
<script type="text/javascript" src="http://cdn.staticfile.org/jquery/2.0.3/jquery.min.js"></script> | |
<!-- Add mousewheel plugin (this is optional) --> | |
<!-- | |
<script type="text/javascript" src="http://cdn.staticfile.org/jquery-mousewheel/3.1.3/jquery.mousewheel.min.js"></script> | |
<!-- Add fancyBox --> | |
<link rel="stylesheet" href="http://cdn.staticfile.org/fancybox/2.1.4/jquery.fancybox.min.css" type="text/css" media="screen" /> | |
<script type="text/javascript" src="http://cdn.staticfile.org/fancybox/2.1.4/jquery.fancybox.min.js"></script> |
grep "use shop" /var/lib/mysql/slow.log | awk '{print $2}' | awk -F\; '{print $1}' | sort | uniq -c | sort -nr |
<?php | |
/* | |
PHP forked daemon | |
Standalone PHP binary must be compiled with --enable-sockets and --enable-pcntl | |
Dave M. -2002 | |
Online Services USA | |
*/ | |
define(DEBUG,true); | |
require dirname(__FILE__)."/../../config/config.php"; |