Skip to content

Instantly share code, notes, and snippets.

@nperovic
nperovic / windows_API_Constants.code-snippets
Created March 6, 2024 06:14
Windows API Constants Snippet for VS Code
This file has been truncated, but you can view the full file.
{
"BCM_FIRST": {
"prefix" : "BCM",
"body" : "BCM_FIRST := 0x1600",
"description": "Windows - GUI - Controls - Button - Messages (Button Messages)"
},
"BCM_GETIDEALSIZE": {
"prefix" : "BCM",
"body" : "BCM_GETIDEALSIZE := 0x1601",
"description": "Windows - GUI - Controls - Button - Messages (Button Messages)"
@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;
@kawainime
kawainime / awesome-ai-tools.md
Last active June 10, 2024 16:04
awesome-ai-tools
@EstebanMqz
EstebanMqz / Settings.md
Last active May 8, 2024 10:45
Settings.md

@AppleBoiy
AppleBoiy / alias_eza.md
Last active July 17, 2024 20:00
eza-ls

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup

@deepanchal
deepanchal / starship.toml
Last active July 6, 2024 09:30
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'
@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