Skip to content

Instantly share code, notes, and snippets.

@trippwill
trippwill / cfg-init.sh
Last active November 21, 2020 22:18
dotfiles cfg init
git init --bare $HOME/.cfg
alias cfg='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
cfg config --local status.showUntrackedFiles no
echo "alias cfg='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
syntax = "proto3";
package example_service;
service ExampleService {
rpc ExampleUnaryUnary(ExampleRequest) returns (ExampleResponse);
rpc ExampleUnaryStream(ExampleRequest) returns (stream ExampleResponse);
rpc ExampleStreamUnary(stream ExampleRequest) returns (ExampleResponse);
rpc ExampleStreamStream(stream ExampleRequest) returns (stream ExampleResponse);
}
@trippwill
trippwill / Microsoft.PowerShell_profile.ps1
Created December 9, 2019 16:57
PowerShell Core Profile
### Customize Prompt for Visual Studio Developer PowerShell
# Get the current prompt
$defaultPrompt = (Get-Item function:prompt).ScriptBlock
# Setup the custom prompt
function prompt {
$pr = if (Test-Path env:/VSINSTALLDIR) { "[VS $env:VisualStudioVersion]:" }
else {''}
Write-Host $pr -NoNewline -ForegroundColor DarkMagenta