Skip to content

Instantly share code, notes, and snippets.

@hardware
hardware / keybase.md
Created January 5, 2015 17:50
keybase.md

Keybase proof

I hereby claim:

  • I am hardware on github.
  • I am hardware (https://keybase.io/hardware) on keybase.
  • I have a public key whose fingerprint is 9225 EFB7 88EB 7666 4349 DA30 FDF3 D728 D616 9BF1

To claim this, I am signing this object:

#!/bin/bash
CSI="\033["
CEND="${CSI}0m"
CGREEN="${CSI}1;32m"
CRED="${CSI}1;31m"
RTORRENT_PID=$(netstat -tlnp | awk '/:45000 */ {split($NF,a,"/"); print a[1]}')
# Vérification du fonctionnement de RTorrent
@hardware
hardware / ipban.sh
Created October 7, 2014 09:27
ipban
CSI="\033["
CEND="${CSI}0m"
CRED="${CSI}1;31m"
CCYAN="${CSI}1;36m"
ipban() {
ACTION=$1
IP=$2
@hardware
hardware / prelude-correlator
Created August 31, 2014 08:04
Prelude Correlator - Script init.d
#!/bin/sh
#
# init.d script for prelude-correlator with LSB support.
#
# Copyright (c) 2008 Pierre Chifflier <pollux@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
@hardware
hardware / prelude-lml
Created August 31, 2014 08:03
Prelude LML - Script init.d
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: prelude-lml
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start prelude-lml sensor
@hardware
hardware / prelude-manager
Created August 31, 2014 08:02
Prelude Manager - Script init.d
#!/bin/sh
#
# init.d script for prelude-manager with LSB support.
#
# Copyright (c) 2008 Pierre Chifflier <pollux@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
@hardware
hardware / prewikka.sh
Last active August 29, 2015 14:05
Prewikka init.d script
#!/bin/bash
# Variables couleurs
CSI="\033["
CEND="${CSI}0m"
CGREEN="${CSI}1;32m"
# PID du processus
PID=$(netstat -tlnp | awk '/:8000 */ {split($NF,a,"/"); print a[1]}')
@hardware
hardware / master.cf
Last active March 24, 2023 02:35
/etc/postfix/master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
@hardware
hardware / 10-ssl.conf
Last active March 29, 2017 07:18
/etc/dovecot/conf.d/10-ssl.conf
ssl = required
ssl_cert = </etc/ssl/certs/mailserver.crt
ssl_key = </etc/ssl/private/mailserver.key
ssl_protocols = !SSLv2 !SSLv3
ssl_cipher_list = ALL:!aNULL:!eNULL:!LOW:!MEDIUM:!EXP:!RC2:!RC4:!DES:!3DES:!MD5:!PSK:!SRP:!DSS:!AECDH:!ADH:@STRENGTH
ssl_prefer_server_ciphers = yes # Dovecot > 2.2.x
ssl_dh_parameters_length = 2048 # Dovecot > 2.2.x
@hardware
hardware / 10-master.conf
Last active March 29, 2017 07:14
/etc/dovecot/conf.d/10-master.conf
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}