Skip to content

Instantly share code, notes, and snippets.

@Daniel-ltw
Daniel-ltw / docker-compose.yml
Created January 12, 2020 19:33
Update let's encrypt script
nginx:
command: nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
image: <-- insert image here -->
logging:
driver: json-file
options:
max-size: 5M
ports:
- 80:80
- 443:443
When you have a commit sha like '928756c913158b143caa4d0dd905aebdd1f115e9'
Jenkins pipeline String would somehow translate it to 928756c913158b143caa4d0dd905\342\200\213aebdd1f115e9
The unicode character for \342\200\213 is ​.
@Daniel-ltw
Daniel-ltw / 1.txt
Last active October 8, 2023 03:54
Google Video ads block
## Google video advertisments
127.0.0.1 r1---sn-4g57kn7d.googlevideo.com
127.0.0.1 r1---sn-4g57knek.googlevideo.com
127.0.0.1 r1---sn-4g57kndd.googlevideo.com
127.0.0.1 r1---sn-4g5e6ne6.googlevideo.com
127.0.0.1 r1---sn-4g5e6ney.googlevideo.com
127.0.0.1 r1---sn-4g5e6nls.googlevideo.com
127.0.0.1 r1---sn-4g5ednll.googlevideo.com
127.0.0.1 r1---sn-4g5ednls.googlevideo.com
@Daniel-ltw
Daniel-ltw / from.yaml
Last active August 25, 2023 21:11
Github Actions repository_dispatch example
name: Build Artifacts
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
04a47d94eef3a1444739f331e0068ff43cdca41104eaa5740ae472d5e58853e4071cab0d5e7666754d21eea6cdaf48484ed0d0a72b241cee4fed36c95797c839d9
@Daniel-ltw
Daniel-ltw / gist:0112fa7c048dbfa04f612443cd73d5e9
Last active June 30, 2019 23:54
Major China Tech Firm Github Repo
https://github.com/didi
https://github.com/Huawei
https://github.com/alibaba
https://github.com/Tencent
https://github.com/baidu
https://github.com/XiaoMi
https://github.com/Qihoo360
https://github.com/bilibili
https://github.com/bytedance