This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Gist List</title> | |
<script> | |
function addElement(str, link) { |
This file contains 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
docker run \ | |
--name {{printf "%q" .Name}} \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- if .Runtime}} |
This file contains 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 java.math.BigInteger; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.Future; | |
import java.util.concurrent.TimeUnit; |
This file contains 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" standalone='no'?> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<service-group> | |
<name replace-wildcards="yes">%h</name> | |
<service> | |
<type>_adisk._tcp</type> | |
<txt-record>sys=waMa=0,adVF=0x100</txt-record> | |
<txt-record>dk0=adVN=Time Capsule,adVF=0x82</txt-record> | |
</service> | |
<service> |
This file contains 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
#!/usr/bin/env groovy | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.nio.charset.StandardCharsets; | |
import java.lang.StringBuilder; | |
import java.util.concurrent.TimeUnit; |
This file contains 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
export PATH="/usr/local/sbin:$PATH" | |
export PATH=$PATH:$M2_HOME/bin | |
export GROOVY_HOME=/usr/local/opt/groovy/libexec | |
export GOPATH="${HOME}/.go:${HOME}/devmap/go" | |
export PATH="$PATH:${GOPATH}/bin" | |
function setjdk() { |
This file contains 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
#!/usr/bin/env groovy | |
// Java 9 or later (…for the TIFF ImageIO Plugin) | |
@Grab(group='ch.qos.logback', module='logback-classic', version='1.2.3') | |
@Grab(group='org.apache.pdfbox', module='pdfbox', version='2.0.15') | |
@Grab(group='commons-io', module='commons-io', version='2.6') | |
import org.apache.pdfbox.pdfwriter.* | |
import org.apache.pdfbox.pdmodel.* |
This file contains 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
#!/usr/bin/env groovy | |
package myapp | |
@Grab('org.springframework:spring-context:5.1.6.RELEASE') | |
@Grab('org.springframework:spring-web:5.1.6.RELEASE') | |
@Grab('org.springframework.boot:spring-boot:2.1.4.RELEASE') | |
@Grab('org.springframework.boot:spring-boot-starter:2.1.4.RELEASE') | |
@Grab('org.springframework.boot:spring-boot-starter-webflux:2.1.4.RELEASE') |
This file contains 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
#!/usr/bin/env groovy | |
Boolean TRUE = true | |
Boolean FALSE = false | |
println "Boolean true => string: '${Boolean.toString(TRUE)}'" | |
println "Boolean false => string: '${Boolean.toString(FALSE)}'" | |
println "String 'true' => string: '${Boolean.parseBoolean("true")}'" | |
println "String 'TRUE' => string: '${Boolean.parseBoolean("TRUE")}'" |
This file contains 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
#!/usr/bin/env groovy | |
import groovy.xml.XmlUtil | |
import javax.net.ssl.SSLSession | |
import javax.net.ssl.HostnameVerifier | |
import javax.net.ssl.SSLContext | |
import javax.net.ssl.HttpsURLConnection | |
import static javax.net.ssl.HttpsURLConnection.HTTP_OK |
NewerOlder