Skip to content

Instantly share code, notes, and snippets.

@alanstevens
alanstevens / Windows11_Setup.md
Last active January 7, 2026 22:49
Windows 11 Setup

This guide was created using Microsoft Windows 11 Pro

Version 21H2 build 22000.194

Installation

System Updates:

  • Settings -> Windows Update
  • Install all updates

Powershell Execution Policy:

  • launch Windows Powershell as administrator and execute:
@alanstevens
alanstevens / Setup_Linux_desktop.md
Last active December 29, 2025 23:23
Setup guide for a Debian based Linux desktop

This guide was created using Debian 13 / KDE Plasmaa 6.3.6

Installation

  • Install Zed & OpenCode
curl -f https://zed.dev/install.sh | sh
curl -fsSL https://opencode.ai/install | bash
  • Install command line utilities
@alanstevens
alanstevens / macOS_Setup.md
Last active December 29, 2025 23:22
macOS Setup and Configuration

This guide was created using macOS Tahoe 26.0.1

Installation:


Install Homebrew

Follow the instructions here

Install Homebrew Packages:

@alanstevens
alanstevens / install-packages.sh
Created December 19, 2011 22:29
A script to install/uninstall my default packages on a fresh Linux Mint system.
#! /usr/bin/env bash
#
# execute this script with:
# curl https://raw.github.com/gist/1499222/install-packages.sh | sudo bash -s <username> <public_key_url>
# curl https://raw.github.com/gist/1499222/install-packages.sh | sudo bash -s 'alan' 'https://dl.dropbox.com/s/qfo16yktbn23q9j/id_rsa.pub?dl=1'
#
user_name=$1
public_key=$2
@alanstevens
alanstevens / ConEmu.xml
Last active December 17, 2021 07:19
Windows 10 setup resource files
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2021-10-09 20:14:18" build="210912">
<value name="Language" type="string" data="en"/>
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/>
<value name="StartFarFolders" type="hex" data="00"/>
@alanstevens
alanstevens / lock_down_ubuntu.sh
Created February 21, 2012 16:28
Script to lock down a new Ubuntu server
#!/bin/sh
#
# execute this script as root with:
# curl https://raw.github.com/gist/1877257/lock_down_ubuntu.sh | bash -s MyAwesomeHostName
#
if [[ ! "root" = "$(whoami)" ]] ; then
echo -e "****\nThis script must be run as root.\n****" && exit 1
fi
@alanstevens
alanstevens / RunTests.cmd
Last active November 13, 2019 22:38
RunTests.cmd
@echo off
setlocal enableextensions
set SCRIPT=%0
set DQUOTE="
set OLDDIR=%CD%
set start=%time%
:: Detect how script was launched
@echo %SCRIPT:~0,1% | findstr /l %DQUOTE% > NUL
@alanstevens
alanstevens / standard.md
Last active October 8, 2018 03:29
Proposed C# Coding Standard

Proposed C# Coding Standard

Naming

  • Method, property and class names are PascalCased (as opposed to camelCase, snake_case or kebob-case)
  • Local variables and parameters are camelCased
  • Private fields start with an underscore and are _camelCase.
  • Classes, methods and variable names should have meaningful English names using whole words where it makes sense.
  • Avoid unnecessary contractions in your names. e.g. "Product" instead "Prod"
  • Give your DTOs meaningful English names. DO NOT rename any properties on a DTO. They are necessary for mapping to the stored procedure.
  • When converting FoxPro code do not automatically use the existing variable and function names.
  • Avoid Hungarian Notation (https://en.wikipedia.org/wiki/Hungarian_notation).
@alanstevens
alanstevens / install_dotnet_2.1.sh
Last active June 29, 2018 00:34
Script to install dotnet core sdk 2.1 on Ubuntu platforms. Run it with sudo and you'll be golden.
#!/bin/sh
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y dotnet-sdk-2.1
@alanstevens
alanstevens / cloudSettings
Last active June 13, 2018 15:12
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-06-13T15:12:34.579Z","extensionVersion":"v2.9.2"}