Skip to content

Instantly share code, notes, and snippets.

@deepanchal
deepanchal / starship.toml
Last active January 11, 2026 15:20
Starship config
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
format = """
$username\
$hostname\
$localip\
$shlvl\
$singularity\
$kubernetes\
@OdatNurd
OdatNurd / text_highlight.py
Last active January 17, 2023 19:13
Simple Text Highlight Plugin
import sublime
import sublime_plugin
import functools
import re
# The key the key that we use to add regions for the word currently under the
# cursor (when that is turned on), the style of the regions added, and the
# scope that represents the color to use when words are highlighted.
CURRENT_WORD_KEY='_sel_word'
@Leokuma
Leokuma / theme.ahk
Last active February 2, 2025 18:35
[AHK] Toggle dark mode (Win11)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#NoTrayIcon ; If you don't want a tray icon for this AutoHotkey program.
#SingleInstance force ; Skips the dialog box and replaces the old instance automatically
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir, %A_ScriptDir% ; Set default directory to where this script file is located. (Note %% because it's expecting and unquoted string)
NumpadUp::
RegRead, light, HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize, SystemUsesLightTheme
if light {
@ChandanShakya
ChandanShakya / Dark.user.js
Last active July 11, 2023 18:17
Stripped Dark Reader UserScript (Global Dark Mode)
// ==UserScript==
// @name Dark Reader (Unofficial)
// @icon https://darkreader.org/images/darkreader-icon-256x256.png
// @namespace DarkReader
// @description Inverts the brightness of pages to reduce eye strain
// @version 4.7.15
// @author https://github.com/darkreader/darkreader#contributors
// @homepageURL https://darkreader.org/ | https://github.com/darkreader/darkreader
// @run-at document-end
// @grant none
@agyild
agyild / FSR.glsl
Last active January 13, 2026 17:14
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
[
{
"name": "3024 Day",
"black": "#090300",
"red": "#db2d20",
"green": "#01a252",
"yellow": "#fded02",
"blue": "#01a0e4",
"purple": "#a16a94",
"cyan": "#b5e4f4",
@MormonJesus69420
MormonJesus69420 / GitCommit.sublime-syntax
Created July 27, 2021 07:06
Syntax file for SublimeMerge
%YAML 1.2
---
# Highlight regular git commits, merge commits, and tags.
name: Git Commit
file_extensions:
- COMMIT_EDITMSG
- MERGE_MSG
- TAG_EDITMSG
scope: text.git.commit
[
// Toggle the most recently accessed terminus panel open and closed; will
// create a new default panel if there is none currently.
{
"keys": ["alt+`"],
"command": "toggle_terminus_panel"
},
// You can have multiple bindings to toggle multiple panels, but you must
// specify a panel_name for all of them.
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@asheroto
asheroto / Public-Key-Authentication-Troubleshooting.md
Last active November 16, 2025 13:45
OpenSSH on Windows - working sshd_config for public key authentication

Public key authentication troubleshooting

Make sure you don't have ANY instances of sshd or ssh-agent running (important):

  • Run PowerShell as Administrator:
Stop-Service sshd
Stop-Service ssh-agent
taskkill /f /im sshd.exe
taskkill /f /im ssh-agent.exe