Skip to content

Instantly share code, notes, and snippets.

Avatar

Magicalex

View GitHub Profile
View convert.js
// 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';
View decrypt-backup.sh
#!/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})"
View 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 Mar 28, 2020
script init.d/rtorrent
View service-rtorrent.sh
#!/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