国内从 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+
/* This Userscript helps you preserving websites by automatically saving pages you visit, including their linked subpages and other linked URLs, into Internet Archive's Wayback Machine. | |
Run this UserScript using the following tools: | |
Desktop browsers: | |
* GreaseMonkey for Mozilla Firefox: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ | |
* TamperMonkey for Google Chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo | |
* TamperMonkey for Chromium-Opera Browser: https://addons.opera.com/en/extensions/details/tampermonkey-beta/ |
from enum import IntEnum | |
class Exchange(IntEnum): | |
Binance = 0 | |
Bybit = 1 | |
Okx = 2 | |
class Currency(IntEnum): | |
BTC = 0 | |
ETH = 0 |
# Backup and restore UBI partitions and volumes | |
# Tested on Arris RAC2V1A router | |
BusyBox v1.22.1 (2018-03-01 14:46:14 CST) built-in shell (ash) | |
Enter 'help' for a list of built-in commands. | |
MM NM MMMMMMM M M | |
$MMMMM MMMMM MMMMMMMMMMM MMM MMM | |
MMMMMMMM MM MMMMM. MMMMM:MMMMMM: MMMM MMMMM |
// ==UserScript== | |
// @name 知识星球视频增强 | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-21 | |
// @description 知识星球视频,通过键盘控制: 前进 后退 暂停 开始 全屏 | |
// @author ohownew | |
// @match https://wx.zsxq.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=zsxq.com | |
// @grant none | |
// ==/UserScript== |
FROM debian:latest | |
# Install basic dev packages | |
RUN apt-get clean && apt-get update && apt-get -y install --no-install-recommends \ | |
apt-utils \ | |
openssh-client \ | |
git \ | |
gnupg2 \ | |
dirmngr \ | |
iproute2 \ |
$elevated = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) | |
function Show-Menu { | |
Clear-Host | |
Write-Host "======================================================" | |
Write-Host "================ Give Back Control ================" | |
Write-Host "======================================================" | |
if($elevated -eq $true){ | |
Write-Host "Local Admin: " -ForegroundColor white -NoNewline; Write-Host $elevated -ForegroundColor Green | |
Write-Host "We have superpowers. Ready to continue." |
Located in alphabetical order (not prefer)
C
ab
), also designed as a more modern replacement, written in C
golang
)Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |