nano /etc/network/interfaces
allow-hotplug ens192
iface ens192 inet static
address 192.168.xx.yy
netmask 255.255.255.0
gateway 192.168.xx.yyy
dns-nameservers 192.168.xx.z 192.168.xx.w 192.168.xx.t
dns-search mydomain.mytld
L | M | M | G | V | S | D |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 |
nano /etc/network/interfaces
allow-hotplug ens192
iface ens192 inet static
address 192.168.xx.yy
netmask 255.255.255.0
gateway 192.168.xx.yyy
dns-nameservers 192.168.xx.z 192.168.xx.w 192.168.xx.t
dns-search mydomain.mytld
apt-get update
apt-get install unixodbc unixodbc-dev php-odbc php-cli
wget https://packages.microsoft.com/debian/10/prod/pool/main/m/msodbcsql17/msodbcsql17_17.4.1.1-1_amd64.deb
odbcinst -i -d -f /opt/microsoft/msodbcsql17/etc/odbcinst.ini
nano /etc/odbc.ini
[MySQLServerDB]
Description = Database SqlServerDB
Driver = ODBC Driver 17 for SQL Server
Server = server[,port]
Trigger Expression:
{MyTemplate:MyItem.count(#2)}<2 or {MyTemplate:MyItem.diff()=1}
Assuming that “pagecount” is the global counter item of our printer we can create a calculated item with the following expression:
max(pagecount,2592000)-min(pagecount,2592000)
where 2592000 is the number of seconds (30 days, i.e 60sec x 60min x 24hours x 30days) of our interval to get the minimum and the maximum number detected.
from root:
apt-get install composer php-cli
from user:
composer require phpoffice/phpspreadsheet
Into myfile.php (example):
require_once('vendor/autoload.php');
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
// Creates New Spreadsheet
$spreadsheet = new Spreadsheet();
// Retrieve the current active worksheet
$sheet = $spreadsheet->getActiveSheet();
// Set the value of cell A1
$sheet->setCellValue('A1', 'Paolo');
// Sets the value of cell B1
$sheet->setCellValue('B1', 'Pizzolongo');
// Write an .xlsx file
$writer = new Xlsx($spreadsheet);
// Save .xlsx file to the current directory
$writer->save('paolo.xlsx');
Available also with apt-get on debian, this repository package is usually not updated to the latest version. Consider to donwload it manually and use standalone.
wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/bin/youtube-dl
chmod a+rx /usr/bin/youtube-dl
for updates:youtube-dl -U
youtube-dl <video_url>
To specify a format: youtube-dl -F <video_url>
To download with a specific format youtube-dl -f <chosen_format><video_url>
For subtitles:
youtube-dl --list-subs <video_url>
youtube-dl --all-subs --skip-download <video_url>
For Playlists: youtube-dl -cit <playlist_url>
Only Audio: youtube-dl -x --audio-format mp3 <video_url>
stop zabbix services
change apt soutrces from stretch to buster
apt update
apt install –only-upgrade ‘zabbix.*’
apt install –only-upgrade ‘zabbix-server.*’
apt install –only-upgrade ‘zabbix-agent.*’
apt upgrade
apt full-upgrade
reboot
apt –purge autoremove
start zabbix services (during the new start of services the database will be updated)
install on the debian server the following package:
apt-get install libphp-phpmailer
and use it as in the example below:
require("/usr/share/php/libphp-phpmailer/autoload.php"); $mail = new PHPMailer\PHPMailer\PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = false; $mail->SMTPSecure = false; $mail->SMTPAutoTLS = false; $mail->Host = ""; $mail->Port = 25; $mail->IsHTML(true); $mail->SetFrom("from@mydomain.tld"); $mail->Subject = "my subject"; $mail->Body = "my body"; $mail->AddAddress("to@anotherdomain.tld"); if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message has been sent"; }
from root or sudo:
nano /etc/default/grub
find the row with GRUB_CMDLINE_LINUX_DEFAULT
and complete with:
“quiet video=hyperv_fb:1920×1080”
or the resolution you want; save and exit
update-grub
reboot the vm
Pure Line theme by Theme4Press • Powered by WordPress Paolo Pizzolongo Chi è veramente ricco non ha bisogno dei soldi
Recent Comments