myCorner
211 subscribers
263 photos
26 videos
2 files
245 links
My, a human, corner of things on myCorner. Trying to learn not to teach https://dagimg-dot.netlify.app
Download Telegram
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 .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
This was fun to read and the comments ๐Ÿ˜‚

[Any bored older C devs?]
Late to the party ๐Ÿ˜
๐Ÿ”ฅ5
Forwarded from Kirakos
Suuus ...
๐Ÿ˜6
https://t.me/atc_news/28513

okayyy๐Ÿ˜๐Ÿ˜
๐Ÿ˜7
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
๐Ÿ”ฅ6๐Ÿ‘1
Inflation is deadly indeed !

https://redd.it/1jr7uyh
๐Ÿคฏ3๐Ÿ˜2
Do you know that you can?
๐Ÿ”ฅ1
myCorner
Do you know that you can?
a random yt shorts ๐Ÿ˜‚
๐Ÿคฃ3
A friend sent me this ๐Ÿ˜‚ and thats a lot of DABO
๐Ÿคฃ11
The first person to increase app version number 12 times until my release workflow works ๐Ÿ˜‚. But I gotta say I learned a lot from each mistake.

Anyways its for a Gnome app I am building. I will share updates soon.
๐Ÿ˜4
This media is not supported in your browser
VIEW IN TELEGRAM
I learned about squashing commits using the 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 (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
This media is not supported in your browser
VIEW IN TELEGRAM
I will have trust issues if you have two fully functioning calculator apps on your phone.
๐Ÿคฃ11
Reddit humour
๐Ÿคฃ6