Skip to content

Instantly share code, notes, and snippets.

@jedimstr
jedimstr / identify_drive.sh
Created July 31, 2017 04:28
Identify Drive for unRAID or Linux
#!/bin/bash
export OMIT=0
[ ${DEBUG:=0} -gt 0 ] && set -x -v
declare -a DRIVES MODELS CHOICE
typeset -x DRIVES MODELS CHOICE CMDS
TMPFILE="/tmp/identify_drive.$$"
@guvener
guvener / tw-background-hex.md
Created April 30, 2022 08:46
Tailwind background colors HEX codes
@bkaradzic
bkaradzic / orthodoxc++.md
Last active March 22, 2025 11:32
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

This file has been truncated, but you can view the full file.
.
├── CACHEDIR.TAG
├── onj3.andrelouis.com
│   ├── Doom - E1M1.mid
│   ├── E1M1.mid
│   ├── MT32_CONTROL.1987-10-07.v1.07.ROM
│   ├── MT32_PCM.ROM
│   └── phonetones
│   ├── Carriers
@skoqaq
skoqaq / build4123.sublime4.key
Last active March 22, 2025 11:28
Sublime Text 4 License Key
—– BEGIN LICENSE —–
Mifeng User
Single User License
EA7E-1184812
C0DAA9CD 6BE825B5 FF935692 1750523A
EDF59D3F A3BD6C96 F8D33866 3F1CCCEA
1C25BE4D 25B1C4CC 5110C20E 5246CC42
D232C83B C99CCC42 0E32890C B6CBF018
B1D4C178 2F9DDB16 ABAA74E5 95304BEF
9D0CCFA9 8AF8F8E2 1E0A955E 4771A576
@t3dotgg
t3dotgg / try-catch.ts
Last active March 22, 2025 11:28
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@judero01col
judero01col / Service KMS
Last active March 22, 2025 11:26
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@lenalebt
lenalebt / .bashrc
Last active March 22, 2025 11:25
How to build a temporary context for taskwarrior
#I added a temporary context for taskwarrior using some bash commands and aliases.
#Here I show how it works.
#
#I wanted my bash prompt to show my temporary context, and I wanted that temporary context to be easily set and reset.
#you may find this at /usr/share/bash-completion/completions instead of in your home directory
source ~/.bash_completion.d/task.sh
alias task='task $DEFAULT_TASK_OPTIONS'
#short for task add, automatically marking it as something new ("inbox") and for something not work-related
ls - The most frequently used command in Linux to list directories
pwd - Print working directory command in Linux
cd - Linux command to navigate through directories
mkdir - Command used to create directories in Linux
mv - Move or rename files in Linux
cp - Similar usage as mv but for copying files in Linux
rm - Delete files or directories
touch - Create blank/empty files
ln - Create symbolic links (shortcuts) to other files
cat - Display file contents on the terminal
@abdurrahmanekr
abdurrahmanekr / gist:2747d704edec93a06e454eba2653e0df
Last active March 22, 2025 11:21
WhatsApp original chat background image

WhatsApp original chat background image

WhatsApp original darkmoda background image