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
| workspace: | |
| base: /build | |
| pipeline: | |
| build-image: | |
| image: docker | |
| commands: | |
| # Build development target, which includes xdebug. | |
| # Tag with both api-build:<build_number> and api-build:latest. |
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
| Jenkins.instance.getView('All').getBuilds().each { it.delete() } |
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.* | |
| def q = Jenkins.instance.queue | |
| q.items.each { | |
| if (it =~ /deploy-to/) { | |
| q.cancel(it.task) | |
| } | |
| } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ivy-settings> | |
| <settings defaultResolver="downloadGrapes" /> | |
| <resolvers> | |
| <ibiblio name="ibiblio-maven2" m2compatible="true"/> | |
| <ibiblio name="java-net-maven2" root="http://download.java.net/maven/2/" m2compatible="true" /> | |
| <ibiblio name="maven" root="http://mvnrepository.com/artifact/" m2compatible="true" /> | |
| <chain name="downloadGrapes"> | |
| <resolver ref="maven"/> | |
| <resolver ref="ibiblio-maven2"/> |
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
| { | |
| "$schema": "vscode://schemas/color-theme", | |
| "comment": "Cold Snack, created by Evan Rowe.", | |
| "author": "Evan Rowe", | |
| "name": "Cold Snack Theme", | |
| "tokenColors": [{ | |
| "settings": { | |
| "background": "#002B36", | |
| "foreground": "#93A1A1" | |
| } |
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
| package main | |
| import "fmt" | |
| func main() { | |
| slice := []string{"TEST1", "TEST2", "TEST3", "TEST4"} | |
| fmt.Println("SLICE AT START", slice) | |
| for i := len(slice) - 1; i >= 0; i-- { |
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
| class Example { | |
| String name; | |
| int ID; | |
| static void main(String[] args) { | |
| Example man = new Example() | |
| man.getStudent() | |
| println(man.name + " is " + man.ID) |
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
| #!/bin/bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| echo "Cleaning workspace" | |
| ls -1 | grep -v generate.sh | xargs rm -rf | |
| echo "Generating CA" | |
| openssl genrsa -out ./ca.key.pem 4096 | |
| openssl req -key ca.key.pem -new -x509 -days 7300 -sha256 -out ca.cert.pem |
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
| // Also available at: https://play.golang.org/p/yTTpB5gB6C | |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| // ***************************************************************************** | |
| // Example 1 - Struct vs Struct with Embedded Type |
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
| type Func func(key string) (interface{}, error) | |
| type result struct { | |
| value interface{} | |
| err error | |
| } | |
| type entry struct { | |
| res result | |
| ready chan struct{} |