国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| ;; --------------------------------------------------------------------- | |
| ;; Tag minor mode | |
| ;; Copyright (C) 2020 Nicolas .P Rougier | |
| ;; | |
| ;; This program is free software; you can redistribute it and/or modify | |
| ;; it under the terms of the GNU General Public License as published by | |
| ;; the Free Software Foundation, either version 3 of the License, or | |
| ;; (at your option) any later version. | |
| ;; | |
| ;; This program is distributed in the hope that it will be useful, |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| // v1.1.2 | |
| var https = require('https'); | |
| var zlib = require('zlib'); | |
| var crypto = require('crypto'); | |
| var endpoint = '<elasticsearch-endpoint-in-your-vpc>'; // use elasticsearch in VPC | |
| // Set this to true if you want to debug why data isn't making it to | |
| // your Elasticsearch cluster. This will enable logging of failed items | |
| // to CloudWatch Logs. |
Remove SentinelOne agent from Mac
/Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility to open Disk Utilitychroot /Volumes/Macintosh\ HDLoop through all EC2 instances (excluding terminated and spot) and enable termination protection
for I in $(aws ec2 describe-instances --query \
'Reservations[].Instances[?(InstanceLifecycle!=`spot` && InstanceState!=`terminated`)].[InstanceId]' \
--output text); do
aws ec2 modify-instance-attribute --disable-api-termination --instance-id $I;
done| -- get the file path from the finder | |
| tell application "Finder" to set theItems to selection | |
| set thePaths to "" | |
| repeat with i in theItems | |
| set thisItem to POSIX path of (i as alias) | |
| set thePaths to thePaths & thisItem & return | |
| end repeat | |
| set filePath to thePaths | |
| -- remove \n of the file path |
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| server_name yourdomain | |
| ssl_certificate /etc/ssl/localcerts/yourdomain.crt; | |
| ssl_certificate_key /etc/ssl/localcerts/yourdomain.key; | |
| ssl_ecdh_curve prime256v1; | |
| ssl_session_cache builtin:1000 shared:SSL:10m; |
In your command-line run the following commands:
brew doctorbrew update| #!/bin/sh | |
| apt update && apt install wget htop curl nano ssh -y | |
| wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb | |
| dpkg -i zabbix-release_3.2-1+xenial_all.deb && apt-get update | |
| export DEBIAN_FRONTEND=noninteractive | |
| apt install zabbix-server-mysql zabbix-frontend-php -y |
Config Apache with /etc/apache2/conf-available/le.conf:
Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
<Directory "/var/www/html/">
AllowOverride None
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>