Skip to content

Instantly share code, notes, and snippets.

@AnjanJ
AnjanJ / debug.json
Last active November 17, 2025 06:53
zed settings,tasks and debug.json
[
{
"name": "Ruby: Debug Current File",
"type": "ruby",
"request": "launch",
"program": "${file}",
"cwd": "${workspaceFolder}",
"useBundler": true,
"pathToBundler": "/usr/local/bin/bundle",
"pathToRDebugIDE": "rdebug-ide",
/*
This is a productivity enhancer plus some quality-of-life features that takes care of tedious tasks for you, saving time for what matters. Click on the tray icon to view hotkey info.
You'll find an embedded INI at the bottom of this script. However, you have to follow these two steps before you can run this script:
Download and unzip archive in `Lib` folder: https://github.com/thqby/winrt.ahk
Download raw file into `Lib` folder: https://github.com/Descolada/UIA-v2/blob/main/Lib/UIA.ahk
********** EIGHT-HOTKEY REMOTE **********
Multi- and single-function hotkeys.
TIP: change the `Run` setting to `Maximize` in the properties wnd of the Paint shortcut (b/c the snip feature can open Paint in a small wnd, which will be remembered by the OS).
And go to `Settings > System > Focus assist` to turn off all `Automatic rules`, so that TrayTip notification banners can also be shown on the desktop wnd for example.
@flipeador
flipeador / configure-adguard-dns.ps1
Last active May 23, 2025 00:39
Configure AdGuard DNS (Encrypted) in Windows 11 with PowerShell.
# Configure the public AdGuard DNS server with DoH (Encrypted) programatically in W11.
# https://adguard-dns.io/en/public-dns.html#:~:text=Configure%20AdGuard%20DNS%20manually
# Define AdGuard DNS servers and their DoH template.
$servers4 = @(
# IPv4 default servers: block ads and trackers.
@{ address = "94.140.14.14"; template = "https://dns.adguard-dns.com/dns-query" },
@{ address = "94.140.15.15"; template = "https://dns.adguard-dns.com/dns-query" }
)
@oca159
oca159 / keymap.json
Last active December 7, 2025 19:45
zed keymap.json with same lazyvim keymaps
[
// Terminal
{
"context": "Workspace",
"bindings": {
"ctrl-/": "workspace::ToggleBottomDock"
}
},
// Window's navigation
{
@cjbayliss
cjbayliss / dark-mode.js
Last active December 10, 2024 23:21
dark-mode.js
// ==UserScript==
// @name dark-mode
// @match *://*/*
// @grant none
// @version 1.1
// @author cjb
// @run-at document-start
// ==/UserScript==
const adjustColors = () => {
@schacon
schacon / better-git-branch.sh
Created January 13, 2024 18:41
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'
@ryanrudolfoba
ryanrudolfoba / SteamOS-Recovery-Downloader-and-Flasher.sh
Created January 9, 2024 21:04
Script for SteamOS to easily download and flash the latest SteamOS Recovery Image to a USB device
#!/bin/bash
# SteamOS Recovery Downloader and Flasher
# script by ryanrudolf
# https://github.com/ryanrudolfoba
# https://youtube.com/@10minutesteamdeckgamer
#
# script will create the directory - ~/SteamOS-Recovery-Downloader and automatically download the latest SteamOS Recovery Image.
# script will perform a md5 check to make sure that download is not corrupted and finally flash the image to the USB device.
# if there are multiple USB devices, the script will exit immediately. Plug in a single USB device that you want to flash and re-run the script.
#
@wesbos
wesbos / logger.js
Created January 8, 2024 15:55
console.log line numbers in Node.js
// Use like this: node --import logger.js yourapp.js
import path from 'path';
const { log } = console;
[`debug`, `log`, `warn`, `error`, `table`, `dir`].forEach((methodName) => {
const originalLoggingMethod = console[methodName];
console[methodName] = (...args) => {
const originalPrepareStackTrace = Error.prepareStackTrace;
Error.prepareStackTrace = (_, stack) => stack;
@EstebanMqz
EstebanMqz / Settings.md
Last active October 4, 2024 04:08
Settings.md

Taskbar Dimmer Autohotkey Script

This Autohotkey script is intended to dim the taskbar when it is not needed in order to reduce the burn-in effect on OLED displays.

Source/Credit

This script originally came from: https://superuser.com/a/1691664

Original script from the link above: