Our goal is to get all sorts of private information from a GitHub authenticated login.Continue reading
Because the session cookies of different blueprints have different paths. Set in configuration:
SESSION_COOKIE_PATH = '/'
And all should share the same session.
flask.session, by default, session ends when browser is entirely exited. Merely closing tabs won’t erase sessions.
AWS is a bit too rich in features.Continue reading
Some blatantly obvious thing that I was oblivious to before dipping my toes into databases:Continue reading
Doesn’t work.Continue reading
Whenever your pull request contains image changes, this Github action will run and create a commit of optimized images.Continue reading
When you run
git submodule update --remote in a container repo, you might notice that it says:
Submodule funny_module bf722acd..02dc481d (rewind): < That awful bugfix
Why the rewind?!Continue reading
We use CSS modules, so it doesn’t make sense to care about importing order, but the
mini-css-extract-plugin doesn’t provide an option to turn off the conflicting warning:
chunk styles [mini-css-extract-plugin] Conflicting order between: * css ... * css ...
Here’s how to mute them.Continue reading
What they do:
- ESLint: underline when code doesn’t comply to logical rules. Can run a script and fix some easy errors (etc. unused variables lying around)
- Prettier: doesn’t change the logic of code, only formats it (etc. removing extra spaces, turning double quotes to singles)