Skip to content

Instantly share code, notes, and snippets.

View rlespinasse's full-sized avatar

Romain Lespinasse rlespinasse

View GitHub Profile

AD-XX: <TOPIC - short, concise summary>

  • Date: <DATE - when the decision was made>
  • Driver: <DRIVER - list a single person driving consenus and decision making>
  • Stakeholders: <STAKEHOLDERS - list all relevant stakeholders affected by this decision>
  • Status: [PROPOSED | DECIDED | SUPERSEDED]
  • Categories: <CATEGORIES - use a simple grouping to help organize the set of decisions (e.g. backend, payment, user management, ...)>
  • Outcome: <OUTCOME - once decided, provide a short summary of the decision outcome here>

Context

@raphw
raphw / WeakeningAgent.java
Last active January 23, 2021 11:40
A Java agent for fixing exports for an app that is not yet Java 9 aware.
import java.lang.instrument.Instrumentation;
import java.lang.reflect.Layer;
import java.lang.reflect.Module;
import java.util.*;
public class WeakeningAgent {
public static void premain(String argument, Instrumentation instrumentation) {
boolean full = argument != null && argument.equals("full");
Set<Module> importing = new HashSet<>(), exporting = new HashSet<>();
@remysaissy
remysaissy / .bash_profile_docker_osx.sh
Created January 5, 2016 15:12
Shell function to let a MacOSX user load a docker-machine environment and update OSX routes to access docker0 IPs directly
# Load the docker-machine environment and update the route to let MacOSX access containers IPs.
denv() {
eval $(docker-machine env $1)
SUBNET=$(docker network inspect $(docker network ls | grep bridge | awk '{ print $1; }') | grep Subnet | awk '{ gsub(/"/, "", $2); print $2; }')
sudo route -n delete $SUBNET
module frankenstein
import javassist.ClassPool
import javassist.CtField
import javassist.CtNewMethod
import gololang.Adapters
struct dynamicClass = {
className,
@andystanton
andystanton / Start up local Docker Machine on OSX automatically.md
Last active April 3, 2024 00:50
Start up local Docker Machine on OSX automatically.

Notice

This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine to administer the local Docker engine.

Requirements

  • Docker Machine + Docker
  • curl
  • A Virtualbox-driven Docker Machine called "default" docker-machine create --driver virtualbox default (this is the default with Docker toolkit).
@npryce
npryce / publish-to-bintray
Created April 25, 2014 08:28
A shell script to publish JARs to the Bintray Maven repository
#!/bin/sh
set -e
if [ ! -f ~/.bintray-login ]
then
echo save your bintray.com <userid>:<api-key> in ~/.bintray-login
exit 1
fi
groupid=${1:?group-id}
@k33g
k33g / 01-impressions.md
Last active June 14, 2017 15:59
acer C720P Impressions

#Ce que je pense du Acer C720P

##Aspect

  • l'aspect du C720P est sobre et de bon goût, assez surprenant pour une machine de ce prix, il n'a pas cet aspect "playmobile" du Samsung
  • clavier agréable (ressemble un peu aux clavier mac, mais plus élastique, on n'oublie pas le prix quand même)
  • format 11"6 de l'écran : mon format fétiche, je trouve ça parfait pour un chromebook
  • lecture des vidéos : très bonne qualité (j'ai trouvé une app pour lire les sous-titres ou les downloader)
  • ...
@obazoud
obazoud / style.css
Created October 26, 2013 15:27
voyages-sncf.com - stylish
#breadcrumb {
display:none;
}
#header {
display:none;
}
#pre-header {
display:none;
}
@artyom
artyom / rpc-tls-client.go
Last active October 9, 2023 15:44
Go RPC over TLS.You have to create the following keys: certs/client.crt, certs/client.key, certs/server.crt, certs/server.key. client.crt and server.crt should be signed with ca.crt, which should be concatenated to both client.crt and server.crt. It's easier to do with easy-rsa: http://openvpn.net/index.php/open-source/documentation/howto.html#pki
package main
import (
"crypto/tls"
"crypto/x509"
"log"
"net/rpc"
)
func main() {