Skip to content

Instantly share code, notes, and snippets.

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

Laurent Declercq nuxwin

🏠
Working from home
View GitHub Profile
@nuxwin
nuxwin / busyroot.sh
Created August 13, 2016 23:33 — forked from weakish/busyroot.sh
#sh script to set up a #chroot #busybox #ssh environment
#!/bin/sh
# by Jakukyo Friel <weakish@gmail.com> under GPL v2.
### Set up a chroot busybox SSH environment
## requires
# wget -- to download pubkey and busybox
# sharutils -- to generate random password
## Config
@nuxwin
nuxwin / 10_global_ns.pl
Last active October 30, 2016 23:17
i-MSCP listener file allowing to set same NS entries in all zones.
# i-MSCP Listener::Bind9::Global::NS listener file
# Copyright (C) 2016 Laurent Declercq <l.declercq@nuxwin.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@nuxwin
nuxwin / 10_named_global_ns.pl
Created October 31, 2016 19:49
10_named_global_ns.pl compatible with i-MSCP 1.3.7
# i-MSCP Listener::Named::Global::NS listener file
# Copyright (C) 2016 Laurent Declercq <l.declercq@nuxwin.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@nuxwin
nuxwin / gpg.md
Created March 28, 2017 00:09 — forked from LauLaman/gpg.md
Use GPG to sign commits using git & PHPStorm

1 - install GPG tools : https://gpgtools.org/

2 - Create new key for your github email

3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY

4 - configure git to sign all commits: git config --global commit.gpgsign true

5 - add to the bottom of ~/.gnupg/gpg.conf:

@nuxwin
nuxwin / mbox-count.py
Created May 28, 2017 23:29 — forked from greencm/mbox-count.py
Count the number of messages in an mbox file
#!/usr/bin/env python
# $Id$
# Author: <cmgreen@uab.edu>
# Purpose: Count the number of mails in an mbox file
# Created: Fri Jun 28 10:39:13 CDT 2013
import sys
from mailbox import mbox
import re
@nuxwin
nuxwin / gist:049bae4bdad2fe1dddd8d61ea4b2b084
Created October 11, 2017 18:53 — forked from discordier/gist:ed4b9cba14652e7212f5
options for phpStorm @noinspection annotation
javascript
ES6ValidationInspection
JSAccessibilityCheckInspection
JSBitwiseOperatorUsageInspection
JSCheckFunctionSignaturesInspection
JSClosureCompilerSyntaxInspection
JSCommentMatchesSignatureInspection
JSComparisonWithNaNInspection
JSConsecutiveCommasInArrayLiteralInspection
@nuxwin
nuxwin / README.md
Last active November 19, 2017 04:43
i-MSCP Cronjobs plugin documentation

i-MSCP CronJobs plugin v2.0.0

Provides a cron time-based job scheduler for administrators and customers.

Introduction

This plugin provides a cron time-based job scheduler for administrators and customers.

The administrators give cron permissions to resellers, and the resellers give

@nuxwin
nuxwin / errata_1.6.x.md
Created December 1, 2017 00:49
Errata file for i-MSCP 1.6.x -- Review is welcome -- Thanks ;)

i-MSCP 1.6.x Serie (Alan Silvestri) -- Errata

First of all, if you're updating from an older i-MSCP Serie, you MUST read the previous errata file from bottom to top.

Version 1.6.0

Alternative URLs feature

Due to a bug found in previous versions, people that want make use of the

#!/usr/bin/perl
# Make it possible to test the i-MSCP iMSCP::Listener::Postfix::Rspamd listener
# file by triggering the afterMtaBuildConf event manually.
#
# How to process:
# - Install the listener file that you can find at https://gist.github.com/nuxwin/3a855ecbaae7d2482b68126e8206c534
# under the /etc/imscp/listeners.d directory, e.g: /etc/imscp/listeners.d/10_postfix_rspamd.pl
# - Download that script under the /usr/local/src directory with name imscp_test_rspamd_listener.pl
# - Run the script as follows: perl /usr/local/src/imscp_test_rspamd_listener.pl
@nuxwin
nuxwin / 10_postfix_rspamd.pl
Last active February 13, 2018 02:13
i-MSCP Rspamd listener file - Inject required postfix(1) parameters for rspamd(8)
# i-MSCP iMSCP::Listener::Postfix::Rspamd listener file
# Copyright (C) 2018 Laurent Declercq <l.declercq@nuxwin.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of