Skip to content

Instantly share code, notes, and snippets.

View thitemple's full-sized avatar

Thiago Temple thitemple

View GitHub Profile
@thitemple
thitemple / cloudSettings
Last active January 29, 2019 19:06
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-29T19:05:58.209Z","extensionVersion":"v3.2.4"}
@thitemple
thitemple / choco_packages
Last active December 7, 2015 02:36
My boxstarter
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
choco install fiddler4
choco install sublimetext3
choco install firefox
choco install googlechrome
choco install opera
choco install git
choco install cmder -pre
@thitemple
thitemple / alias_cmder
Created October 20, 2015 13:38
My list of aliases for cmder
e.=explorer .
gl=git log --oneline --all --graph --decorate $*
ls=ls --show-control-chars -F --color $*
pwd=cd
clear=cls
history=cat %CMDER_ROOT%\config\.history
unalias=alias /d $1
cdd=e: && cd \sources\dev
@thitemple
thitemple / dev_setup.ps1
Last active November 12, 2024 15:00
A PowerShell script for installing a dev machine using Chocolatey.
function Add-Path() {
[Cmdletbinding()]
param([parameter(Mandatory=$True,ValueFromPipeline=$True,Position=0)][String[]]$AddedFolder)
# Get the current search path from the environment keys in the registry.
$OldPath=(Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment' -Name PATH).Path
# See if a new folder has been supplied.
if (!$AddedFolder) {
Return 'No Folder Supplied. $ENV:PATH Unchanged'
}
# See if the new folder exists on the file system.
@thitemple
thitemple / .gitconfig
Last active December 21, 2015 16:29
My git config file
[alias]
aa = add --all .
st = status
br = branch
cl = clone
co = checkout
ci = commit
sr = svn rebase
sci = svn dcommit
fu = reset --hard
@thitemple
thitemple / bashrc
Last active February 8, 2020 08:10
My Windows .bashrc file which I use with Git Bash.
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
SSH_ENV=$HOME/.ssh/environment
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"