Skip to content

Instantly share code, notes, and snippets.

View bcawrse's full-sized avatar

Ben Cawrse bcawrse

View GitHub Profile

Notes on Fixing key-repeat for vscode on Mac

Particularly useful if you use vim in vscode. This helps the directional keys work while holding them down, instead of just moving 1 place.

Fix found on this ticket and this SO article

$ defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # For VS Code

@bcawrse
bcawrse / powerline-test.sh
Created October 1, 2020 16:53 — forked from gdetrez/powerline-test.sh
Powerine font test
#!/bin/bash
echo -e "Powerline glyphs:\n\
Code points Glyphe Description Old code point
U+E0A0 \xee\x82\xa0 Version control branch (U+2B60 \xe2\xad\xa0 )\n\
U+E0A1 \xee\x82\xa1 LN (line) symbol (U+2B61 \xe2\xad\xa1 )\n\
U+E0A2 \xee\x82\xa2 Closed padlock (U+2B64 \xe2\xad\xa4 )\n\
U+E0B0 \xee\x82\xb0 Rightwards black arrowhead (U+2B80 \xe2\xae\x80 )\n\
U+E0B1 \xee\x82\xb1 Rightwards arrowhead (U+2B81 \xe2\xae\x81 )\n\
U+E0B2 \xee\x82\xb2 Leftwards black arrowhead (U+2B82 \xe2\xae\x82 )\n\
@bcawrse
bcawrse / Disable git in ZSH themes.md
Created August 14, 2020 15:55
config flags to remove git from ZSH theme CLI prompts (for slow repos)
@bcawrse
bcawrse / publish-ghpages.md
Created July 26, 2020 23:19 — forked from tduarte/publish-ghpages.md
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
@bcawrse
bcawrse / roslynFix.md
Created May 19, 2020 16:47
Rolsyn csc.exe missing for ASP .Net MVC applications

Error with csc.exe missing on build

This error crops up every once in awhile when swapping projects. This stack overflow has a good overview / solution SO Link; the answer with the most votes, not the accepted answer.

Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r

@bcawrse
bcawrse / winIpReset.md
Last active May 6, 2020 18:33
Windows IP reset for VPN issues

Reset Windows TCP / IP For Clearing VPN Issues

Run these commands in an elevated command prompt.

netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns

@bcawrse
bcawrse / gist:97e7df22fc3fddc3c501f8ae7cb215ee
Last active March 7, 2020 02:23
Docker CLI clif-Notes

Docker CLI Refresher for when it's been awhile

Running things

Docker Compose!

docker-compose is super helpful to start docker stuff. Create a docker file, I've been having the best luck with version 3.1, and run docker-compose up. It's super nice.

docker-compose up -d runs docker-compose in detatched mode.

Side-notes

Breweries around Hampton Roads!

If you care most about seeing cool breweries with good beer I'd be sure to hit The Veil, O'Connor, Wasserhund, Back Bay's Farmhouse, and Big Ugly. I probably wouldn't do them all in a day because they're so spread out but they're my favorites. I'd recommend hitting all of norfolk and an area of Va Beach for a long day of brewery hopping, then pottentially snagging the outliers another day. most rotate through food trucks, but you'll have to call or check their calendar to be sure; a few have food on-site.

Norfolk Scene

If you're focused on Norfolk I'd hit Benchtop, Smartmouth, Elation, ( food at hanks? ), The Veil ( food at the veil? ), O'Connor ( normally food trucks? ), Rip Rap, Maker's w/ a cigar.

All pretty close to each other we've got...

@bcawrse
bcawrse / install-choco-script.bat
Last active December 30, 2019 14:49 — forked from zaccb/install-choco-script.bat
Chocolatey install script
:: Install choco .exe and add choco to PATH
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install all the packages
:::: Browsers
choco install googlechrome -fy
choco install firefox -fy
:::: Text editors / IDEs
::choco install atom -fy
/****** Object: StoredProcedure [dbo].[usp_showIndexFragmentation] Script Date: 12/10/2019 3:15:50 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>