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"]}
2023.8.28 | |
据多名网友回复,此方法已失效。 | |
最新解决办法请参考此贴:[v2ex: 请问 github 的两步验证(two-factor authentication)大家是怎么做的?](https://www.v2ex.com/t/967533) | |
https://www.v2ex.com/t/967533 | |
--- |
#!/usr/bin/env bash | |
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\ | |
function register_clang_version { | |
local version=$1 | |
local priority=$2 | |
update-alternatives \ | |
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \ |
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"]}
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
#!/usr/bin/env zsh | |
# | |
# Auto activate and deactivate a virtualenv environment | |
# | |
# Usage: | |
# | |
# Add the following code to your zshrc file. If you are using bash, change the header to bash and put the following code to your bashrc. | |
# ``` | |
# source /dir/to/auto-virtualenv | |
# ``` |
#!/bin/bash | |
LOC_DIR="/etc/nginx" | |
if [ ! -f $LOC_DIR/ws.locations ]; then | |
echo """ | |
location /notifications/hub { | |
proxy_pass http://localhost:$3; | |
proxy_set_header Upgrade \$http_upgrade; | |
proxy_set_header Connection "upgrade"; |
Install VMWare Workstation PRO 17 (Read it right. PRO!) | |
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it. | |
Sub to me on youtube pls - PurpleVibe32 | |
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me. | |
--- | |
This gist can get off at any time. | |
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT. | |
*If you have a problem comment and people will try to help you! | |
*No virus |
#!/usr/bin/env python3 | |
############################################################################### | |
# AIWEN Tech IPv4 Geo-Info API Script # | |
# Only Support District-Level Query # | |
############################################################################### | |
# Requires Python 3.7+ due to the requirements of dnspython. # | |
# Tested on Debian 12. # | |
# # | |
# Use -h or --help option to get instructions. # | |
# Run the following command to install dependencies: # |