Forwarded from Theodore Discovery โ
๐ฅ6
This media is not supported in your browser
VIEW IN TELEGRAM
curl has options for every letter in the alphabet ๐ฅฑ๐2
This media is not supported in your browser
VIEW IN TELEGRAM
Spotify is always open in my first workspace whenever I start my PCโmy go-to for music, lo-fi, and focus sessions.
I initially used the Flatpak version, but patching it (๐ [SpotX-Bash] users know) wasn't working as expected. So, I went hunting for alternatives and found the official [spotify distribution url].
Only one problem: it's
- Downloading the .deb file
- Extracting it with dpkg-deb
- Moving it to a safe location
- Symlinking the binary & .desktop file for easy access
And as a true engineer, I took the longer route (๐): Automating it all!
I wrote a script that:
- Downloads and extracts the latest Spotify version
- Places it in the right location
and symlinks everything for easy use
- Checks for updates & installs them
Even though I update every 3-4 months (because Spotify rarely drops major features), at least I "worked on my Bash skills extensively" after my [PR] to [ab-download-manager]. ๐
I also implemented the strategy pattern to make it easy to add support for other distros.
Key takeaway - bash switch statements are ugly ๐.
Check it out: [spotinstaller] or even better contribute support for your distro !
I initially used the Flatpak version, but patching it (๐ [SpotX-Bash] users know) wasn't working as expected. So, I went hunting for alternatives and found the official [spotify distribution url].
Only one problem: it's
.deb file, and I'm on Fedora. So every update meant manually:- Downloading the .deb file
- Extracting it with dpkg-deb
- Moving it to a safe location
- Symlinking the binary & .desktop file for easy access
And as a true engineer, I took the longer route (๐): Automating it all!
I wrote a script that:
- Downloads and extracts the latest Spotify version
- Places it in the right location
and symlinks everything for easy use
- Checks for updates & installs them
Even though I update every 3-4 months (because Spotify rarely drops major features), at least I "worked on my Bash skills extensively" after my [PR] to [ab-download-manager]. ๐
I also implemented the strategy pattern to make it easy to add support for other distros.
Key takeaway - bash switch statements are ugly ๐.
Check it out: [spotinstaller] or even better contribute support for your distro !
โก5๐2
and I just bought Telegram Premium just to check it out, apparently 74.99ETB is 3.99$ ๐
๐4
Forwarded from Tech Nerd (Tech Nerd)
Something I learned this week: You can either always be right or create something new.. but not both. People who never want to be wrong will say your idea wonโt work, and at first, theyโll be right. Because doing something new means failing along the way. But if you keep going, youโll prove that the real path to success isnโt about always being right.. itโs about learning from being wrong.
@selfmadecoder
@selfmadecoder
๐ฅ6๐1
This media is not supported in your browser
VIEW IN TELEGRAM
I learned about squashing commits using the
As you can see in the previous post, when trying to make the release github action work, I fix one thing and push that with the same commit just increasing the version number (to make the automatic build get triggered). After I got it right my commit history was a mess so i searched on how I can make it clean and got the
- where N is the number of commits you want to squash, mine was 14
This will open your default editor, mine is
Then you will change all the
The video is me learning vim macros along the way. (changing all
git rebase command.As you can see in the previous post, when trying to make the release github action work, I fix one thing and push that with the same commit just increasing the version number (to make the automatic build get triggered). After I got it right my commit history was a mess so i searched on how I can make it clean and got the
git rebase method and its really simple.git rebase -i HEAD~N
- where N is the number of commits you want to squash, mine was 14
This will open your default editor, mine is
nvim btw (you can set the $EDITOR variable to nvim in your .zshrc, .bashrc or .config/fish/config.fish to get rid of that nano bullshit ๐)Then you will change all the
pick`s to `squash except the first one to squash all the others to the first one, after that you will enter a new commit or leave the old one and you are done.The video is me learning vim macros along the way. (changing all
pick`s to `squash)โ1๐ฅ1
I built [mycaps] last summer to show you guys how I use my keyboard partially and today I got another cool method of remapping modifier keys (
You should check it out if you are showing gang signs to press 2 and more modifiers with the default layout ๐๐.
Um using a tool called [keyd] but you can use [KMonad] too which is cross-platform.
meta, alt, ctrl, shift) called [homerow mods]. its really cool and I setup my keyboard today and learning it really well since its really intuitive (at least for me). You should check it out if you are showing gang signs to press 2 and more modifiers with the default layout ๐๐.
Um using a tool called [keyd] but you can use [KMonad] too which is cross-platform.
โก1๐1