Skip to content

Instantly share code, notes, and snippets.

@DavidePrincipi
DavidePrincipi / castanet.sh
Last active April 25, 2025 20:05 — forked from interfect/castanet.sh
Set up a Chromecast from a Linux PC, without an Android or iOS mobile device and without Google Home
#!/usr/bin/env bash
# castanet.sh: Script to connect a chromecast to a WiFi network.
#
# Allows you to put your Chromecast on WiFi and do Chromecast initial setup
# without using the Google Home app at all, just using a normal Linux computer.
#
# You do need your Chromecast to be on Ethernet, or (untested) to join its setup WiFi
# network with your PC, and you also need to find out its IP yourself with e.g.
# Wireshark.
@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 January 23, 2025 12:25
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 - [email protected]
#
# 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
\}