国内从 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+
<?php | |
/** | |
* The public-specific functionality of the plugin. | |
* | |
* @link http://wordpress.org/plugins/rate-my-post/ | |
* @since 2.0.0 | |
* | |
* @package Rate_My_Post | |
* @subpackage Rate_My_Post/public |
#!/usr/bin/env bash | |
# checck if pidof exists | |
PIDOF="$(which pidof)" | |
# and if not - install it | |
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof | |
# find app in default paths | |
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS |
#!/usr/bin/env sh | |
# Copyright: see README and LICENSE under the project root directory. | |
# Author: @Leedehai | |
# | |
# File: ncore.sh | |
# --------------------------- | |
# This is a handy script to get CPU core number on Linux and Darwin (macOS). | |
# Logical CPU cores |
The following regular expressions are crafted to match some commonly used cryptocurrency wallet address types. This document details the Regex components and pattern tests to match Ethereum, Bitcoin, Dash and Monero addresses.
/^0x[a-fA-F0-9]{40}$/g
Expose the Content-Disposition
header using the Access-Control-Expose-Headers
header and set
the Content-Disposition
header as you would usually.
Access-Control-Expose-Headers: Content-Disposition
Content-Disposition: attachment; filename="example-file.csv"
""" | |
Password brute-force algorithm. | |
List of most probable passwords and english names can be found, respectively, at: | |
- https://github.com/danielmiessler/SecLists/blob/master/Passwords/probable-v2-top12000.txt | |
- https://github.com/dominictarr/random-name/blob/master/middle-names.txt | |
Author: Raphael Vallat | |
Date: May 2018 | |
Python 3 |
/* Nintendo sysmodules */ | |
0100000000000000 fs | |
0100000000000001 ldr | |
0100000000000002 ncm | |
0100000000000003 pm | |
0100000000000004 sm | |
0100000000000005 boot | |
0100000000000006 usb | |
0100000000000007 tma.stub/htc.stub | |
0100000000000008 boot2 |