Enabling multicast DNS (mDNS) on a server allows other hosts on the local network to address the server as <hostname>.local
.
mDNS is disabled by default in Ubuntu Server:
$ resolvectl mdns
Global: no
Link 2 (eno1): no
Enabling multicast DNS (mDNS) on a server allows other hosts on the local network to address the server as <hostname>.local
.
mDNS is disabled by default in Ubuntu Server:
$ resolvectl mdns
Global: no
Link 2 (eno1): no
<!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) { |
docker run \ | |
--name {{printf "%q" .Name}} \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- if .Runtime}} |
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; |
<?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> |
#!/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; |
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() { |
#!/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.* |
#!/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') |
#!/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")}'" |