Skip to content

Instantly share code, notes, and snippets.

View jdevoo's full-sized avatar

JP de Vooght jdevoo

View GitHub Profile
@jdevoo
jdevoo / tg2p.st
Last active February 19, 2024 22:12
Not so Terse Guide to Pharo
"**************************************************************************
* Allowable characters: *
* - a-z *
* - A-Z *
* - 0-9 *
* - .+/\*~<>@%|&? *
* - blank, tab, cr, ff, lf *
* *
* Variables: *
* - variables must be declared before use *
@jdevoo
jdevoo / slog.html
Last active July 6, 2016 08:27
slog data
<p>I use this section to display hard sensing data. It is what UCLA <a href="http://research.cens.ucla.edu/">CENS</a> would call a “Slog” or Sensor Log and a playground for experimenting with visualization and sensor technologies.</p>
<p>More details about the <a href="https://plus.google.com/105774606404573622287?rel=author">instrument and methodology</a> will follow. As data is stored in Google <a href="http://www.google.com/drive/apps.html#fusiontables">Fusion Tables</a>, it is subject to access restrictions and may not appear if quotas are exceeded.</p>
<form>
<select onchange="document.getElementById('ecoviz').contentWindow.postMessage(this[this.selectedIndex].value,'http://vooght.de');">
<option value="1EJZdBgl8rslSsSbvsc9AC_eqtANoJHWGC7ADEEc">Sensor on Dashboard</option>
<option value="1DajIRDHb298ugvCItAO5TWYtfPKmHRctfRaNn_U">Lausanne Bus+Walking</option>
<option value="1uCR2YDxOTDwGN-yCdYQev9I6EyoY2-LUP5L0ThA">Walking through UCLA Campus</option>
<option value="1_ag8bMnnrSgnKmOJus1C2g45-S1W
@jdevoo
jdevoo / _ecoviz.html
Last active July 6, 2016 08:31
ecoviz widget
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>Data</title>
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
<script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="http://vooght.de/raphael-min.js"></script>
<script src="http://vooght.de/morris.min.js"></script>
# AMIDST Notes
mvn clean dependency:copy-dependencies package
## core
java -Xmx5G -cp ./core/target/*:./core/target/dependency/* eu.amidst.core.learning.parametric.bayesian.DriftSVB
java -Xmx5G -cp ./core/target/*:./core/target/dependency/* eu.amidst.core.learning.parametric.bayesian.MultiDriftSVB
#!/bin/bash
cat list | while read -r file url; do
post=$(basename "$file")
image=$(basename "$url")
outfile="${post%.*}.${image##*.}"
if [ -f ${outfile} ] ; then
count=$( find . -name "${post%.*}*" 2> /dev/null | wc -l )
outfile="${post%.*}-${count}.${image##*.}"
fi
wget ${url} -O ${outfile}
@jdevoo
jdevoo / p2p.md
Last active October 25, 2017 15:27

infrastructure

docker images installed

REPOSITORY           TAG                 IMAGE ID            CREATED             SIZE
ethereum/solc        stable              efe0ae340953        4 weeks ago         13.1MB
ethereum/client-go   alpine              314091749c85        5 weeks ago         40.3MB

init.bat

@echo off
FROM openjdk:8-jre-alpine
RUN apk update && apk add curl ca-certificates git subversion less nodejs-npm && npm install -g gulp-cli
WORKDIR /root
RUN npm install code-forensics
ENTRYPOINT ["gulp"]
version: "2.0"
services:
sql:
image: kapua/kapua-sql
ports:
- 3306:3306
- 8181:8181
elasticsearch:
image: elasticsearch:5.4.0
ports:
@jdevoo
jdevoo / Dockerfile
Created June 2, 2018 07:08
govim with exercism
FROM golang:latest
ARG EXERCISM_API_KEY
ADD templates/ /
# build and install vim
RUN apt-get update && apt-get install -y ncurses-dev ctags && cd /tmp && git clone https://github.com/vim/vim.git && cd vim && ./configure --with-features=huge --enable-gui=no --without-x --prefix=/usr && make VIMRUNTIMEDIR=/usr/share/vim/vim80 && make install
# install go tools
@jdevoo
jdevoo / log
Created October 3, 2018 06:29
result from docker logs -f peer1
WARN [10-03|06:27:01.930] Sanitizing cache to Go's GC limits provided=1024 updated=660
DEBUG[10-03|06:27:01.931] Sanitizing Go's GC trigger percent=100
INFO [10-03|06:27:01.932] Maximum peer count ETH=25 LES=0 total=25
DEBUG[10-03|06:27:01.941] FS scan times list=3.531ms set=9.2µs diff=3.3µs
TRACE[10-03|06:27:01.948] Started watching keystore folder path=/root/.ethereum/keystore
TRACE[10-03|06:27:01.958] Handled keystore changes time=16.6058ms
INFO [10-03|06:27:02.004] Starting peer-to-peer node instance=Geth/peer1/v1.8.16-stable-477eb093/linux-amd64/go1.9.4
INFO [10-03|06:27:02.004] Allocated cache and file handles database=/root/.ethereum/geth/chaindata cache=495 handles=1024
INFO [10-03|06:27:02.241] Initialised chain configuration config="{ChainID: 11 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: <nil> Engine: ethash}"
INFO [10-0