Skip to content

Instantly share code, notes, and snippets.

🤘
All metal, all the time!

Brad Wilson bradwilson

🤘
All metal, all the time!
View GitHub Profile
@bradwilson
bradwilson / profiles.json
Last active Jun 1, 2020
Windows Terminal color schemes
View profiles.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols": 160,
"initialRows": 50,
"profiles": [
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "PowerShell",
"hidden": false,
@bradwilson
bradwilson / profiles.json
Last active Jun 11, 2020
Ubuntu color scheme for Windows Terminal
View profiles.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"initialCols": 160,
"initialRows": 50,
"profiles": [
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "PowerShell",
"hidden": false,
@bradwilson
bradwilson / profile.ps1
Last active Mar 10, 2020
Downloadable files for bradwilson.io/blog/prompt/powershell
View profile.ps1
######## POSH-GIT
# ... Import-Module for posh-git here ...
# Background colors
$GitPromptSettings.AfterStash.BackgroundColor = 0x3465A4
$GitPromptSettings.AfterStatus.BackgroundColor = 0x3465A4
$GitPromptSettings.BeforeIndex.BackgroundColor = 0x3465A4
$GitPromptSettings.BeforeStash.BackgroundColor = 0x3465A4
View gist:be689377ea2a9f8d94bf2ca3a8424cbd
Install applications:
- Beyond Compare
- Chromium
- dconf Editor
- GIMP
- Gnome Tweaks
- Htop
- Insync
- JetBrains Rider
- Remmina
@bradwilson
bradwilson / ConvertTo-MP3.ps1
Last active Mar 9, 2020
Converts FLAC/MP3 input, resamples down to ReplayGain levels, and converts to MP3. Requires on the path: flac, metaflac, ffmpeg, mogrify
View ConvertTo-MP3.ps1
param(
[string][Parameter(Mandatory=$true)]$InputFile,
[string][Parameter(Mandatory=$true)]$OutputFile,
[int]$SampleRate = 44100,
[string]$BitRate = "160k"
)
$ErrorActionPreference = "Stop"
$InputFile = [System.IO.Path]::Combine((Get-Location), $InputFile)
@bradwilson
bradwilson / normalize-names.ps1
Last active Sep 10, 2018
normalize-names.ps1
View normalize-names.ps1
param(
[string][Parameter(Mandatory = $true)] $Location,
[switch] $SkipFolderRename
)
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$oldEncoding = [Console]::OutputEncoding
$caseInsensitive = [StringComparison]"OrdinalIgnoreCase"
View docker-clean.ps1
(& docker images --all --quiet --filter 'dangling=true') | Foreach-Object {
& docker rmi $_ | out-null
}
(& docker ps --quiet --filter 'status=exited' ) | Foreach-Object {
& docker rm $_ | out-null
}
View gist:0a1589cdcbcb112a06c1fdd008f8bc16
[user]
name = Brad Wilson
email = dotnetguy@gmail.com
signingkey = 0B7BD15AD1EC5FDE
[alias]
a = add -A
abort = rebase --abort
amend = commit --amend -C HEAD
bclean = "!f() { git checkout ${1-master} && git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
@bradwilson
bradwilson / .bashrc
Last active Dec 28, 2017
*nix startup scripts
View .bashrc
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\w\a\]$PS1"
;;
View User Settings.json
{
"workbench.colorCustomizations": {
"terminal.ansiBlack": "#2e3436",
"terminal.ansiBlue": "#3465a4",
"terminal.ansiBrightBlack": "#555753",
"terminal.ansiBrightBlue": "#729fcf",
"terminal.ansiBrightCyan": "#34e2e2",
"terminal.ansiBrightGreen": "#8ae234",
"terminal.ansiBrightMagenta": "#ad7fa8",
"terminal.ansiBrightRed": "#f49797",
You can’t perform that action at this time.