Skip to content

Instantly share code, notes, and snippets.

View paulevans's full-sized avatar

Paul Evans paulevans

View GitHub Profile
@paulevans
paulevans / .vimrc
Created February 13, 2017 05:46 — forked from lmeadows/.vimrc
my vimrc
set expandtab
set tabstop=4
set shiftwidth=4
set smarttab
set autoindent
set ruler
syntax on
autocmd BufNewFile,BufRead Gemfile,*.pp set filetype=ruby
autocmd BufNewFile,BufRead *.erb set filetype=eruby.html
@paulevans
paulevans / .vimrc
Created February 13, 2017 05:46 — forked from lmeadows/.vimrc
my vimrc
set expandtab
set tabstop=4
set shiftwidth=4
set smarttab
set autoindent
set ruler
syntax on
autocmd BufNewFile,BufRead Gemfile,*.pp set filetype=ruby
autocmd BufNewFile,BufRead *.erb set filetype=eruby.html
@paulevans
paulevans / path-cleanup.ps
Created April 19, 2020 18:00
Tidy up Windows PATH environment variable
# For demostration purposes only. Use at your own risk.
$OriginalMachinePath = [Environment]::GetEnvironmentVariable('Path','Machine')
$UniqueMachinePaths = ($OriginalMachinePath -split ';') | ForEach-Object {
$_.Trim([Char]'\',[Char]'/')
} | Sort-Object -Unique
$UniqueMachinePath = [string]::Join(";",$UniqueMachinePaths).Trim([Char]';')
$OriginalMachinePath > ".\original_machine_path.txt"
$UniqueMachinePath > ".\unique_machine_path.txt"