Skip to content

Instantly share code, notes, and snippets.

View woozyking's full-sized avatar

Runzhou Li (Leo) woozyking

View GitHub Profile
name: Serverless Deploy - prod stage
on:
push:
tags:
- 'prod-*'
jobs:
deploy:
runs-on: ubuntu-latest
name: Main
on:
pull_request:
push:
branches:
- main
jobs:
scan-env:
(a-serverless-service) % npx @eqworks/scan-env
Missing in serverless.yml
LOG_LEVEL:
src/__init__.py (has default)
STAGE:
src/app.py (has default)
PG_URI:
src/modules/pg.py (has default)
MONGO_URI:
(@eqworks/updates repo) % npx @eqworks/scan-env
Missing in live context
ORG_TZ:
cli.js (has default)
sources/util.js (has default)
GITHUB_TOKEN:
sources/github/graphql.js
GITHUB_ORG:
sources/github/graphql.js (has default)
name: Main
on:
pull_request:
push:
branches:
- main
jobs:
commit-watch:
(some repo) % npx @eqworks/commit-watch -b origin/main --verbose
⚠ 6/9 do not match pattern "category[/sub-category] - subject title"
✖ define APIError
✖ fix /readme to reflect changes in selectUser
✖ remove unnecessary await
✖ refactor selectUser to return user || undefined
✖ PR fixes, throws APIError
✖ check if user exists, won't send opt email if user unknown
✓ users - make getUsers async, await db query
@woozyking
woozyking / dear-diary.md
Created March 16, 2020 19:55
dev-journal-diary

Dear Diary,

Yesterday, I did yet another batch of GAM segments upload, and re-re-mirrored swarm repo, again.

But enough with the chores, let me share with you something more exciting!

I finally further automated the GAM segment upload process to source newly submitted jobs from segment_gam data table. Even better, now OPs have learned to use the already built (albeit hidden) LOCUS UI (/segments-gam, and /segments-gam-list) to input the GAM List ID and Segment pairs. 100% win-win for all!

On the front-end of LOCUS (snoke), I finally completed this iteration of builder view job redesign implementation, as well as the builder list redesign follow-up issue (snoke#703). At last, the crawling is over.

Keybase proof

I hereby claim:

  • I am woozyking on github.
  • I am woozyking (https://keybase.io/woozyking) on keybase.
  • I have a public key ASAprXeE_RHmCRhWbtYMJpOwyVAhlIFYxit8wfdZvEMUCAo

To claim this, I am signing this object:

@woozyking
woozyking / count_queue.py
Last active March 12, 2016 02:47
techies examples
from techies import CountQueue
q = CountQueue(key='demo_q', host='localhost', port=6379, db=0)
# put, or enqueue
q.put('lol')
q.put('dota')
q.put('skyrim')
q.put('dota') # increment the count of the existing 'dota'
@woozyking
woozyking / node_setup.sh
Last active February 17, 2016 21:02
node env setup
# see https://nodejs.org/en/download/package-manager/ to get node.js installed
# install forever globally
sudo npm install -g forever