A JVM patched with DCE hotswap capabilities.
https://github.com/dcevm/dcevm/releases
Download latest release - this pertains to a specific JVM release.
""" | |
Generate a year's worth of \"Week notes\" blog content files using ISO week format. | |
Usage: cd <hugo content sub-folder> && python3 <year> | |
E.g. $ cd ~/hugo/content/blog | |
$ python3 ~/hugo/scripts/gen_weeknotes.py 2019 | |
Produces a folder for each week for publication on a Sunday: | |
20190106-weeknotes-2019W01 to 20191229-weeknotes-2019W52 | |
Each with an index.md having suitable frontmatter: E.g. week 31 of 2019 looks like: |
<!-- save in /layouts/shortcodes/tct.html --> | |
<!-- usage: {{< tct >}} --> | |
<div> | |
{{- with $.Page.Params.images -}} | |
<span>Image: page.params.images[0]: <code>{{ index . 0 | absURL }}</code> </span> | |
{{ else -}} | |
{{- $images := $.Page.Resources.ByType "image" -}} | |
{{- $featured := $images.GetMatch "*feature*" -}} | |
{{- $featured := cond (ne $featured nil) $featured ($images.GetMatch "{*cover*,*thumbnail*}") -}} | |
{{- with $featured -}} |
#!/bin/bash | |
# Inserts a single Red background highlight at the chosen character position | |
# usage: hl -c <pos> <file> | |
# | |
# E.g. /usr/local/bin/hl -c 384 /tmp/query.sql | |
head $1 $2 $3; \ | |
gecho -e -n "\e[41m"; \ |
# OVPN local build | |
export GOPATH=/root/gocode | |
cd /root/gocode | |
go get -u github.com/cad/ovpm/... | |
go get -u github.com/jteeuwen/go-bindata/... | |
cd ~/gocode/src/github.com/cad/ovpm |
import static org.assertj.core.api.Assertions.assertThat; | |
import java.io.InputStreamReader; | |
import java.util.Random; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
import org.junit.Test; |
A JVM patched with DCE hotswap capabilities.
https://github.com/dcevm/dcevm/releases
Download latest release - this pertains to a specific JVM release.
package net._95point2.common.logging; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.nio.charset.Charset; | |
import ch.qos.logback.access.spi.IAccessEvent; | |
import ch.qos.logback.core.OutputStreamAppender; | |
import ch.qos.logback.core.encoder.Encoder; | |
import ch.qos.logback.core.encoder.LayoutWrappingEncoder; |
/** | |
* inspired by https://timeago.yarp.com but useful if you already have moment.js and don't want another library. | |
* | |
* using moment.js, make relative times. | |
* | |
* Public Domain - See LICENSE.txt | |
* | |
* <time datetime="2018-05-02 16:16:33.58">2018-05-02 16:16:33.58</time> | |
* gives | |
* <time datetime="2018-05-02 16:16:33.58">26 minutes ago</time> |
<html> | |
<head> | |
<title>Demo leaflet.TileLayer.WMTS</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script> | |
<script src="https://rawgithub.com/mylen/leaflet.TileLayer.WMTS/master/leaflet-tilelayer-wmts.js"></script> | |
</head> | |
<body> |
#!/usr/bin/python3 | |
# EASY-INSTALL-ENTRY-SCRIPT: 'temperusb==1.5.3','console_scripts','temper-poll' | |
__requires__ = 'temperusb==1.5.3' | |
from temperusb.temper import TemperHandler | |
from paho.mqtt.publish import single as mqtt_single | |
def getTempReading(): | |
th = TemperHandler() | |
devs = th.get_devices() | |
readings = [] |