Skip to content

Instantly share code, notes, and snippets.

View PierreZ's full-sized avatar
👨‍💻
Working from home

Pierre Zemb PierreZ

👨‍💻
Working from home
View GitHub Profile
FROM openjdk:8
RUN apt update
RUN apt install git curl curl -y
RUN curl https://getcaddy.com | bash -s personal http.cors
WORKDIR /
RUN mkdir /hands-on
ADD quantum /hands-on/quantum
ADD assets /hands-on/assets
ADD quantum /hands-on/quantum
http://0.0.0.0:80 {
tls off
browse
cors /
markdown / {
template index /templates/index.html
css /templates/index.css
}
root /Users/pierrezemb/workspace/personal/warpscript/hands-on
}
# g1_parallel_gc_threads = nthreads * 5/8 + 8
# g1_conc_gc_threads = g1_parallel_gc_threads / 4
@PierreZ
PierreZ / satellite.py
Created February 2, 2018 14:43
satellite.py
import datetime
import requests
import ephem
from math import degrees
def process(lines):
try:
iss = ephem.readtle(str(lines[0]), str(lines[1]), str(lines[2]))
except:
#include <Keyboard.h>
void setup() {
pinMode(2, INPUT_PULLUP);
// pinMode(4, INPUT_PULLUP);
pinMode(13, OUTPUT);
Keyboard.begin();
}
void loop() {
'Hello, World!' 'exo' STORE
$exo
@PierreZ
PierreZ / main.go
Created January 10, 2018 09:09
Small experiment to genererate metrics from an HTTP call, from https://github.com/davecheney/httpstat
package main
import (
"context"
"fmt"
"io"
"log"
"net/http"
"net/http/httptrace"
"net/url"
'' 'wtoken' STORE
'' 'rtoken' STORE
<'
["test{}"]
'>
JSON->
<%
PARSESELECTOR 'labels' STORE 'classname' STORE