pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

commit 2c7fcf604cd27c014d3d44d4e7357062aa77c784
parent d2082b44baac41c443fe55aa356ccb32eb9f61bd
Author: pyratebeard <root@pyratebeard.net>
Date:   Sat, 12 Feb 2022 22:34:32 +0000

Merge branch 'main' into disperse_together

Diffstat:
Aentry/20220202-ansible_reachable_hosts.md | 34++++++++++++++++++++++++++++++++++
Aentry/20220202-the_cookie_crumbles.md | 5+++++
Aentry/20220208-git_savvy.md | 14++++++++++++++
Aentry/20220210-rice_of_the_machines.md | 31+++++++++++++++++++++++++++++++
4 files changed, 84 insertions(+), 0 deletions(-)

diff --git a/entry/20220202-ansible_reachable_hosts.md b/entry/20220202-ansible_reachable_hosts.md @@ -0,0 +1,34 @@ +I use AWX for Ansible in work quite a bit. We have a number of workflows that will run on multiple hosts. One issue we had was that some systems may be offline when the templates in the workflow run, and this would result in a template (and ultimately a workflow) failure even though all the other systems were successful. + +Stackoverflow to the rescue! Thanks to Alex Cohen for [this solution](https://stackoverflow.com/a/55190002). + +To combat the offline hosts the playbook can be modified to perform a check on the inventory first, loading any online systems into a "reachable" group. The rest of the playbook would only be run against the online systems. + +``` +--- +- hosts: all + gather_facts: false + tasks: + - block: + - wait_for_connection: + timeout: 5 + - group_by: + key: "reachable" + tags: always + check_mode: false + rescue: + - debug: + msg: "unable to connect to {{ inventory_hostname }}" + +- hosts: reachable + tasks: + - name: normal playbook tasks from here + ... +``` + +As you can see this is achieved using the `block` feature in Ansible. The `key` parameter in the `group_by` module specifies the name of our ad-hoc inventory group, in this case "reachable". + +Using the `debug` module message in `rescue` allows us to mark the offline systems as rescued so it doesn't fail the playbook. Then the rest of the playbook is run against all systems in the "reachable" group. + +This now doesn't cause my workflows to fail and I don't have to explain why I'm not concerned when there is red on the dashboard (¬_¬). + diff --git a/entry/20220202-the_cookie_crumbles.md b/entry/20220202-the_cookie_crumbles.md @@ -0,0 +1,5 @@ +I am [not a fan](https://log.pyratebeard.net/entry/20220108-type_cookie_you_idiot.html) of the abusive use of cookies and the despicable consent pop-ups. So I am delighted to read that a decision has been reached by the Belgian Data Protection Authority that online advertising trade body IAB Europe's consent pop-ups are unlawful, and they must delete all user data for violating GDPR. + +You can read more about this on the [Irish Council for Civil Liberties](https://www.iccl.ie/news/gdpr-enforcer-rules-that-iab-europes-consent-popups-are-unlawful/) website, and here is the [PDF of the full decision](https://www.gegevensbeschermingsautoriteit.be/publications/beslissing-ten-gronde-nr.-21-2022-english.pdf). + +This decision will impact hundreds of companies that use this data, and looks to be another step forward in the battle against the obnoxious plague of cookies and pop-ups. diff --git a/entry/20220208-git_savvy.md b/entry/20220208-git_savvy.md @@ -0,0 +1,14 @@ +Last year I volunteered to give a talk at one of the [Dublin Linux Community](https://dublinlinux.org)'s online meetups. I decided to give a talk on [git](https://git-scm.com/), the version control system, and inspired by xero's [grok git](https://git.io/grokgit) I made the presentation a shell script. + +To get a copy of the presentation script in your terminal incant +``` +curl -L -o gitsavvy rum.sh/gitsavvy +sh ./gitsavvy +``` + +or if you trust me pipe directly into a shell +``` +curl -sL rum.sh/gitsavvy | sh +``` + +The recording of the presentation is on my [peertube instance](https://tube.pyratebeard.net/videos/watch/270b2ffe-4918-46c5-915c-f76dbe998593). diff --git a/entry/20220210-rice_of_the_machines.md b/entry/20220210-rice_of_the_machines.md @@ -0,0 +1,31 @@ +The first Desktop Environment (DE) I ever used on a Linux distro was KDE (circa 2008). Coming from Windows I was amazed at how much you could customise the theme and style of the windows, even back then I preferred dark mode everything. I started to play around with themes and colours, and this customising continued through my use of Gnome 2 and then XFCE. By this point I had started to notice screenshots of Linux desktops online, leading me eventually to [/r/unixporn](https://reddit.com/r/unixporn) and the term "ricing". + +According to the [/r/unixporn wiki](https://www.reddit.com/r/unixporn/wiki/themeing/dictionary/#wiki_rice) + +> "Rice" is a word that is commonly used to refer to making visual improvements and customizations on one's desktop. It was inherited from the practice of customizing cheap Asian import cars to make them appear to be faster than they actually were - which was also known as "ricing" + +I was jubilant to find a whole community of people who enjoyed customising their systems. Through /r/unixporn I was introduced to new techniques, tools, software, and other communities. + +My ricing became more deliberate. I started to see ricing as an art form, taking inspiration from others, pictures, or even single colours. I moved away from DEs and began using a Window Manager (WM). I also paid more attention to the software I used and tried to customise everything I could. I also began to [share my ricing screenshots](https://www.reddit.com/r/unixporn/search?q=author%3Apyratebeard). + +A few /r/unixporn ricers (xero, venam, z3bra) lead me to the [nixers](https://nixers.net) community. While not strictly a "ricing" community there are a number of members who rice. Recently it was decided to showcase some of [our screenshots](https://screenshots.nixers.net). + +I see a lot of posts on /r/unixporn and [/r/unixart](https://reddit.com/r/unixart) with ricers saying "this is it, my finished rice", and I always chuckled at this. I was always playing around with my colours and styles, forever tweaking. There is no end... I thought. + +I haven't made any changes to my current theme in a long time. It was a lot of tweaking to get it how I like it, but the style, colours, usability, have all worked so well that I haven't needed to adjust it. I like this rice so much I entered it into the August 2021 /r/unixporn ricing competition and took [second place](https://www.reddit.com/r/unixporn/comments/pnkbev/august_ricing_competition_winners/) (thanks to all who voted!). + +This isn't to say I have finished ricing, I have a few ideas for new projects, but have been so happy with what I have now that maybe "this is it, my finished rice". Somebody will probably chuckle at the naivety of that statement. + +If you want to get into ricing check out /r/unixporn and /r/unixart to get an idea of what is possible. [Dotshare](http://dotshare.it) is a great source for themes and their accompanying configuration files. I found [gpick](https://www.gpick.org) a great tool for finding colours and whole palettes from images. The website [terminal.sexy](https://terminal.sexy) is also useful to play around with the colours and see how they look together. + +Take your inspiration from anything. I have riced based on comic books, album covers, and even a single colour. + +Some of my favourite rice screenshots by others are: + +* [bbs lyfe](https://i.redd.it/vi7crebm52sx.png) by xero +* [hyper light drifter](https://i.redd.it/yqgwrh1ojebz.png) by novcn +* [creation](https://i.redd.it/t8p0l43zjvm01.png) by szorfein +* [muspelheim](https://i.redd.it/n5m7rap66ii71.png) by barbarossa +* [gvfr](https://u.teknik.io/qc8dI.png) by nxll + +A collection of my rice screenshots can be [found here](https://pyratebeard.net/scrots.html).