programming

My ToDo List for 2024 (daily updates)

waffarx cash back

Don't show snap packages in lsblk command output

When your try to see blocks / devices in your Linux distribution that has snap pkgs installed on it, you’ll see too much devices (loop) but they’re not devices. They are actually snap packages. So, how not to show them in the output of the lsblk command. The lsblk command has an -e argument to help to exclude some devices/loops , so we can just exclude loops of snaps. All snap packages on my system has that 7 on them, so I can just exclude any device that has 7 in its description or title, so the command will be lsblk -e 7.

How to use dd to create a bootable USB stick ?

Using dd needs a geek or a developer! if you want to use graphical tools instead, use rufus , popsicle or ventoy . If you sure you want to use dd, here is the step by step guide. First, identify your USB stick (a.k.a USB drive) on your system using this command sudo fdisk –l. The USB stick in my case is /dev/sdb as you can see in the picture. So let’s unmount it via this command umount /dev/sdb*.

Popsicle - Linux utility for flashing multiple USB devices in parallel

Popsicle is a tool made by Pop! OS team. It is a simple tool to create bootable USB drive/stick. It is pre-installed on Pop! OS Linux distribution. Popsicle details in brief 🔗 Features Value Open source Yes, on Github Free (of charge) Yes Programming language Rust can create a bootable Linux disro Yes can create a bootable Windows No Multilanguage (spoken languages) Yes English (the universal language) Yes uptodate yes, updated 3 days ago How to use Popsicle to create bootable USB sticks ?

Make Your Flutter App Slim and Trim: Size Optimization Tips

Ever published a Flutter app and winced at the download size? Here are some tricks to make your app svelte and save users precious storage space. Images 🔗 Supercharge your Icons with SVG: Instead of clunky JPGs or PNGs, use Scalable Vector Graphics (SVG) for icons and vector images. SVG icons are much smaller and won’t lose quality when resized for different screens. WEBP power: For photos, consider using WEBP instead of JPG or PNG.

Mac OS X Terminal: How to use option+delete to delete a word ?

I can backward delete a word using OPTION+DELETE on any text editor on Mac OS but I can’t use it to delete the last word I wrote on Terminal!! It is simple, just with a click of a box! Open Terminal, click on Terminal in menu bar, choose Preferences…, go to profiles tab, click on keyboard tab, check Use Option as Meta key. That’s it! we’re done. You can see the steps on this screenshot.

Fsck Exfat (fsck_exfat) Manual Page Apple Docs

I looked at Apple manual page online , and didn’t find the page. So I decided to add it here for reference when needed. FSCK_EXFAT(8) BSD System Manager's Manual FSCK_EXFAT(8) NAME fsck_exfat -- Verify and repair ExFAT file systems. SYNOPSIS fsck_exfat -q device ... fsck_exfat [-f] [-p] [-y | -n] [-g | -x] [-d] device ... DESCRIPTION The fsck_exfat utility verifies and repairs ExFAT file systems. The first form of fsck_exfat quickly checks the specified file systems to determine whether they were cleanly unmounted.

[Solved] Disk Utility Stuck on Wait Partition Activate

Fix corrupted exFAT disk macOS/OSX 🔗 exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted. Disk Utility is unable to repair this at first, but the fix is this: Use diskutil list to find the right drive id. You want the id under the IDENTIFIER column, it should look like disk1s1 Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3 -d is debug so you’ll see all your files output as they’re processed.

How to display and control your Android device on laptop ?

If you are a software developer, just use scrcpy command line tool to display and control your android smartphone or tablet on a laptop. This application provides display and control of Android devices connected on USB (or over TCP/IP). It does not require any root access. Install scrcpy on Linux 🔗 To install scrcpy, just use snap package manager like this sudo snap install scrcpy. Choose your Linux distribution to get more information about installation.

How to compress files with xz and upload archive to Google cloud ?

First, install Google cloud command line tool and configure it. pip install gsutil Have your project id ready using gsutil config. Check docs for more info. Create the archive / compressed file tar --create --verbose --xz --file images.tar.xz /directory/containing/images/* Upload the archive/compressed file to Google cloud gsutil cp images.tar.xz gs://<bucket name>. replace <bucket name> with your Google cloud bucket name 😄. If you want to extract contents (images in this case) from archive, use this command tar -xf file.

How to remove an audio track from an mkv ?

You can use final cut pro x or iMovie on Mac OS, or Camtasia Studio or Adobe Premiere Pro or DaVinci Resolve on Windows, or DaVinci Resolve or Blender or Kdenlive or ShotCut on Any Linux distro. But I prefer command line tools. Install mkvtoolsnix or use HomeBrew to install it : brew install --with-qt5 mkvtoolnix. Use mkvinfo to get the audio track IDs that you want. command like this mkvinfo *.