INSERT GRAPHIC HERE (include hyperlink in image)
Subtitle or Short Description Goes Here
| #!/bin/bash | |
| gunzip < $1 | mysql -uUSER -pPASSWORD --database=DATABASENAME |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| <# | |
| .SYNOPSIS | |
| Get the latest Cumulative update for Windows | |
| .DESCRIPTION | |
| This script will return the list of Cumulative updates for Windows 10 and Windows Server 2016 from the Microsoft Update Catalog. | |
| .NOTES | |
| Copyright Keith Garner ([email protected]), All rights reserved. |
| <# | |
| .SYNOPSIS | |
| Resize an image | |
| .DESCRIPTION | |
| Resize an image based on a new given height or width or a single dimension and a maintain ratio flag. | |
| The execution of this CmdLet creates a new file named "OriginalName_resized" and maintains the original | |
| file extension | |
| .PARAMETER Width | |
| The new width of the image. Can be given alone with the MaintainRatio flag | |
| .PARAMETER Height |
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' | |
| // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' | |
| // 1 |
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
| enum PatchLevel { | |
| MAJOR, MINOR, PATCH | |
| } | |
| class SemVer implements Serializable { | |
| private int major, minor, patch | |
| SemVer(String version) { | |
| def versionParts = version.tokenize('.') |