Skip to content

Instantly share code, notes, and snippets.

View techouse's full-sized avatar
🏛️
Crash early. A dead program normally does a lot less damage than a crippled one.

Klemen Tusar techouse

🏛️
Crash early. A dead program normally does a lot less damage than a crippled one.
View GitHub Profile
@IgorWarzocha
IgorWarzocha / GPT-5.6-model-selection-guide.md
Created July 11, 2026 12:12
https://artificialanalysis.ai/ - slopanalysis - comparison for all 5.6 models

GPT‑5.6 Sol, Terra, and Luna: a practical model-selection guide

Data snapshot: 11 July 2026
Primary source: Artificial Analysis GPT‑5.6 launch analysis and its live LLM leaderboard
Scope: all 15 combinations of Sol, Terra, and Luna at low, medium, high, xhigh, and max reasoning effort.

Short answer: Default to Luna for volume work and Sol when quality matters. Treat Terra as a dominated middle tier, not a default. Raise reasoning effort before moving to a larger model when the next effort remains on the better price/intelligence frontier. Use Sol max only where the last few quality points can change the outcome.


@karpathy
karpathy / microgpt.py
Last active September 9, 2026 11:46
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@karansinghgit
karansinghgit / del_vscode_mac.md
Last active August 14, 2026 21:14
How to completely uninstall VSCode on Mac
  1. Close and Quit VSCode

  2. Remove VScode from Applications (just go to Finder -> Applications and move VSCode to Bin)

  3. Execute these commands in any order. The paths might be slightly different for you.

rm -fr ~/.vscode*
rm -fr ~/Library/Application\ Support/Code/

rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
@seunggabi
seunggabi / semantic-branch-names.md
Last active August 24, 2026 14:28
Semantic Branch Names

Semantic Branch Names

See how a minor change to your branch name style can make you a better programmer.

Format: <type>/#<issueNumber>-<alias>

Example

@bitmvr
bitmvr / example--parse-semver-with-bash.sh
Last active August 5, 2025 18:03
A POSIX Compliant SemVer Parser in Pure Bash
#!/usr/bin/env bash
VERSION="${1#[vV]}"
VERSION_MAJOR="${VERSION%%.*}"
VERSION_MINOR_PATCH="${VERSION#*.}"
VERSION_MINOR="${VERSION_MINOR_PATCH%%.*}"
VERSION_PATCH_PRE_RELEASE="${VERSION_MINOR_PATCH#*.}"
VERSION_PATCH="${VERSION_PATCH_PRE_RELEASE%%[-+]*}"
VERSION_PRE_RELEASE=""
// On PhpStorm, when ussing with laravel mix, for Alias path resolving in components you have to:
// - create a webpack.config.js file separately like:
const path = require('path')
const webpack = require('webpack')
module.exports = {
...
resolve: {
extensions: ['.js', '.json', '.vue'],
@rhukster
rhukster / sphp.sh
Last active January 6, 2026 10:00
Easy Brew PHP version switching (Now moved to https://github.com/rhukster/sphp.sh)
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
#
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh
# >>> Kept here for legacy purposes
#
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active September 9, 2026 16:16
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@peterdemartini
peterdemartini / command.sh
Last active May 27, 2026 09:51
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion
@nrollr
nrollr / MySQL_macOS_Sierra.md
Last active June 16, 2026 13:34
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :