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
| #include <iostream> | |
| using namespace std; | |
| class Insieme { | |
| private: | |
| int* pointers[10]; | |
| int size; | |
| public: | |
| Insieme() | |
| { | |
| this->size = 0; |
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
| #Router Bologna | |
| su root | |
| ip addr flush dev enp0s3 | |
| ip addr flush dev enp0s8 | |
| ip route flush dev enp0s3 | |
| ip route flush dev enp0s8 | |
| ip addr add 172.30.116.49/30 broadcast 172.30.116.51 dev enp0s3 | |
| ip addr add 172.30.116.33/28 broadcast 172.30.116.47 dev enp0s8 | |
| ip route add 172.30.116.0/27 via 172.30.116.50 dev enp0s3 | |
| ip route add 0.0.0.0/0 via 172.30.116.50 dev enp0s3 |
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
| #pragma once | |
| #define NULL 0 | |
| template <typename T> class Node | |
| { | |
| private: | |
| T data; | |
| Node<T>* next; | |
| public: |
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
| javascript:SellCurrentSelection();document.getElementById("market_sell_currency_input").value = "0,01โฌ";document.getElementById("market_sell_buyercurrency_input").value = "0,03โฌ";document.getElementById("market_sell_dialog_accept").click();document.getElementById("market_sell_dialog_ok").click(); |
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
| %YAML 1.2 | |
| --- | |
| # See http://www.sublimetext.com/docs/3/syntax.html | |
| name: Source game config | |
| file_extensions: | |
| - cfg | |
| scope: source.source-config | |
| contexts: | |
| main: | |
| - match: '\s*\/\/' |
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
| #!/usr/bin/python3.6 | |
| import cgi | |
| import re | |
| print("Content-Type: text/html") | |
| print() | |
| print("<style>span::before { color: red; content: '('; } span::after { color: red; content: ')'; }</style>") | |
| form = cgi.FieldStorage() |
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
| <html> | |
| <head> | |
| <title>Autotemp Refresher</title> | |
| <script src="https://code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | |
| <script> | |
| var data_url = "METTI-L-URL-CON-I-DATI-QUI" |
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
| # Trovare i padri delle persone che guadagnano piรน di 20 | |
| SELECT DISTINCT Paternita.padre | |
| FROM Paternita, Persone | |
| WHERE Paternita.figlio = Persone.nome AND Persone.reddito > 20; | |
| # Con il join esplicito | |
| SELECT DISTINCT Paternita.padre | |
| FROM Paternita JOIN Persone ON Paternita.figlio = Persone.nome | |
| WHERE Persone.reddito > 20; |
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
| # Configurazione OpenVPN Server | |
| # di Stefano Pigozzi | |
| # Mikrotik resettato | |
| # IP: 192.168.88.1 | |
| # Username: admin | |
| # Disabilita il firewall | |
| /ip firewall filter | |
| disable 1,2,3,4,5,6,7 |
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
| import requests | |
| import requests.exceptions | |
| import time | |
| # Controlla se Internet รจ ancora attivo | |
| r = requests.get("http://google.it") | |
| if r.status_code != 200: | |
| # Riattiva Internet | |
| with requests.Session() as session: | |
| # A quanto pare non serve piรน il login |