VirtualTam's bookmarks
45 bookmarks found
-
Actors:
- database server / cluster
- load-balanced application servers relying on a database schema with migrations
- reverse proxy
Issue:
- managing database schema migrations
Possible sequence:
- create the database
- run a service that executes database schema migrations
- start application servers
- start the load-balancer / reverse-proxy
Resources:
- https://www.reddit.com/r/docker/comments/2t2pnf/what_are_best_strategies_to_migrate_relational/
- https://softwareengineering.stackexchange.com/questions/357929/db-migration-strategy-for-docker-containers-in-aws-ecs
- https://stackoverflow.com/questions/41592091/run-a-database-migration-command-when-deploying-a-docker-container-to-aws
- https://ltd-keeper.lsst.io/gke-migrations.html
- https://stackoverflow.com/questions/31715239/docker-compose-database-migrations-and-other-pre-post-scripts
- https://stackoverflow.com/questions/38089999/docker-compose-rails-best-practice-to-migrate
- https://stackoverflow.com/questions/37058812/how-best-to-run-one-off-migration-tasks-in-a-kubernetes-cluster
-
Lenovo Thinkpad 13 + Linux - Feedback
2017-04-15 +++: backlit keyboard, battery ++: HDPI matte screen, touchpad+trackpad -: BIOS messages in approximative English --: no ethernet port ---: cooling / fan noise
ETH available through:
- 10$ generic USB-C adapter
- 25$ Lenovo USB-C adapter
- 150$ Lenovo USB-C dock
- 180$ Lenovo docking station
Cooling / fan control:
- triggered when the CPU reaches approx. 46° / 20% load
- slowest speed: 3400 RPM (!), goes up to 4000+ RPM
TODO:
- try updating BIOS/UEFI
- use a laptop cooling pad
- killall -9 firefox # not really an option tho
User-contributed feedback:
- https://www.reddit.com/r/thinkpad/comments/4k2kzl/debian_on_the_thinkpad_13/
- https://www.reddit.com/r/thinkpad/comments/4jh3wb/thinkpad_13_manjaroarch_impressions/
- https://www.reddit.com/r/thinkpad/comments/4lzsks/my_thinkpad_13_experience_with_ubuntu_1604/
- https://www.reddit.com/r/thinkpad/comments/4pieti/thinkpad_13_fan_vs_zenbook/
-
Audacity themes
2016-08-30 To enable theming, append the following section to ~/.audacity-data/audacity.cfg
[Theme] LoadAtStart=1
This will load any theme resource located under ~/.audacity-data/Theme/ImageCache.png
Some themes:
-
Literate DevOps
2016-03-29 """ Instead of opening up a terminal to my virtual machine, I pop into Emacs and load this sprint’s /note file/1, create a new header, and enter the shell and ruby commands in this text file.
What good is this? Unlike a traditional terminal, this allows me to log, document and execute each command.
As an old bear with very little brains, my prose can explain the background and purpose of each command. Clicking the hyperlink refreshes my memory of previous discoveries. A keychord executes the code block… """
-
PulseAudio Modules
2015-01-08 Tweak which modules are loaded in either: /etc/pulse/default.pa ~/.config/pulse/default.pa
-
Uses a project or repository's history to plot user contributions, displaying an elegant, colored graph of the file arborescence.
After running it on quite different projects...
- Python/Bash CI/Jenkins scripts
- Qt apps: GoldenDict, Psi+
- PHP website: Shaarli
...watching some vids on teh intartubez:
- Minecraft: https://www.youtube.com/watch?v=zRjTyRly5WA
- Linux kernel: https://www.youtube.com/watch?v=AhDiYPLo3p4
- Python: https://www.youtube.com/watch?v=cNBtDstOTmA
It allows to arbitrary spot some interesting implementation aspects (sorted by descending impact):
- language-dependent trees (oh hai Java packages ^^)
- framework-dependent trees
- project-management method (none, Agile, TDD)
Having a graphical tool also quickly shows:
- the overall structure of the project (a bit cooler than a simple $ tree, way quicker than loading the project on an IDE)
- the repartition of files (by extensions)
- who are the most active contributors
- what are the most modified files over time
- who does what: additions, deletions, refactoring
Some more CI-related matters:
- are there any tests?
- what is the source code / test code ratio? (we could expect a project/lib with N modules to have at least N test modules)
- who initiates / implements / optimizes test code?