This file contains 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
#!/bin/bash | |
vzdump VMID --mode snapshot --storage STORAGE --compress 0 --remove 0 --node NODE --stdout | zstd -o your-backup.vma.ztd |
This file contains 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
$ zstd -19 -o base_shrinked.img{.zstd,} # Will take a few time | |
$ du -sh base_shrinked.img* | |
1,4G base_shrinked.img | |
281M base_shrinked.img.zstd |
This file contains 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
\documentclass{exam} | |
\usepackage[utf8]{inputenc} | |
\usepackage{tabularx} | |
\usepackage{courier} | |
\usepackage{graphicx} | |
\newcounter{abc} | |
\renewcommand{\theabc}{\stepcounter{abc}\Roman{abc}} | |
\newcommand{\answerbox}{\fbox{\phantom{M}}} |
This file contains 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
Agliè | Torino | Piemonte | |
---|---|---|---|
Airasca | Torino | Piemonte | |
Ala di Stura | Torino | Piemonte | |
Albiano d'Ivrea | Torino | Piemonte | |
Almese | Torino | Piemonte | |
Alpette | Torino | Piemonte | |
Alpignano | Torino | Piemonte | |
Andezeno | Torino | Piemonte | |
Andrate | Torino | Piemonte | |
Angrogna | Torino | Piemonte |
This file contains 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
#!/usr/bin/python | |
a = open("django.po") | |
h = [x.strip() for x in a.readlines()] | |
a.close() | |
counter = 0 | |
while counter < len(h): | |
pre = counter |
This file contains 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
#!/bin/bash | |
cd /tmp | |
pip3 install virtualenv | |
if [ ! -e borgbackup-1.1.9.tar.gz ]; then | |
wget https://github.com/borgbackup/borg/releases/download/1.1.9/borgbackup-1.1.9.tar.gz | |
fi |
This file contains 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
#!/usr/bin/python3 | |
# Copyright (c) 2018 Marco Marinello <mmarinello@sezf.it> | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains 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
<VirtualHost *:80> | |
ServerName example.org | |
ServerAdmin you@example.org | |
DocumentRoot /var/www/html | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteCond %{REQUEST_URI} !^/?(.well-known)/ | |
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} |
This file contains 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
<?php | |
$fileaddr = "http://localhost/meteo/clientraw.txt"; | |
$content = implode('', file ($fileaddr)); | |
$vals = explode(" ", $content); | |
//Gestione della direzione del vento (da tabella5.php) | |
function direzioneVento ($gradi) |
This file contains 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
ALLOWED_HOSTS = ["you.example.org"] | |
DEBUG = True | |
DATABASES = { | |
"default": { | |
"ENGINE": "django.db.backends.mysql", | |
"NAME": "", | |
"USER": "", | |
"PASSWORD": "", |