View 1 - In Code.cs
public class SampleTests | |
{ | |
public bool SomeCondition => ...; | |
[Fact] | |
public void MySkipWhen() | |
{ | |
Assert.SkipWhen(SomeCondition, "This is dynamically skipped when SomeCondition is true"); | |
} |
View settings.json
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"tabWidthMode": "titleLength", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"copyOnSelect": false, | |
"copyFormatting": false, | |
"profiles": { | |
"defaults": { | |
"antialiasingMode": "grayscale", | |
"colorScheme": "Ubuntu [Dark]", |
View profiles.json
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"tabWidthMode": "titleLength", | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"copyOnSelect": false, | |
"copyFormatting": false, | |
"profiles": { | |
"defaults": { | |
"acrylicOpacity": 1, | |
"antialiasingMode": "grayscale", |
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 |
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) |
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 switch ${1-main} && git branch --merged ${1-main} | grep -v " ${1-main}$" | xargs git branch -d; }; f" | |
bdone = "!f() { git switch ${1-main} && git up && git bclean ${1-main}; }; f" |
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" | |
;; |
NewerOlder