This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sort all branches in repository by date updated | |
git for-each-ref --sort=committerdate refs/heads/ --format="%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))" --no-merged=origin/HEAD refs/remotes/origin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hudson.model.* | |
import hudson.security.* | |
import hudson.tasks.Mailer | |
def userId = args[0] | |
def password = args[1] | |
def email = args[2] | |
def instance = jenkins.model.Jenkins.instance | |
def existingUser = instance.securityRealm.allUsers.find {it.id == userId} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# describe ec2 instance | |
aws ec2 --region us-east-1 describe-instances --instance-ids i-xxxxxxxxxxx | |
# associate iam instance profile to running instance | |
aws ec2 associate-iam-instance-profile --instance-id i-xxxxxxxxxxx --iam-instance-profile Name=xxxxxxxxx | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# delete last commit without losing changes | |
git reset HEAD^ |
OlderNewer