start new:
tmux
start new with session name:
tmux new -s myname
| <div class="topic"> | |
| topics | |
| <ul> | |
| <li>this is a long subtopic and conetent</li> | |
| <li>topic2</li> | |
| <li>topic3</li> | |
| <li>topic4</li> | |
| <li>topic5</li> | |
| <li>topic6 it's also very long</li> | |
| <li>topic7</li> |
I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):
For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.
| Select all and delete (actually move to buffer) | |
| :%d | |
| Select all and copy to buffer | |
| :%y | |
| Use p to paste the buffer. |
| // Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
| import hudson.model.*; | |
| import hudson.util.*; | |
| import jenkins.model.*; | |
| import hudson.FilePath.FileCallable; | |
| import hudson.slaves.OfflineCause; | |
| import hudson.node_monitors.*; | |
| for (node in Jenkins.instance.nodes) { |
When working with Git, there are two prevailing workflows are Git workflow and feature branches. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited, and the focus of this article.
If you are new to Git and Git-workflows, I suggest reading the atlassian.com Git Workflow article in addition to this as there is more detail there than presented here.
I admit, using Bash in the command line with the standard configuration leaves a bit to be desired when it comes to awareness of state. A tool that I suggest using follows these instructions on setting up GIT Bash autocompletion. This tool will assist you to better visualize the state of a branc
| <# | |
| .Synopsis | |
| Returns the install .NET Framework versions. | |
| .Description | |
| The script looks through the registry using the notes from the below | |
| MSDN links to determine which versions of .NET are installed. |
| /* | |
| Author: Gary Clayburg | |
| This file allows IntelliJ IDEA to perform basic syntax checking and code completion for | |
| Jenkins workflow groovy scripts. https://github.com/jenkinsci/workflow-plugin | |
| These methods are supported | |
| sh | |
| readFile | |
| node | |
| echo |
| import com.cloudbees.hudson.plugins.folder.Folder | |
| import hudson.FilePath | |
| import jenkins.model.Jenkins | |
| def boolean isFolder(String name) { | |
| def item = Jenkins.instance.getItemByFullName(name) | |
| return item instanceof Folder | |
| } | |
| def deleteUnusedWorkspace(FilePath root, String path) { |
My country is under a daylight saving time period and not all my commits are made during the morning/afternoon. Because I commited after 11:00 PM - which, given the local DST, was after 00:00 AM - my 100+ days commit streak got broken - which made me very unhappy.