Skip to content

Instantly share code, notes, and snippets.

@MuhammadSaim
MuhammadSaim / rarreg.key
Last active May 2, 2024 16:58
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@mifung
mifung / Cosmos DB SQL queries.md
Last active November 13, 2023 02:26
Cheat Sheet for Cosmos DB SQL queries

Notes

  • Search text is case sensitive
  • Try to force attribute and text in your search to be in the same case
  • Wildcard search use STARTSWITH and ENDSWITH
  • two different types of nulls:
  • missing elements
  • actual null values.
  • Use IS_NULL()and IS_DEFINED() functions, to detect missing attributes and ternary logic
  • Cosmos DB SQL currently does not have an equivalent of SQL LEFT() function. Instead, use SUBSTRING()
  • There is no Year() function in Cosmos DB SQL, use SUBSTRING() to the date string and isolate
@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.$$"
@parmentf
parmentf / GitCommitEmoji.md
Last active May 4, 2024 16:59
Git Commit message Emoji
@steelThread
steelThread / 1.setup.md
Created July 11, 2011 20:11
Quick study on using Redis as a scoring engine

Redis Groups

Small prototype to look at group and ranking across a lot of users.

Setup

  • 10^6 players (can easily bump)
  • 20,000 groups
  • users are randomly put into 0..5 groups using a good distribution random # generator
  • all users are playing a single game
  • assuming the setup is a point in time somewhere during the game
i
me
my
myself
we
our
ours
ourselves
you
your