Skip to content

Instantly share code, notes, and snippets.

View kermorgant's full-sized avatar

Mikael Kermorgant kermorgant

View GitHub Profile
# dec/29/2022 10:48:03 by RouterOS 7.6
# model = RB3011UiAS
/caps-man channel
add band=2ghz-b/g/n control-channel-width=20mhz extension-channel=disabled \
frequency=2412 name=channel1
add band=2ghz-b/g/n control-channel-width=20mhz extension-channel=disabled \
frequency=2437 name=channel6
add band=2ghz-b/g/n control-channel-width=20mhz extension-channel=disabled \
frequency=2462 name=channel11
add band=5ghz-a/n/ac name=5ghz
config setup
charondebug="ike 4, knl 4, cfg 4, net 4, esp 4, dmn 4, mgr 4"
# charondebug="ike 2, knl 2, cfg 0"
uniqueids=no
conn L2TP-PSK-noNAT
type=transport
authby=secret
# pfs=no
rekey=no
@kermorgant
kermorgant / etc-ipsec.conf
Last active April 13, 2020 07:56
ipsec config
config setup
charondebug="ike 1, knl 1, cfg 0"
uniqueids=no
conn ikev2-vpn
auto=add
compress=no
type=tunnel
keyexchange=ikev2
fragmentation=yes
@kermorgant
kermorgant / config_project.el
Last active June 22, 2019 09:10
with-eval-after-load issue
(with-eval-after-load "transient"
(progn
(defvar mk-projectile)
(define-transient-command mk-projectile ()
"Projectile"
[["Find"
("f" "File" projectile-find-file)
("F" "File Other Window" projectile-find-file-other-window)
("u" "Test File" projectile-find-test-file)]
@kermorgant
kermorgant / InstanceStateType.php
Last active December 26, 2018 18:30
Instance state type
<?php
namespace AppBundle\Persistence\Types;
use AppBundle\State\Instance\InstancePaused;
use AppBundle\State\Instance\InstanceRemoved;
use AppBundle\State\Instance\InstanceRunning;
use AppBundle\State\Instance\InstanceStates;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Platforms\AbstractPlatform;