Skip to content

Instantly share code, notes, and snippets.

@mattdsteele
mattdsteele / add_wsl_exclusions.ps1
Created October 23, 2018 03:07 — forked from ian-p-cooke/add_wsl_exclusions.ps1
powershell script to add WSL exclusions
$win_user = "matt"
$linux_user = "matt"
$package = "TheDebianProject.DebianGNULinux_76v4gfsz19hv4"
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs"
$dirs = @("\bin", "\sbin", "\usr\bin", "\usr\sbin", "\home\" + $linux_user + "\.cargo\bin")
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") }
Add-MpPreference -ExclusionPath $base_path
@mattdsteele
mattdsteele / game_of_life.rb
Created February 12, 2012 05:36 — forked from steven-s/game_of_life.rb
Conway's Game of Life with Ruby and RSpec
require 'rspec'
class World
attr_accessor :cells
def initialize
@cells = []
end
def tick