Skip to content

Instantly share code, notes, and snippets.

View yoimbert's full-sized avatar

yoimbert yoimbert

View GitHub Profile
@yoimbert
yoimbert / luaLights
Created April 28, 2018 21:56
luaLights
-- Code Lua Interessant :p
-- Allumage des lumières lorsque la variable Giorno_Notte passe à "Notte"
-- Déclenchement du setTimeout
-- Si >= 23:30 alors on éteint.
--[[
%% properties
%% globals
Giorno_Notte
--]]
@yoimbert
yoimbert / luaHourMotion.lua
Created February 15, 2019 07:49
Lua Hour Motion
--[[
%% autostart
%% properties
35 value
%% weather
%% events
%% globals
--]]
if fibaro:countScenes() > 1 then
@yoimbert
yoimbert / TurnOffPropre.lua
Created May 6, 2019 13:40
TurnOffDelayFibaro
-- Source : https://www.domotique-fibaro.fr/topic/5298-fibaro-fgd-212-micromodule-variateur-z-wave/?page=21
local delai = 2 --delai d'attente en secondes
fibaro:call(ID["LAMPE"], "turnOn")
setTimeout(function() fibaro:call(ID["LAMPE"], "turnOff") end, delai*1000)
pihole -up
@yoimbert
yoimbert / Format_TV_16_9
Created June 26, 2019 13:30
FormatVideoiMovie
FORMAT TV 16/9
1920 / 1080 Pixels
FORMAT TV 4/3
1280 / 960 Pixels
@yoimbert
yoimbert / tcpdump
Last active March 2, 2020 13:33
TCPDUMP
https://openmaniak.com/fr/tcpdump.php
tcpdump -D See the list of interfaces on which tcpdump can listen
tcpdump -i eth0 Listen on interface eth0:
tcpdump -i any Listen on any available interface (cannot be done in promiscuous mode. Requires Linux kernel 2.2 or greater):
tcpdump -v Be verbose while capturing packets:
@yoimbert
yoimbert / PVE-host-backup.md
Created February 1, 2022 17:53 — forked from mrpeardotnet/PVE-host-backup.md
Proxmox PVE Host Config Backup Script

Proxmox PVE Host Config Backup Script

This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.

The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.

Create backup script file

To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:

touch /etc/cron.daily/pvehost-backup