Skip to content

Instantly share code, notes, and snippets.

@jlangridge
jlangridge / begin.sh
Last active August 9, 2018 06:34
Short script to update jira and branch for new issues
#!/bin/sh
#Requires Jira CLI, from https://marketplace.atlassian.com/download/plugins/org.swift.atlassian.cli/version/110
JIRAUSER=[Username]
JIRAPASSWORD=******
JIRASERVER=http://[Jira address]
DEVELOPMENT_HOME=[Git repo (local)]
JIRA_CLI_HOME=/c/Atlassian/jira-cli-3.0.0
function callJira {
java -jar $JIRA_CLI_HOME/lib/jira-cli-3.0.0.jar --server $JIRASERVER --user $JIRAUSER --password $JIRAPASSWORD "$@"
@jlangridge
jlangridge / gist:4605628
Created January 23, 2013 13:33
Branchageddon
git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
grep -iv 4.2.8Release |
grep -iv 4.2.7Release |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete
@jlangridge
jlangridge / gist:5142969
Last active December 14, 2015 20:19
Small shell script to automate jira ticket management
#!/bin/bash
#Requires Jira Cli (https://marketplace.atlassian.com/plugins/org.swift.jira.cli)
#and JIRA_USER, JIRA_PASSWORD, JIRA_SERVER and DEVELOPMENT_HOME
#to be set
JIRA_CLI_HOME=/c/Atlassian/jira-cli-3.0.0
echo $JIRA_CLI_HOME
function callJira {
java -jar $JIRA_CLI_HOME/lib/jira-cli-3.0.0.jar --server $JIRA_SERVER --user $JIRA_USER --password $JIRA_PASSWORD "$@"
}
@jlangridge
jlangridge / vagrant-safeup
Created November 19, 2013 12:46
Suspend all running parallels instances before launching vagrant. To try and prevent http://kb.parallels.com/en/115966
prlctl list | awk '{print $2}' | grep running && prlctl list | awk 'NR>1 {print $1}' | xargs prlctl suspend
vagrant up
@jlangridge
jlangridge / DevMachineBuild-VSInstalled.ps1
Last active March 5, 2021 15:50
Dev Machine Boxstarter Build
# Initial attempt at a standard dev machine build
# Run with BoxStarter - http://boxstarter.org
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst IIS-WebServerRole -source windowsfeatures
choco feature enable -n allowGlobalConfirmation
# R#..