Skip to content

Instantly share code, notes, and snippets.

View a-b's full-sized avatar
🇺🇦

AL Berez a-b

🇺🇦
View GitHub Profile
@eliasschr
eliasschr / DDPM2.0.md
Last active October 20, 2025 11:58 — forked from nebriv/DDM2.0.md
DELL Display and Peripheral Manager 2.0 CLI for MacOS

Dell Display and Peripheral Manager 2.0 Command Line

All available Commands found in the CLI.

Whole Command looks like this:

/Applications/DDPM/DDPM.app/Contents/MacOS/DDPM /set -display=ActiveInputSource -value=USB-C Write commands can be prefixed with int:command to specify which monitor to send the command to.

If you want to controll your Display through shortcuts I'd suggest writing a .command script and having it on your Desktop or putting it into a Stream Deck, my .command files look like this:

@livecodelife
livecodelife / roo_workflow.md
Last active October 31, 2025 10:40
Roo Code Setup and Workflow for the best $0 development

Roo Code Workflow: An Advanced LLM-Powered Development Setup

This gist outlines a highly effective and cost-optimized workflow for software development using Roo Code, leveraging a multi-model approach. This setup has been successfully used to build working applications, such as Baccarat game simulations with betting strategy analysis, and my personal portfolio site.


Core Components & Model Allocation

The power of this setup lies in strategically assigning different Large Language Models (LLMs) to specialized "modes" within Roo Code, optimizing for performance, cost, and specific task requirements.

@nebriv
nebriv / DDM2.0.md
Last active October 21, 2025 14:30
Dell Display Manager 2.0 command line documentation

Dell Display Manager 2.0 Command Line

Decompiled DLL with ILSpy to identify various commands.

Most commands can be found in DDM2._0_UX.CmdBackground.cmdService_DoWork

Write commands can be prefixed with int:command to specify which monitor to send the command to.

.\DDM.exe /0:writebrightnesslevel 50

@enihsyou
enihsyou / README.md
Last active July 13, 2023 07:31
Make kitty terminal emulator aware macOS system appearance change (aka Dark Mode).

What's this

Make kitty terminal emulator aware macOS system appearance change. But not perfect, since this script is not "listening" change event, but rather be triggered by new shell creation.

How to use

  1. pick two theme conf, one for light (basic-light.conf here) and one for dark (basic-dark.conf)
  2. create two file inside KITTY_CONFIG_DIRECTORY(~/.config/kitty here), macos-launch-services-cmdline-dark.conf and macos-launch-services-cmdline-light.conf
  3. tweak macos-launch-services-cmdline-*.conf, add kitty.conf and theme.conf, note that args should use full path.
@alphashuro
alphashuro / alfred-kitty-applescript
Created April 24, 2022 11:18
AppleScript for using Alfred with kitty
on alfred_script(q)
set cmd to q
repeat while cmd starts with space
set cmd to cmd's text 2 thru -1
end repeat
tell application "kitty" to activate
do shell script "/Applications/Kitty.app/Contents/MacOS/kitty @ --to unix:/tmp/mykitty new-window --new-tab"
tell application "System Events" to keystroke cmd
tell application "System Events"
@MicahParks
MicahParks / go get private GitLab with group and subgroup (Golang modules).md
Last active October 28, 2025 12:42
go get private GitLab with group and subgroup (Golang modules)

Problem

The go command line tool needs to be able to fetch dependencies from your private GitLab, but authenticaiton is required.

This assumes your private GitLab is hosted at privategitlab.company.com.

Environment variables

The following environment variables are recommended:

export GO111MODULE=on
export GOPRIVATE=privategitlab.company.com
@krisleech
krisleech / renew-gpgkey.md
Last active November 8, 2025 19:52
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@bartleby
bartleby / iOS URL Schemes
Created August 22, 2018 17:48
iOS URL Schemes
URL Schemes
Apple
 
Apple Music     — music://geo.itunes.apple.com/us/albums/<albumID>
                – music://geo.itunes.apple.com/us/artists/<artistID>
 
Apple News      — applenews://
App Store       — itms-apps://itunes.apple.com/app/<appID>
Apple TV        — videos://
@oliveratgithub
oliveratgithub / emojis.json
Last active November 10, 2025 18:02
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "&#128104;&zwj;&#128105;&z