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 | |
import os | |
import ipaddress | |
import sys | |
DRY_RUN = "--dry-run" in sys.argv | |
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 | |
# This is a script written as homework for computer science | |
# (c) 2018 Marco Marinello <[email protected]> | |
# Import modules | |
from http.server import BaseHTTPRequestHandler,HTTPServer | |
import views | |
# Import settings | |
try: |
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
{% load i18n static %} | |
<!DOCTYPE html> | |
<html lang="it"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous"> |
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
% Quest'opera è stata rilasciata con licenza Creative Commons Attribuzione - Non commerciale - Condividi allo stesso modo 4.0 Internazionale. Per leggere una copia della licenza visita il sito web http://creativecommons.org/licenses/by-nc-sa/4.0/. | |
% dichiara tipo documento | |
\documentclass[a4paper]{article} | |
% imposta codifica caratteri | |
\usepackage[utf8]{inputenc} | |
\usepackage{makeidx} | |
\usepackage{graphicx} | |
% imposta titolo, autore e data |
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
<!DOCTYPE html> | |
<html lang="it"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous"> | |
<script |
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
cylinder(2, d=32); | |
difference() { | |
translate([-12,-9,-2]) { | |
scale(0.17,0.17,1) | |
surface(file="/tmp/logo.png"); | |
} | |
translate([-20,-20,-3]) | |
cube([40,40,3]); | |
translate([-20,-20,4]) |
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 you.example.org | |
ServerAlias www.you.example.org | |
DocumentRoot /var/www/html | |
ErrorLog ${APACHE_LOG_DIR}/error_you_sezf_it.log | |
CustomLog ${APACHE_LOG_DIR}/access_you_sezf_it.log combined | |
RewriteEngine On | |
RewriteCond %{HTTPS} off |
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": "", |
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
<VirtualHost *:80> | |
ServerName example.org | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/html | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteCond %{REQUEST_URI} !^/?(.well-known)/ | |
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} |
OlderNewer