This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |