Skip to content

Instantly share code, notes, and snippets.

View sctfic's full-sized avatar

Alban LOPEZ sctfic

  • COAXIS-ASP
  • france
View GitHub Profile
@sctfic
sctfic / ProbeTools.js
Last active January 1, 2016 06:29
Infinity zoomable timeChart
/** ProbeTools.js
* D3 binder to visualize <dataset> data
*
* @category Tools
* @package Probe
* @author alban lopez <alban.lopez+probe@gmail.com>
* @license http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode CC-by-nc-sa-3.0
* @link http://probe.com/doc
*/
@sctfic
sctfic / tunnel-ssh
Last active August 29, 2015 14:02
Service to open ssh connection
#!/usr/bin/env bash
# DESCRIPTION
# Connect ssh as STunnel
#
# USAGE
# sudo tunnel-ssh start[ username@server[:port]]
# sudo tunnel-ssh restart[ username@server[:port]]
# sudo tunnel-ssh stop
# sudo tunnel-ssh status
#
#! /bin/sh -e
DAEMON="/usr/bin/ssh" #ligne de commande du programme
DEAMON_OPT=$2 #argument à utiliser par le programme
DAEMONUSER="coaxis" #utilisateur du programme
DEAMON_NAME="tunnelSsh" #Nom du programme (doit être identique à l'exécutable)
PATH="/sbin:/bin:/usr/sbin:/usr/bin" #Ne pas toucher
test -x $DAEMON || exit 0