This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Netfilter Logs", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "dvc:*", | |
"alias": "Netfilter", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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` |