Skip to content

Instantly share code, notes, and snippets.

@sachsgit
sachsgit / .bash_aliases
Last active June 29, 2025 02:13
Common Aliases for BASH
#!/usr/bin/bash
alias .......='cd ../../../../../..' # 6 Back
alias ......='cd ../../../../..' # 5 Back
alias .....='cd ../../../..' # 4 Back
alias ....='cd ../../..' # 3 Back
alias ...='cd ../..' # 2 Back
alias ..='cd ..' # 1 Back
@sachsgit
sachsgit / .gitconfig
Created November 17, 2021 16:01
My Git Config in $HOME directory
[color]
ui = auto
[core]
autocrlf = false
longpaths = true
[credential]
helper = wincred
useHttpPath = true
[http]
sslVerify = true
@sachsgit
sachsgit / convertAllFilesToUnix.sh
Created November 18, 2021 16:06
UNIX `find` command to find all files to apply the `dos2unix` command on them
#!/bin/bash
find . -type f \
\( -not -path "*/.git/*" \
-and -not -path "*/target/*" \
-and -not -path "*/.metadata/*" \
-and -not -path "*/.sonar*/*" \) \
-exec grep -Iq . {} \; \
-exec grep -U $'\015' {} \; \
-exec dos2unix {} \; \
-print
@pcgeek86
pcgeek86 / cheatsheet.ps1
Last active June 29, 2025 02:11
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item"
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
@ruvnet
ruvnet / performance.md
Last active June 29, 2025 06:31
AI Trading Platform with NeuralForecast Integration

Performance Analysis Report

NeuralForecast NHITS Integration Performance Validation

Date: June 2025
Analysis Period: Complete Integration Lifecycle
Report Type: Comprehensive Performance Validation


🎯 Key Features Documented

@evgenyneu
evgenyneu / setup_cursor_ubuntu.md
Last active June 29, 2025 01:58
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage
@zcroll
zcroll / JetBrains products Activation code until december 13 2024
Last active June 29, 2025 01:49
JetBrains products Activation code until december 13 2024
I2A0QUY8VU-eyJsaWNlbnNlSWQiOiJJMkEwUVVZOFZVIiwibGljZW5zZWVOYW1lIjoiVU5JVkVSU0lEQURFIEVTVEFEVUFMIERFIENBTVBJTkFTIiwiYXNzaWduZWVOYW1lIjoiVGFvYmFv77yaSkVU5YWo5a625qG25r+AIOa0u+W3peS9nOWupCAgcmVuIHpodW4gZGlhbiBtaW5n77yBIiwiYXNzaWduZWVFbWFpbCI6IlJvYmJ5X1dlbmlnZXJAb3V0bG9vay5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMjQtMTAtMTQiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNDIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNGIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkRTIiwicGFpZFVwVG8iOiIyMDI0LTEwL
#!/bin/bash
# Update on 2024/05/29
# 1. use wget to fetch latest frp version when curl was not installed
# 2. Remind users that frp will be run in non-root user
# 3. Add CI
#
# Update on 2024/04/13
# 1. Improved OS compatibility: try wget and then curl for downloading files.
#
# Update on 2024/01/26
@mrparkerlol
mrparkerlol / roblox.sh
Last active June 29, 2025 01:46
Patch to download Roblox on Apple Silicon rather than the Intel build.
#!/bin/bash
show_fps_prompt=0
unlock_fps () {
if [[ ! -d /Applications/Roblox.app/Contents/MacOS/ClientSettings ]]; then
mkdir /Applications/Roblox.app/Contents/MacOS/ClientSettings
fi
# https://stackoverflow.com/a/32890622
// This can grow a Robin Hood linear probing hash table near word-at-a-time memcpy speeds. If you're confused why I use 'keys'
// to describe the hash values, it's because my favorite perspective on Robin Hood (which I learned from Paul Khuong)
// is that it's just a sorted gap array which is MSB bucketed and insertion sorted per chain:
// https://pvk.ca/Blog/2019/09/29/a-couple-of-probabilistic-worst-case-bounds-for-robin-hood-linear-probing/
// The more widely known "max displacement" picture of Robin Hood hashing also has strengths since the max displacement
// can be stored very compactly. You can see a micro-optimized example of that here for small tables where the max displacement
// can fit in 4 bits: Sub-nanosecond Searches Using Vector Instructions, https://www.youtube.com/watch?v=paxIkKBzqBU
void grow(Table *table) {
u64 exp = 64 - table->shift;
// We grow the table downward in place by a factor of 2 (not counting the overflow area at table->end).