Skip to content

Instantly share code, notes, and snippets.

set NOVELANG_VERSION=0.29.0
java -Djava.awt.headless=true -jar %NOVELANG_HOME%\distrib\Novelang-%NOVELANG_VERSION%\Novelang-%NOVELANG_VERSION%.jar httpdaemon --port 8082 --log-dir /tmp
@caillette
caillette / gist:642cfc5e182a19a26bae
Created May 11, 2014 14:58
Trying to configure a Host-only adapter on eth1 on Debian 7.5 inside VirtualBox 4.3
ip addr add 192.168.100.101/24 scope link dev eth1
ip link set eth1 up
ip addr show eth1
echo "2 vboxnet" >> /etc/iproute2/rt_tables
ip route add 192.168.100.0/24 dev eth1 src 192.168.100.101 table vboxnet
ip route append default via 192.168.100.100 table vboxnet
ip rule add from 192.168.100.101 lookup vboxnet prio 1000
ip rule add to 192.168.100.101 lookup vboxnet prio 1001
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.SnapshotParameters;
import javafx.scene.canvas.Canvas;
import javafx.scene.control.ScrollPane;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.image.WritableImage;
import javafx.scene.layout.ColumnConstraints;
import javafx.scene.layout.GridPane;
@caillette
caillette / ClientHandshakerEnhancer.java
Created June 13, 2016 15:52
Custom ChannelPipeline reconfiguration for Netty
import io.github.otcdlink.chiron.toolbox.ToStringTools;
import io.netty.buffer.ByteBufAllocator;
import io.netty.channel.Channel;
import io.netty.channel.ChannelConfig;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelHandlerInvoker;
import io.netty.channel.ChannelId;

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@caillette
caillette / kbgit
Last active November 7, 2017 11:24
Apply arbitrary git command to a repository outside of the work tree
#!/bin/sh
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#set -x
# Resolves the work tree from git dir (repository name).
# $1: name of the variable to set the sanitized git dir to.
# Initialized with value passed to this script.
# $2: name of the variable to set the resolved work tree to.
function resolve_worktree() {
local _gitdir_=$1
package com.otcdlink.chiron.integration.demo;
import com.google.common.util.concurrent.Uninterruptibles;
import com.otcdlink.chiron.mockster.Mockster;
import mockit.Expectations;
import mockit.Injectable;
import mockit.Verifications;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@caillette
caillette / gist:ab77b997ecb484b81d12194022b4eb94
Created August 8, 2018 05:52
Série d'articles sur le XML sur Techos
Le XML (1/5) Introduction. Le XML est-il l'ennemi ? Formes grammaticales.
https://groups.google.com/d/msg/techos/8EXgbmyASCs/VP0gxemmftEJ
Le XML (2/5) Désérialisation avec des bibliothèques existantes
https://groups.google.com/d/msg/techos/dycjRdeeLVo/H2Qc8Zi5yIQJ
Le XML (3/5) Lecture bas niveau : le producteur qui pousse (SAX)
https://groups.google.com/d/msg/techos/v6tImRoku2A/nKSgqurmYs8J
Le XML (4/5) Lecture bas niveau : le consommateur qui tire (StAX)
== Goal
For an HP Pavilion g6 with UK keyboard we have dead keys for ´´^`´ at the place of ´;'#´ and dead keys ´¨~´ at the place of ´[]´. This means replacing the dead ´~´ by a double acute is enough.
== How to dump the keymap on Ubuntu 18?
<<<
$ xmodmap -pke