Purpose:
This document outlines the steps to configure unattended upgrades on Debian-based Linux systems, ensuring that systems automatically receive and apply security updates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH | |
my_table_name AS | |
( | |
SELECT 'v_forecast_summary' AS table_name | |
) | |
, colpad AS | |
( | |
SELECT | |
MAX(length(columns.column_name)) AS pad | |
FROM information_schema.columns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(((my_year - 1970) * 365) + | |
((my_year - 1970) / 4) - if(my_year % 4 = 0,1,0) + | |
IF(my_month > 1, 31, 0) + | |
IF(my_month > 2, IF((my_year % 4 = 0), 29, 28), 0) + | |
IF(my_month > 3, 31, 0) + | |
IF(my_month > 4, 30, 0) + | |
IF(my_month > 5, 31, 0) + | |
IF(my_month > 6, 30, 0) + | |
IF(my_month > 7, 31, 0) + | |
IF(my_month > 8, 31, 0) + |
OS: RaspberryPI Lite users you should create
dvandenbosch (sudoer)
gui (non sudoer)
install dotfiles (This is for Dan Van Den Bosch own sanity)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
net use G: \\10.30.1.5\apps /persistent:yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set SERVER1=10.30.1.15 | |
set SERVER2=10.30.1.16 | |
for %%i in (%SERVER1%, %SERVER2%) do ( | |
call :logoffUser %%i | |
) | |
exit /b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO | |
$$ | |
DECLARE | |
value int := 0; | |
sql text := 'The constructed select statement'; | |
rec1 record; | |
rec2 record; | |
BEGIN | |
FOR rec1 IN | |
SELECT |