Un autre démenagement

Je voudrais commencer en dissant que ce-ci est mon premier post en francais (j’ai utilise languagetool.org), alors aies-moi patience. Il fait déjà 1+ an que moi et ma famille, nous avons déménagé en Belgique. Je ne me sens pas étranger aux déménagements disruptifs comme ce qu’on a fait, mais de le faire avec un enfant de cinq mois, c’était énormément dur. Dès que je suis arrivé en Belgique, au travers du système d’immigration, j’étais obligé de m’enregistrer à la commune pour commencer mon processus pour vérifier mon statut et pouvoir recevoir ma carte de séjour. ...

October 15, 2024 · 2 min · oschvr

1000 days of Duolingo

I have just completed a 1000 days streak on Duolingo learning French (from English) and I wanted to make a blog post dedicating this achievement to Duolingo and all the language enthusiasts that are using it across the world. In my humble opinion, as a technologist and ethusiast myself, Duolingo is one of the best apps that have ever existed. I have to say that there wasn’t any time while using it where I didn’t notice the effort that went into building it. From the language coverage, to the speech features to the gamification mechanics. ...

January 10, 2024 · 4 min · oschvr

Is Github Alive

It’s been recently noticeable that me and my team have had to halt development or progress due to a Github outage. This has been much more visible since Microsoft acquired Github As an SRE myself, I can’t help but wonder what is going on at Github/Microsoft… Is it because Github moved to Azure and the real cause of unrelaiblity is that Azure can’t cope? Is it because Github has a ton more features that are not well built? ...

May 11, 2023 · 2 min · oschvr

Advice for Junior DevOps

Hey blog, long time no see. I’ve been incredibly busy these last couple months. Apologies to you for not updating your content as often as I’d like to. I intend to post this in HackerNews, so if you’re coming from there, hello 👋 ! Recently, someone approached to me in Reddit asking me if I had any general advice for an “first time | entry-level | junior DevOps Engineer” While I disagree on that request because I believe that: ...

April 25, 2023 · 3 min · oschvr

Bash Prank

I remember of coming up with a random joke prank, so when I stumbled upon this comment in the /r/bash subreddit, I absolutely had to try it. I modified it slightly and used a one-liner jokes list I found in Github too. It works in macOS monterey 12.2.1 Here’s what it does: Sets the volume at maximum Creates a temp dir in ~ ($HOME) Downloads a list of jokes from Github Select one randomly and say it out loud using the computer speakers Remove the list of jokes #! /bin/bash # ░░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄░░░░░░░ # ░░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄░░░░ # ░░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█░░░ # ░░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░░█░░ # ░▄▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░░█░ # █░▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒░█ # █░▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█ # ░█░▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█░ # ░░█░░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█░░ # ░░░█░░░░██░░▀█▄▄▄█▄▄█▄████░█░░░ # ░░░░█░░░░▀▀▄░█░░░█░█▀██████░█░░ # ░░░░░▀▄░░░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█░░ # ░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░▒░░░█░ # ░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░░░░█░ # ░░░░░░░░░░░░░░▀▄▄▄▄▄░░░░░░░░█░░ # Get current volume cur_vol=$(osascript -e 'output volume of (get volume settings)') # To restore vol to current level restore_vol=$(echo ${cur_vol}/14 | bc) # Get bool if muted mute_state=$(osascript -e 'output muted of (get volume settings)') # If system doesn't have gshuf, not gonna work if [ ! -f $(which gshuf) ] ; then exit ; exit fi # Set vol to max osascript -e "set Volume 10" # Create temp dir if [ -d ~/temp ] ; then tempe=1 else tempe=0 mkdir ~/temp fi # Create list of annoying things to say curl -s https://raw.githubusercontent.com/jpf/dial-a-joke/master/jokes/www.textfiles.com/humor/JOKES/onelinrs.txt > ~/temp/jokes # Use gshuf to generate radom permutations # Use -n1 to get a phrase from list # Pipe it to say to transform text to speech (macOS) # Select a random voice that supports en_ (english) gshuf -n1 ~/temp/jokes | say --voice $(say --voice '?' | grep en_ | gshuf -n1 | awk '{ print $1 }') # Restore volume osascript -e "set Volume ${restore_vol}" if [[ ${mute_state} == "true" ]] ; then osascript -e 'set volume output muted true' fi # Cleanup if [[ ${tempe} = 0 ]] ; then \rm -Rf ~/temp else \rm -f ~/temp/jokes fi Put it somewhere hidden like /usr/local/tmp and change the mod to executable ...

April 25, 2023 · 2 min · oschvr