Skip to content

Instantly share code, notes, and snippets.

View gongzili456's full-sized avatar
🎉
Just For Fun

Rory gongzili456

🎉
Just For Fun
View GitHub Profile
sudo xattr -rd com.apple.quarantine /Applications/[LockedApp].app
@gongzili456
gongzili456 / gist:0125a6d976f8336a949e8c00365db82e
Last active March 19, 2019 06:28
init-node-env-on-ubuntu.sh
#/bash/sh
# 1. install node.js
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
# 2. install nginx
sudo apt-get install nginx -y
# 3. install git
#/bash/sh
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt -y install docker-ce
#!/bin/bash
# Ubuntu 18.04 系统环境
# 1. 安装并开启 BBR 拥塞控制算法
# 2. 安装 Docker CE
# 3. 安装 certbot
# 4. 安装 gost
# 5. 配置自动任务
update_core(){
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx
namespace: default
labels:
app: my-nginx
spec:
selector:
matchLabels:
# macOS Global Key Bindings
## Ctrl +
- F: Move forward letter
- B: Move backward letter
- P: Move previous line
- N: Move next line
- A: Move ahead of line
- E: Move end of line
- T: Transpose letter