Skip to content

Instantly share code, notes, and snippets.

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active May 7, 2025 11:10
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@genadyp
genadyp / javascript-useful-links.md
Last active April 28, 2025 09:27
javascript (js) useful links

OSX RICING

This is base list of tools that may be used in os x ricing.

Window Managers

A window manager (WM) is system software that controls the placement and appearance of windows within a windowing system in a graphical user interface (GUI). It can be part of a desktop environment (DE) or be used standalone.

@RobertAKARobin
RobertAKARobin / python.md
Last active May 5, 2025 21:25
Python Is Not A Great Programming Language
@dvf
dvf / change-codec.md
Last active May 5, 2025 07:24
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@devnoname120
devnoname120 / My macOS setup.md
Last active April 30, 2025 18:04
My macOS setup

ℹ️ Enable iCloud end-to-end encryption:

  • Nobody knows that, but iCloud actually supports end-to-end encryption (see “Advanced Data Protection for iCloud”) but it's disabled by default. If you care about data privacy, you should turn it on.
    • System settingsApple IDiCloud → Set Advanced Data Protection to On.
    • System settingsApple IDiCloud → Disable Access iCloud Data on the Web.
  • It supports almost all the native Apple apps, with the notable exceptions of iCloud Mail, Contacts, and Calendars. See official data protection matrix for more info.

Table of Contents

@coolaj86
coolaj86 / MacOS-Icons.md
Last active April 12, 2025 09:20
MacOS Default Icons Locations

How to Find ANY Icon

  1. Open the application such that you see the icon on your screen.
  2. Open Activity Monitor
  3. Double click the name of the application (i.e. Finder or System Preferences)
  4. Select "Open Files and Ports"
  5. Copy the output to a file and then grep for .icns

Similarly you could run this command, but it may take several minutes to complete:

{"refreshed":"2025-03-22T19:24:00.602Z","countries":[{"country":"Afghanistan","code":"AF","cases":234174,"todayCases":0,"deaths":7996,"todayDeaths":0,"recovered":211080,"serious":0,"active":15098},{"country":"Albania","code":"AL","cases":334863,"todayCases":0,"deaths":3605,"todayDeaths":0,"recovered":330233,"serious":0,"active":1025},{"country":"Algeria","code":"DZ","cases":272010,"todayCases":0,"deaths":6881,"todayDeaths":0,"recovered":183061,"serious":0,"active":82068},{"country":"Andorra","code":"AD","cases":48015,"todayCases":0,"deaths":165,"todayDeaths":0,"recovered":0,"serious":0,"active":0},{"country":"Angola","code":"AO","cases":107327,"todayCases":0,"deaths":1937,"todayDeaths":0,"recovered":103419,"serious":0,"active":1971},{"country":"Anguilla","code":"AI","cases":3904,"todayCases":0,"deaths":12,"todayDeaths":0,"recovered":0,"serious":0,"active":0},{"country":"Antigua and Barbuda","code":"AG","cases":9106,"todayCases":0,"deaths":146,"todayDeaths":0,"recovered":8954,"serious":0,"active":6},{"country"
@marlosirapuan
marlosirapuan / gist:778d6beda5f8ab95695748011c864b19
Last active April 28, 2025 16:04
Download .m3u8 files on MacOS

Install ffmpeg

brew install ffmpeg

Download file through url, like this:

ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4

Route Transition API

Definitions

The goal of the route transition API is to enable suspense-like transition in React Router without using Suspense (much like v1).

On location changes, React Router will continue to send down the old location, activating pending hooks for loading states and optimistic UI, and wait for your Route's preloading hooks to resolve before sending down the new location and updating your app.

This enables you to declare data dependencies on your routes, allowing your route elements to expect data and not need to manage their own loading states.