Weekly Shaarli
Week 07 (February 10, 2020)
A couple years ago, I moved from Google Voice to custom infrastructure . That system used XMPP to send SMS. Now that I've moved from XMPP ...
Todo vim integration discussion; different systems from paper to file-system oriented to org-mode to plain markdown discussed
There are many different resources:
Basics:
- Archwiki Basics: Creating Packages
- Archwiki Developerwiki: Building in a clean chroot -- useful for building on normal machine, not as useful for cicd/docker development
- Archlinux base docker image official (160mb)
- Pacman basics: Using a custom (local) repository
PKGBUILD and Archrepo explanation:
- 3 parter: Hosting arch repos on s3, managing archlinux with metapackages, creating a custom installer
- additional advanced ways of building replicating metapkgs
- older article: building packages on linux
- older article: creating an archlinux repository
PKGBUILD examples:
CI/CD:
- extensive automated builds -- fetching from different repositories and automatically hosting on gitlab pages (very useful resource); awesome documentation
- more minimal setup -- using 1 repository for packages; mainly bash building, does not deploy a gitlab pages repo (can be adapted from above link); nicely documented
- in-between -- look at ci-library.sh/ci-build.sh; more well-established practices than repo above; but almost-nonexistent documentation
Reading Time: 5 minutes Git’s push --force is destructive because it unconditionally overwrites the remote repository with whatever you have locally, possibly overwriting any changes that…
Additional Information on Undoing things in git: https://git-scm.com/book/en/v2/Git-Basics-Undoing-Things
version controlled data storage (using mongodb, mysql or other underlying data storage) -- like git for data (with commits, checkouts, branches, pulls, pushes etc)
Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero dependencies. https:
Finds the strongest password(s) from a url using passwordmeter - red-bin
Problem:
-
hetzner is cheap, but only supplies 20GB SSD space; its storage is block-storage and relatively pricey (~5€ for 50gb)
-
nextcloud works with object storage -- we can get much cheaper storage solutions through this
-
Wasabi is a cheap object storage solution (1TB for 5€)
-
Contabo is a cheap VPS hosting solution (faster than hetzner, 4core cpu, 8gb ram and 200gb ssd for 4,99€; or 300gb hdd for 3,99 w/2cores,4g ram)
-
Migrate over to contabo + wasabi
Search worldwide news articles and headlines from all over the web in real-time with our free News API.
- Rosetta Code -- Code Problem repository; from simple to hard with solutions for many languages
- Project Euler -- Code Problem repository; generally a bit harder, more algorithm-focused than Rosetta
- Exercism -- mentor-based code exercises. You send in problem solutions via cli, and a mentor can check them and give tips to you. FOSS
- CodeWars -- 'compete' against others in exercises; you send in solutions and people can vote on how successful (or elegant) your solution is
- Dokku -- really small quick and painless setup, single instance hosting, get up running in minutes and deploy containerized apps with simple git push. Awesome for tiny to small projects.
- Flynn -- slightly bigger and more involved, can scale to multiple servers by creating its own cluster, interaction is similar to dokku (i think) -- DEAD
- Rack -- most similar to heroku, I am not sure if complete self-hosting is possible; but follows simple deployment model and allows full use of 12factor apps
- Porter -- built for Kubernetes, seems more involved not sure about corporate backing or community involvement
Proper project management with Taskwarrior in vim. - tbabej
Safe and simple one-script git synchronization.
Idea is continuous history (a la gopass git) -- it's not a pretty history, but it automatically syncs on filechanges.
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
Power management with tlp and powertop , some applicable to dell xps
-> also check archwiki powertop and xps pages
and: https://www.reddit.com/r/Dell/comments/6s2e3w/optimizing_dell_xps_for_linux/
Jellyfin -- plex/emby alternative, completely FOSS and forked form emby when they went closed source
Good-lookin' diffs. Actually… nah… The best-lookin' diffs. :tada: - so-fancy
A methodology for building modern, scalable, maintainable software-as-a-service apps.
Check if pipes (stdin) are empty.
Also see for additional information on string checking: https://stackoverflow.com/questions/12137431/test-if-a-command-outputs-an-empty-string