Skip to content

Instantly share code, notes, and snippets.

View jthelin's full-sized avatar

Jorgen Thelin jthelin

View GitHub Profile
@ferventcoder
ferventcoder / setup.cmd
Created July 26, 2011 20:22
Setting up a development environment with chocolatey
@echo off
SET DIR=%~dp0%
@PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%setup.ps1' %*"
pause
@ferventcoder
ferventcoder / setup.ps1
Last active December 12, 2019 16:59
Really rocking out the environment setup
$scriptDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
function Install-NeededFor {
param(
[string] $packageName = ''
,[bool] $defaultAnswer = $true
)
if ($packageName -eq '') {return $false}
$yes = '6'
@apontious
apontious / Create AssetCatalog JSON File.py
Created April 14, 2014 02:35
Python script used for failed project for Edge Cases 82: Asset Catalogs
#!/usr/bin/python
import os
import json
imageInfo = dict()
def AddImageInfoForAssetDir(assetDir):
for root, dirs, files in os.walk(assetDir):
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active July 14, 2024 15:27
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@jberezanski
jberezanski / setup-server.ps1
Created May 28, 2014 21:24
Script to setup Chocolatey and install packages in one go, at machine scope, compatible with Azure VM script extension.
#Requires -Version 3
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version 3
# setup Chocolatey and apply patches
Write-Host 'Installing Chocolatey'
$Env:ChocolateyInstall = "$Env:SystemDrive\chocolatey"
$Env:ChocolateyBinRoot = "$Env:ChocolateyInstall\tools"
[Environment]::SetEnvironmentVariable('ChocolateyInstall', $Env:ChocolateyInstall, 'Machine')
@staltz
staltz / introrx.md
Last active July 15, 2024 15:43
The introduction to Reactive Programming you've been missing
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst 1password
cinst 7zip
cinst 7zip.install
cinst AdobeAIR
cinst adobereader
cinst Atom
cinst markdownpad2
@jashkenas
jashkenas / semantic-pedantic.md
Last active July 13, 2024 04:25
Why Semantic Versioning Isn't

Spurred by recent events (https://news.ycombinator.com/item?id=8244700), this is a quick set of jotted-down thoughts about the state of "Semantic" Versioning, and why we should be fighting the good fight against it.

For a long time in the history of software, version numbers indicated the relative progress and change in a given piece of software. A major release (1.x.x) was major, a minor release (x.1.x) was minor, and a patch release was just a small patch. You could evaluate a given piece of software by name + version, and get a feeling for how far away version 2.0.1 was from version 2.8.0.

But Semantic Versioning (henceforth, SemVer), as specified at http://semver.org/, changes this to prioritize a mechanistic understanding of a codebase over a human one. Any "breaking" change to the software must be accompanied with a new major version number. It's alright for robots, but bad for us.

SemVer tries to compress a huge amount of information — the nature of the change, the percentage of users that wil

@jthelin
jthelin / Microsoft.PowerShell_profile.ps1
Created February 13, 2015 18:05
PoshGit -- PS Profile code to support different depot root locations on different machines.
if (Test-Path 'E:\Depot')
{
$DepotPath = 'E:\Depot'
}
else
{
$DepotPath = 'C:\Depot'
}
# Load posh-git example profile
@chgeuer
chgeuer / Dockerfile
Last active May 29, 2018 21:59
Running Orleans in Docker
FROM ubuntu:14.04.2
MAINTAINER chgeuer@microsoft.com
RUN apt-get update && \
apt-get install mono-complete curl unzip && \
mkdir /usr/local/orleans && \
curl https://chgeuer.blob.core.windows.net/public/orleans1_0.zip > /usr/local/orleans/orleans1_0.zip && \
cd /usr/local/orleans && \
unzip orleans1_0.zip