Skip to content

Instantly share code, notes, and snippets.

@DavidePrincipi
DavidePrincipi / diff.sh
Last active December 17, 2020 10:55
Adding PHP 8.0 by Remi to NethServer 7.9
#!/bin/bash
for VER in php54 php72 php73 php80; do
curl -H "Host: $VER.dp.nethserver.net" http://127.0.0.1/info.php > $VER.out
diff -u $OLD.out $VER.out > $OLD-$VER.diff
OLD=$VER
done
@DavidePrincipi
DavidePrincipi / README.md
Last active December 15, 2020 14:47
Jitsi with Podman 2.2.1
@DavidePrincipi
DavidePrincipi / update-local-repo
Last active October 14, 2020 07:30
Additional "local" YUM repository for CentOS and NethServer 7 systems
#!/bin/bash
#
# Copyright (C) 2017-2020 Nethesis S.r.l.
# http://www.nethesis.it - nethserver@nethesis.it
#
# This script is part of NethServer.
#
# NethServer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
<?php
namespace f1;
function foo() {
echo __FILE__ . "\n";
}
@DavidePrincipi
DavidePrincipi / timezone_fanvil.json
Created February 13, 2020 09:51
Fanvil timezones maps
{
"Africa/Abidjan": {
"location": "8",
"name": "UTC",
"offset": "0"
},
"Africa/Accra": {
"location": "1",
"name": "UTC",
"offset": "0"
@DavidePrincipi
DavidePrincipi / README.md
Created January 16, 2020 17:09
CentOS 8.1 minimal install

This is an installation of CentOS 8.1 "boot" ISO, with the "Minimal" packages group.

@DavidePrincipi
DavidePrincipi / _var_lib_nethserver_db_networks
Created May 21, 2019 09:59
ns7 bug: Lock out after restore-config with VPN
Voda=provider|interface|e4|weight|200
Wind=provider|interface|ppp0|weight|17
e0=ethernet|FwInBandwidth||FwOutBandwidth||bootproto|none|gateway||ipaddr|192.168.80.254|netmask|255.255.255.0|role|green
e0.10=vlan|bootproto|none|role|hotspot
e0.5=vlan|bootproto|none|gateway||ipaddr|192.168.33.1|netmask|255.255.255.0|role|blue
e1=ethernet|role|
e2=ethernet|role|
e3=ethernet|role|pppoe
e4=ethernet|FwInBandwidth|216000|FwOutBandwidth|21600|bootproto|none|gateway|192.168.10.1|ipaddr|192.168.10.220|netmask|255.255.255.0|role|red
enp0s10=ethernet|role|
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
#
@DavidePrincipi
DavidePrincipi / 19custom_login_aliases
Created December 21, 2018 17:30
Dovecot login aliases
# in /etc/e-smith/templates-custom/etc/dovecot/dovecot.conf/19custom_login_aliases
#
# 19custom_login_aliases
#
passdb \{
driver = passwd-file
args = /etc/dovecot/login-aliases
\}
Nov 13 10:26:23 foscolo esmith::event[2516]: Event: user-create nethesis Nethesis Test /usr/libexec/openssh/sftp-server
Nov 13 10:26:24 foscolo esmith::event[2516]: Traceback (most recent call last):
Nov 13 10:26:24 foscolo esmith::event[2516]: File "/bin/nsdc-run", line 38, in <module>
Nov 13 10:26:24 foscolo esmith::event[2516]: so.connect('/var/lib/machines/nsdc/var/lib/misc/nsdc-run.sock')
Nov 13 10:26:24 foscolo esmith::event[2516]: File "/usr/lib64/python2.7/socket.py", line 224, in meth
Nov 13 10:26:24 foscolo esmith::event[2516]: return getattr(self._sock,name)(*args)
Nov 13 10:26:24 foscolo esmith::event[2516]: socket.error: [Errno 2] No such file or directory
Nov 13 10:26:24 foscolo esmith::event[2516]: [ERROR] User nethesis creation failed