LUKS2 encrypted BTRFS system partition with Limine/Snapper integration and hybernate to swapfile
-
Create a Android Virtual Device (AVD) using a non Google image to enable root access
-
Start mitmproxy
-
Install DuckDuckGo browser via downloaded apk on AVD
Download via: https://apkcombo.com/duckduckgo/com.duckduckgo.mobile.android/
-
Start ADV emulator with mitmproxy configured:
When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.
Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.
Before overriding:
uvicorn main:app --reload| FROM golang:1.12 AS build | |
| COPY ./main.go . | |
| # ARG here is to make the sha available for use in -ldflags | |
| ARG GIT_SHA | |
| # -ldflags "-X main.sha=${GIT_SHA}" allows main.sha to be set at build time | |
| RUN go build -ldflags "-X main.sha=${GIT_SHA}" -o /app | |
| FROM scratch |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh
Easily checkout local copies of pull requests from remotes:
git pr 4- creates local branchpr/4from the githubupstream(if it exists) ororiginremote and checks it outgit pr 4 someremote- creates local branchpr/4fromsomeremoteremote and checks it out