Skip to content

Instantly share code, notes, and snippets.

View jeanfrancis's full-sized avatar
🏠
Working from home

Jean-Francis AHANDA jeanfrancis

🏠
Working from home
View GitHub Profile
@jeanfrancis
jeanfrancis / keybase.md
Last active April 19, 2019 15:24
keybase.md

Keybase proof

I hereby claim:

  • I am jeanfrancis on github.
  • I am jeanfrancis (https://keybase.io/jeanfrancis) on keybase.
  • I have a public key ASCjjQkPrU5BQV_4ezjwC7ggtHpio3-mO75ya_hUcN1Iygo

To claim this, I am signing this object:

"select-user-type.who_you_are": "Qui etes vous? (selectionnez maintenant,vous pouvez changer plustard)",
"select-user-type.who_you_are_desc": "At the very beginning user must select type, so we're asking if the user is taxi driver or passenger",
"select-user-type.driver": "Chauffeur",
"select-user-type.driver_desc": "User can be either taxi driver, or passenger. User selects this option at the very beginning.",
"select-user-type.passenger": "Passager",
"select-user-type.passenger_desc": "User can be either taxi driver, or passenger. User selects this option at the very beginning.",
"request-phone.type_your_phone": "Merci de taper votre numero de telephone. Il ne sera pas partage a tiers sans permission.",
"request-phone.type_your_phone_desc": "This message is displayed when we ask users to send their phone number before they can use our services.",
"request-phone.button_text": "Envoyer numero",
@jeanfrancis
jeanfrancis / RPi-Dashing-howto.md
Created September 5, 2016 12:51 — forked from stonehippo/RPi-Dashing-howto.md
Setting up a Raspberry Pi as a dashboard server with Dashing

Setting up a Raspberry Pi as a dashboard server with Dashing

Why the heck did I do this?

I wanted to set up one of my Raspberry Pi's as a data dashboard, pushing sensor data to a web interface that's easy to digest. I decided to use Shopify's Dashing framework. Dashing is based on Sinatra, and is pretty lightweight.

Dashing does require Ruby 1.9.3 to run. In addition, it makes use of the execjs gem, which needs to have a working Javascript interpreter available. Originally, I tried to get therubyracer working, but decided to switch over to Node.js when I ran into roadblocks compiling V8.

One warning: The RPi is a very slow system compared with modern multi-core x86-style systems. It's pretty robust, but compiling all this complex software taxes the system quite a bit. Expect that it's going to take at least half a day to get everything going.

@jeanfrancis
jeanfrancis / unattended_munin_ubuntu.sh
Created July 17, 2016 21:41
Unattended Installation / Bootstrap Script for Installing Munin Server on Ubuntu 12.04. You can simply pass this into an AWS EC2 box and you're 99% of the way done with setting up a Munin Server and an Apache/HTTP WebUI
#!/bin/bash
################################################################################################
################################################################################################
################################################################################################
##
## Basic Ubuntu 12.04 Unattended Bootstrap for Munin
##
## Author: Allan Parsons ([email protected])
##
@jeanfrancis
jeanfrancis / gist:07ca6ab6d97206fa5dd5
Last active August 29, 2015 14:26 — forked from seth-paxton/gist:d19571620e8986c2ef1a
Sensu Remediate Example
1. Download the plugin from: https://github.com/sensu/sensu-community-plugins/blob/master/handlers/remediation/sensu.rb
2. Create the handler definition:
{
"handlers": {
"remediator": {
"type": "pipe",
"command": "/etc/sensu/handlers/remediator.rb"
}
}
}
@jeanfrancis
jeanfrancis / gist:fa1de85301382acec15c
Last active August 29, 2015 14:26 — forked from seth-paxton/gist:a653dbe1a1c77160df34
Sensu Remediation Example
{
"checks": {
"seyren_check": {
"command": "/etc/sensu/plugins/check-procs.rb -p PROC",
"interval": 10,
"subscribers": ["SUB"],
"handlers": ["remediator","pagerduty"],
"occurrences": 1,
"refresh": 10,
"remediation": {
{
"checks": {
"check_something": {
"command": "ps aux | grep cron",
"interval": 60,
"subscribers": ["application_server"],
"handlers": ["debug", "irc", "remediator"],
"remediation": {
"light_remediation": {
"occurrences": [1, 2],
@jeanfrancis
jeanfrancis / gist:2928956163ac50e120d7
Created June 26, 2015 18:02
Verifying I am +jeanfrancis on my passcard. https://onename.com/jeanfrancis
Verifying I am +jeanfrancis on my passcard. https://onename.com/jeanfrancis