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
#include<iostream.h> | |
#include<conio.h> | |
class persona | |
{ | |
protected: | |
char* nome; | |
public: | |
persona(); |
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
#ifndef _IOSTREAM_H | |
#include <iostream.h> | |
#endif | |
#ifndef _CONIO_H | |
#include <conio.h> | |
#endif | |
class hex { | |
private: |
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
#include <iostream.h> | |
#include <conio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
#define _MAX 5 | |
#include "c:\tc\servizio.h" | |
#include "c:\tc\inversa.h" | |
//-------------------------------------------------FUNZIONI PRINCIPALI |
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 | |
//metti la tua password qui | |
$adminPassword = 'MY-VERY-NEW-PASSWORD'; | |
function mosMakePassword($length) { | |
$salt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | |
$len = strlen($salt); |
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
import pynotify | |
if not pynotify.init("GMail Notifier"): | |
sys.exit(-1) | |
n = pynotify.Notification("titolo", "messaggio blablablalbalblabl\nciao", "notification-network-wirelessq") | |
#/usr/share/notify-osd/icons/hicolor/scalable/status | |
#notification-audio-next.svg | |
#notification-audio-play.svg |
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
INSERT INTO jos_categories | |
values | |
(NULL,50,'Abruzzo','Abruzzo','abruzzo',NULL,'com_contact_details','left',NULL,1,0,'0000-00-00 00:00:00',NULL,1,0,0,NULL), | |
(NULL,50,'Basilicata','Basilicata','basilicata',NULL,'com_contact_details','left',NULL,1,0,'0000-00-00 00:00:00',NULL,2,0,0,NULL), | |
(NULL,50,'Calabria','Calabria','calabria',NULL,'com_contact_details','left',NULL,1,0,'0000-00-00 00:00:00',NULL,3,0,0,NULL), | |
(NULL,50,'Campania','Campania','campania',NULL,'com_contact_details','left',NULL,1,0,'0000-00-00 00:00:00',NULL,4,0,0,NULL), | |
(NULL,50,'Emilia Romagna','Emilia Romagna','emilia-romagna',NULL,'com_contact_details','left',NULL,1,0,'0000-00-00 00:00:00',NULL,5,0,0,NULL), | |
(NULL,50,'Friuli Venezia Giulia','Friuli Venezia Giulia','friuli-venezia-giulia',NULL,'com_contact_details','left',NULL,1,0,'0000-00-00 00:00:00',NULL,6,0,0,NULL), | |
(NULL,50,'Lazio','Lazio','lazio',NULL,'com_contact_details','left',NULL,1,0,'0000-00-00 00:00:00',NULL,7,0,0,NULL), | |
(NULL,50,'Liguria','Liguria','liguria',NULL,'com_contact_details |
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
import socket | |
import random | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
p = random.randint(1300,1500) | |
print 'sto ascoltando sulla porta ',p | |
s.bind(('', p)) | |
s.listen(1) | |
(clis,addr) = s.accept() |
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 | |
# see https://bitbucket.org/lidio601/framework-fabio | |
# PHP Framework derived from Joomla CMS Libraries | |
require_once("framework_fabio.php"); | |
$options = array( | |
'driver' => 'sqllite', | |
'file' => './dbfile.xmf' | |
); |
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
KEYFILE='~/.ssh/newkey.key' | |
ssh-keygen -t rsa -C "user@email.com" -q -b 2048 -N "YOURPASSWORD" -f "$KEYFILE" | |
cat $KEYFILE.pub >~/.ssh/authorized_keys2 |
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
SERVER="webserver.dns.domain.name" | |
# setup the working directory | |
mkdir -vp ./public | |
mkdir -vp ./private | |
# ######### | |
# custom CA | |
# ######### |