Skip to content

Instantly share code, notes, and snippets.

View vincelee888's full-sized avatar
🙈

Vince Lee vincelee888

🙈
View GitHub Profile
plugins=(
azure
dirhistory
git
safe-paste
z
zsh-autosuggestions
)
alias df="dotnet format"
#!/bin/bash
MSG_PAUSE_PERIOD_S=1
MIN_LOOP_PAUSE_PERIOD_S=5
SUCCESSFUL_LOOPS=0
REVERTS=0
if [ -z $1 ]; then
LOOP_PAUSE_PERIOD_S=60
elif [ $1 -lt $MIN_LOOP_PAUSE_PERIOD_S ]; then
$GitPromptSettings.DefaultPromptPrefix.Text = '$(Get-Date -f "HH:mm:ss") '
$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Magenta
$GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true
$GitPromptSettings.DefaultPromptPath.ForegroundColor = 0xFFA500
$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n'
choco feature enable -n allowGlobalConfirmation
choco install firacode
choco install firefox
choco install steam
choco install lastpass
choco install slack
choco install git
choco install sourcetree
choco install visualstudiocode
@vincelee888
vincelee888 / pre-push
Created February 21, 2018 11:53
blocks pushing of SAVEPOINT or parked work in progress commits - use: git config --global core.hooksPath /path/to/my/centralized/hooks
#!/bin/sh
# blocks pushing of repo with "SAVEPOINT" or "park".
# Based on https://github.com/raven/git-prepush-recipes/blob/master/pre-push.sample
remote="$1"
url="$2"
@vincelee888
vincelee888 / DateTimeIsApproximatelyEqualAssertion.cs
Created August 31, 2017 10:24
NUnit assertion for DateTime comparison
using System;
using NUnit.Framework.Constraints;
namespace Foundation.Testing.Assertions
{
public sealed class DateTimeIsApproximatelyConstraint : Constraint
{
private readonly DateTime _upper;
private readonly DateTime _lower;
// Place your settings in this file to overwrite the default settings
{
"standard.enable": true,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"files.eol": "\n",
"editor.tabSize": 2,
"window.zoomLevel": -1,
"terminal.integrated.shell.windows": "\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe",
"workbench.startupEditor": "newUntitledFile",
[user]
name = vince
email = vince@
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
co = checkout
br = branch
ci = commit
st = status