Skip to content

Instantly share code, notes, and snippets.

View arischow's full-sized avatar
🐈
Focusing with my kittens Loki, Kasumi and Miumiu

Aris Chow arischow

🐈
Focusing with my kittens Loki, Kasumi and Miumiu
View GitHub Profile
@arischow
arischow / Dockerfile
Last active September 7, 2020 17:22
Dockerfile multi-stage build for Python
# build wheels
FROM python:3.7.9-buster as builder
ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
# pip:
PIP_NO_CACHE_DIR=yes \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100
@arischow
arischow / gist:680fba94c03a7b8fd39c8d41bb916107
Created April 22, 2021 03:42 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@arischow
arischow / private_fork.md
Created May 6, 2021 06:55 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@arischow
arischow / To list the files changed on recent commit
Last active August 24, 2021 03:08
[To list the files changed on recent commit] #git #command
git show --pretty=%gd --stat --name-only
@arischow
arischow / delete.sh
Created September 18, 2021 03:16
[Evicted Pods] Source: https://stackoverflow.com/a/62640917/4003204 #Kubernetes
kubectl get -A pods --no-headers --field-selector status.phase=Failed | awk '{system("kubectl -n " $1 " delete pod " $2 )}'
@arischow
arischow / snippets.py
Created October 16, 2021 08:45
[BeautifulSoup] #Python
tag: bs4.Tag
# find tags by one CSS class:
soup.select(".classa")
# OR (match one of the classes)
soup.select(".classa, .classb, .classc")
# AND
soup.select(".classa.classb.classc")