Skip to content

Instantly share code, notes, and snippets.

@crejb
crejb / keybindings.json
Last active March 15, 2019 05:24
VS Code Keyboard Bindings
[
{
"key": "ctrl+alt+left",
"command": "subwordNavigation.cursorSubwordLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+right",
"command": "subwordNavigation.cursorSubwordRight",
"when": "editorTextFocus"
@crejb
crejb / Microsoft.PowerShell_profile.ps1
Created February 13, 2017 03:43
Powershell Profile
# C:\Users\[username]\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-git module from current directory
Import-Module -Name posh-git
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git
@crejb
crejb / bamboo_build.ps1
Last active October 6, 2021 10:35
Remotely trigger/queue a Bamboo build from command line via the Rest API
# Disable progress bars created by Invoke-RestMethod which internally uses Write-Progress)
$progressPreference = 'silentlyContinue'
$url = 'http://bamboohost:8085/'
$apiUrl = $url + "rest/api/latest/"
$project = 'ZZ-ZZZ'
$queueUrl = ("{0}queue/{1}" -f $apiUrl, $project)
$username='username'
$password='password'