Skip to content

Instantly share code, notes, and snippets.

View tanji's full-sized avatar

Guillaume Lefranc tanji

View GitHub Profile

Résumé des règles de Numenera en français

Effectuer un jet

  • Lancez un d20 contre la difficulté de la tâche 0-10. Le jet cible est la difficulté x3
  • Peut diminuer la difficulté par divers moyens
  • Les compétences diminuent la difficulté de 1 (entraîné) ou 2 (spécialisé) niveaux.
  • Les atouts (équipement, aide, etc.) peuvent diminuer la difficulté de 2 niveaux au maximum.
  • L'effort (voir sous personnage) peut également réduire la difficulté.
  • La difficulté 0 est un succès automatique
  • Jet cible = (Difficulté - Compétences - Atouts - Effort)x3

Bolognese sauce (ragù) for pasta or lasagna (for about 6 people)

Ingredients

  • 600 g canned tomatoes (good quality) or tomato sauce (passato)
  • or alternatively, 30g double concentrated tomato paste
  • 300 g of ground beef or veal, or pork and beef mixture)
  • 130 g of sausage meat from the butcher, or ground pork loin)
  • 50 g long diced pancetta (or good quality bacon)
  • 50 g butter
  • 1 diced carrot
  • 1 stalk of diced celery
package main
import (
"bufio"
"fmt"
"io"
"log"
"os"
"strings"
"sync"
@tanji
tanji / crypto_trackers.md
Last active December 31, 2017 13:40 — forked from zapnap/crypto_trackers.md
List of various cryptocurrency portfolio trackers and dashboards
Name Website Access Data Import (API/CSV) Trading Charts Login Required Transactions, P&L Coin Location **Tax Advisor ** Social Features Alerts Analysis Price Notes
Blockfolio http://blockfolio.com/ Mobile-only (Android, iOS) No Yes No* Yes Yes* No No No Free Desktop app "coming soon"
Delta https://getdelta.io/ Mobile-only (Android, iOS) No Yes No Yes Yes* No No Yes Free + Upgrade ($) Nice modern UI. Desktop app "coming soon"
Lionshare https://lionshare.capital/ Mac Desktop & iOS No No No No No No No No Free, OSS
CryptoCompare http://cryptocompare.com/ Web App No? Yes Yes Yes Yes* No Yes No Free Portfolio is one part of a far larger community app
AltPocket https://altpo
@tanji
tanji / logstash-ssl.md
Last active December 26, 2023 18:49
Creating SSL certificates for use with Logstash
  • Create the CA:
openssl genrsa -aes256 -out ca.key 4096
openssl req -key ca.key -new -x509 -days 7300 -sha256 -extensions v3_ca -out ca.crt
  • Create server certificate and key:
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr
@tanji
tanji / check-replication-manager.rb
Created June 21, 2017 12:33
Sensu check plugin for MariaDB / MySQL Replication Manager
#!/usr/bin/env ruby
# check-replication-manager.rb
# Copyright 2017 SIGNAL 18 <support@signal18.io>
# Released under the MIT License. Full text at https://opensource.org/licenses/MIT
require 'sensu-plugin/check/cli'
require 'json'
require 'net/http'
class MRMCheck < Sensu::Plugin::Check::CLI

Keybase proof

I hereby claim:

  • I am tanji on github.
  • I am tanj (https://keybase.io/tanj) on keybase.
  • I have a public key whose fingerprint is 3FF7 7571 9558 18BD 2B6B CB4E F8DF A2FE 06BD 86F0

To claim this, I am signing this object:

3 Query SHOW SLAVE STATUS
3 Query SELECT COUNT(*) AS n FROM INFORMATION_SCHEMA.PROCESSLIST WHERE command='binlog dump'
3 Prepare SELECT Select_priv, Process_priv, Super_priv, Repl_slave_priv, Repl_client_priv, Reload_priv FROM mysql.user WHERE user = ? AND host = ?
3 Execute SELECT Select_priv, Process_priv, Super_priv, Repl_slave_priv, Repl_client_priv, Reload_priv FROM mysql.user WHERE user = 'root' AND host = '172.21.0.3'
3 Close stmt
3 Prepare SELECT Select_priv, Process_priv, Super_priv, Repl_slave_priv, Repl_client_priv, Reload_priv FROM mysql.user WHERE user = ? AND host = ?
3 Execute SELECT Select_priv, Process_priv, Super_priv, Repl_slave_priv, Repl_client_priv, Reload_priv FROM mysql.user WHERE user = 'root' AND host = '%'
3 Close stmt
3 Query SELECT Variable_name AS variable_name, Variable_Value AS value FROM information_schema.global_variables
3 Query SET default_master_connection=''
version: '2'
services:
node1:
image: mariadb:10.1
environment:
- TERM=xterm
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_INITDB_SKIP_TZINFO=1
volumes:
- ~/Dev/docker/compose/galera/conf.d:/etc/mysql/conf.d
version: '2'
services:
db1:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=admin
command: mysqld --log-bin --server-id=1
db2:
image: mariadb:latest
environment: