Skip to content

Instantly share code, notes, and snippets.

View Magicalex's full-sized avatar

Alexandre Levionnais Magicalex

View GitHub Profile
// Script pour télécharger les images lutim depuis un fichier log
// On mondedie-web run this script: lutim-converter
const fs = require('fs');
const lineReader = require('line-reader');
const http = require('https');
const rootPath = '/home/lutim';
const logFile = '/home/mondediefr-images-access.log';
#!/usr/bin/env bash
# Exemple de transfert vers un server
# scp -P 22 -r ./assets user@domain.tld:/home/user/assets
archive=${1}
decrypt() {
path=$(pwd ${archive})
filename="${path}/$(basename -s .gpg ${archive})"
@Magicalex
Magicalex / keybase.md
Last active May 21, 2016 18:45
keybase.md

Keybase proof

I hereby claim:

  • I am magicalex on github.
  • I am magicalex (https://keybase.io/magicalex) on keybase.
  • I have a public key ASDs-nYnUkaYyiTK4lM5raPBC2WJzjh4OrS5b0XFZg0nQgo

To claim this, I am signing this object:

@Magicalex
Magicalex / service-rtorrent.sh
Last active March 28, 2020 23:49
script init.d/rtorrent
#!/usr/bin/env bash
# Dépendance : screen, killall et rtorrent
### BEGIN INIT INFO
# Provides: <username>-rtorrent
# Required-Start: $syslog $network
# Required-Stop: $syslog $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time