Skip to content

Instantly share code, notes, and snippets.

View adericbourg's full-sized avatar

Alban Dericbourg adericbourg

View GitHub Profile
@hannesbe
hannesbe / install-google-drive-ocamlfuse-debian.sh
Last active September 6, 2023 15:01 — forked from OneCDOnly/gist:972755c5c5825ddd819cb2729a52b646
Install 'google-drive-ocamlfuse' on Debian Stretch & Buster
#/bin/bash
# Installs google-drive-ocamlfuse on Debian (Stretch & Buster)
#
# Run this oneliner to make it happen
# bash <(curl -sSL https://gist.github.com/hannesbe/6c110e9de6644f07a48eecfdbe6b728d/raw)
sudo apt install -y software-properties-common dirmngr
sudo cat > /etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-bionic.list << EOF
deb http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial main
/*
* In our code, we have dozen of class to model our domain.
* Most of them have a name, or an id which happen to be implemented
* by a string.
* As we want the compiler to work for us especially during refactoring,
* we have zillions of things like that:
*/
final case class DirectiveId(value: String)
final case class Directive(
@regit
regit / Netfilter-dashboard
Created March 23, 2014 14:49
Netfilter Kibana Dashboard
{
"title": "Netfilter Logs",
"services": {
"query": {
"list": {
"0": {
"query": "dvc:*",
"alias": "Netfilter",
"color": "#7EB26D",
"id": 0,
@adericbourg
adericbourg / mvncolor.sh
Last active December 11, 2015 02:09 — forked from katta/mvncolor.sh
#!/usr/bin/env bash
# Formatting constants
export BOLD=`tput bold`
export UNDERLINE_ON=`tput smul`
export UNDERLINE_OFF=`tput rmul`
export TEXT_BLACK=`tput setaf 0`
export TEXT_RED=`tput setaf 1`
export TEXT_GREEN=`tput setaf 2`
export TEXT_YELLOW=`tput setaf 3`