Skip to content

Instantly share code, notes, and snippets.

View henriquecarv's full-sized avatar

Henrique Carvalho da Cruz henriquecarv

View GitHub Profile
@henriquecarv
henriquecarv / code_ext.bash
Last active June 9, 2019 23:27
Visual Studio Code Extensions
code --install-extension abusaidm.html-snippets
code --install-extension formulahendry.auto-rename-tag
code --install-extension formulahendry.auto-close-tag
code --install-extension christian-kohler.path-intellisense
code --install-extension idleberg.icon-fonts
code --install-extension joshpeng.theme-onedark-sublime
code --install-extension MS-vsliveshare.vsliveshare
code --install-extension eg2.vscode-npm-script
code --install-extension christian-kohler.npm-intellisense
code --install-extension esbenp.prettier-vscode
@henriquecarv
henriquecarv / Henrique_Boxstarter.ps1
Last active August 30, 2018 14:54
Boxstarter script for windows setup
#Open CMD and execute START http://boxstarter.org/package/url? FOLLOWED BY THIS GIST'S URL
function SetPowerPlan([string]$PreferredPlan)
{
Write-Host "Setting Powerplan to $PreferredPlan"
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='$PreferredPlan'").InstanceID.tostring()
$regex = [regex]"{(.*?)}$"
$newpowerVal = $regex.Match($guid).groups[1].value
# setting power setting to high performance
powercfg -S $newpowerVal