Skip to content

Instantly share code, notes, and snippets.

@jonnekleijer
jonnekleijer / Equity.md
Created June 1, 2025 19:12 — forked from isaacsanders/Equity.md
Joel Spolsky on Equity for Startups

This is a post by Joel Spolsky. The original post is linked at the bottom.

This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.

The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju

@jonnekleijer
jonnekleijer / OpenWindowsTerminal.ahk
Created December 4, 2024 20:22
Open Windows Terminal AutoHotKey
; win+t - Open Windows Terminal in the current directory in the Explorer or the default directory.
#t::
{
{
selectedPath := ExplorerGetSelection()
if selectedPath {
Run '"wt.exe" "-d" "' . selectedPath . '"'
}
else {
Run "wt.exe"
git checkout feat/feature_branch
git reset --soft develop
git reset
git checkout -b feat/part1
git add [files]
git commit -m "add part 1"
(git stash)
git checkout -b feat/part2 develop
(git pop)
git add [files]
@jonnekleijer
jonnekleijer / task.yml
Created March 4, 2024 23:24
List files in azure devops
jobs:
- job: Job
steps:
- task: CmdLine@2
inputs:
script: |
echo "Structure of work folder of this pipeline:"
tree -a $(Agent.WorkFolder)/1
echo "Build.ArtifactStagingDirectory:"
@jonnekleijer
jonnekleijer / update-packages.ps1
Created November 28, 2023 23:27
Update all csproj package references
$regex = 'PackageReference Include="([^"]*)" Version="([^"]*)"'
ForEach ($file in get-childitem . -recurse | Where-Object { $_.extension -like "*proj" }) {
$packages = Get-Content $file.FullName |
select-string -pattern $regex -AllMatches |
ForEach-Object { $_.Matches } |
ForEach-Object { $_.Groups[1].Value.ToString() } |
Sort-Object -Unique
ForEach ($package in $packages) {
@jonnekleijer
jonnekleijer / GitCommitEmoji.md
Created November 19, 2023 22:28 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@jonnekleijer
jonnekleijer / Microsoft.PowerShell_profile.ps1
Last active November 17, 2024 14:39
Profile Windows Powershell
oh-my-posh --init --shell pwsh --config "${env:POSH_THEMES_PATH}/ohmyposh.json" | Invoke-Expression
Import-Module -Name Terminal-Icons
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode Windows
Set-PSReadLineKeyHandler -Key Ctrl+Shift+b `
-BriefDescription BuildCurrentDirectory `
-LongDescription "Build the current directory" `
@jonnekleijer
jonnekleijer / windows10.cmd
Created February 1, 2022 09:20
Sensible windows 10 settings
@echo off
@rem "This little script sets a few useful settings in Windows 10 that most"
@rem "serious users are likely to want; scroll through the script for details"
@rem "and disable sections you don't want."
@rem "Usage:"
@rem "Just save this file as a .bat or .cmd file and run it (with"
@rem "Administrator privileges!). You will need to re-run it after larger"
@rem "updates, as these tend to overwrite some of the settings or re-create"
@jonnekleijer
jonnekleijer / runGource.bat
Created November 24, 2021 11:40
Gource command
gource --seconds-per-day 0.01 --auto-skip-seconds 0.1 --hide filenames,dirnames,progress,date --start-position 0.5
@jonnekleijer
jonnekleijer / updatePowershell.ps1
Last active April 20, 2023 20:02
Update Powershell
Add-AppPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
winget install --id=Microsoft.PowerShell -e
winget install JanDeDobbeleer.OhMyPosh -s winget
Install-Module z -AllowClobber
Install-Module -Name Terminal-Icons -Repository PSGallery