Requires
- aws-cli - https://aws.amazon.com/cli/
- jq - https://stedolan.github.io/jq/
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc
| # -*- encoding: utf-8 -*- | |
| def circle_alphabet(offset='a', start='a'): | |
| start_code = ord(start) | |
| offset_code = ord(offset) | |
| for i in range(offset_code, start_code + 26): | |
| yield chr(i) | |
| for i in range(start_code, offset_code): | |
| yield chr(i) |
Requires
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc
| * commit 9b5a1a68de5df1702f59c7d309e73d7152b5c582 (HEAD -> master, new) | |
| | Author: ZHU Jie <jie.zhu@huangloong.com> | |
| | Date: Fri Aug 31 10:52:57 2018 +0000 | |
| | | |
| | update another file | |
| | | |
| * commit 6d94315602e0969e61d7f141cb3f27e567bd65f5 | |
| | Author: ZHU Jie <jie.zhu@huangloong.com> | |
| | Date: Fri Aug 31 10:52:42 2018 +0000 | |
| | |
| { | |
| "group001": { | |
| "hosts": ["host001", "host002"], | |
| "vars": { | |
| "var1": true | |
| }, | |
| "children": ["group002"] | |
| }, | |
| "group002": { | |
| "hosts": ["host003","host004"], |
| {"lastUpload":"2020-03-06T13:29:30.156Z","extensionVersion":"v3.4.3"} |
| # -*- encoding: utf-8 -*- | |
| import logging | |
| import os.path | |
| import sys | |
| from PIL import Image | |
| logging.basicConfig(level=logging.INFO) | |
| L = logging.getLogger(__name__) | |
| L.setLevel(logging.INFO) |
| diff --git a/PWCNet/correlation_package_pytorch1_0/correlation.py b/PWCNet/correlation_package_pytorch1_0/correlation.py | |
| index 80a8b09..fe8ab06 100644 | |
| --- a/PWCNet/correlation_package_pytorch1_0/correlation.py | |
| +++ b/PWCNet/correlation_package_pytorch1_0/correlation.py | |
| @@ -4,19 +4,16 @@ from torch.autograd import Function | |
| import correlation_cuda | |
| class CorrelationFunction(Function): | |
| - | |
| - def __init__(self, pad_size=3, kernel_size=3, max_displacement=20, stride1=1, stride2=2, corr_multiply=1): |
| // ==UserScript== | |
| // @name NerdFont for Code | |
| // @namespace http://genzj.info/ | |
| // @version 0.1 | |
| // @description Use NerdFont in code/pre tags, such as github | |
| // @author You | |
| // @match https://github.com/* | |
| // @match https://gist.github.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
| // @grant GM_addStyle |
| #!/bin/bash | |
| # ref: | |
| # https://askubuntu.com/a/1167767 | |
| # https://manpages.ubuntu.com/manpages/bionic/man5/NetworkManager.conf.5.html#connectivity%20section | |
| sudo cp --backup=t /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf.backup | |
| echo -e "\n[connectivity]\nuri=\n" | sudo tee -a /etc/NetworkManager/NetworkManager.conf | |
| sudo systemctl restart NetworkManager.service |
为了保持点赞中立写了这个油猴脚本,将蓝天的用户名和头像替换为随机生成的,同时隐藏了用户ID,这样就能排除对用户印象或亲疏关系的干扰,仅根据内容进行点赞、转发和评论 😃