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 | |
# ######### |
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 sys | |
import time | |
import os | |
import smtplib | |
frm = 'SENDER-EMAIL@ADDRESS' | |
to = 'DESTINATION-EMAIL@ADDRESS' | |
smtphost = "YOUR.SMTP.RELAY.HOST" | |
date = time.ctime(time.time()) |
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 | |
echo "<b>Header Accept:</b> " .$_SERVER["HTTP_ACCEPT"]. "<br />\n"; | |
echo "<b>Header Accept-Language:</b> " .$_SERVER["HTTP_ACCEPT_LANGUAGE"]. "<br />\n"; | |
echo "<b>Header Accept-Charset:</b> " .$_SERVER["HTTP_ACCEPT_CHARSET"]. "<br />\n"; | |
echo "<b>Header Accept-Encoding:</b> " .$_SERVER["HTTP_ACCEPT_ENCODING"]. "<br />\n"; | |
?> |
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 | |
// http://en.wikipedia.org/wiki/JSON-RPC | |
// https://bitbucket.org/jbg/php-json-rpc/overview | |
// http://qooxdoo.org/downloads | |
// see https://bitbucket.org/lidio601/framework-fabio | |
require_once('framework_fabio.php'); | |
ini_set('always_populate_raw_post_data',1); |
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
# simulazione di uno stack + stackpointer | |
grandezza_stack = 100 | |
sp = grandezza_stack | |
stack = [] | |
def push(valore): | |
global grandezza_stack,sp,stack | |
if sp >= 0: | |
#c'è ancora stackpazio nello stack |
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 <stdio.h> | |
#include <string.h> | |
struct accordo{ | |
char ing; | |
char ita[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
#include <stdio.h> | |
#include <time.h> | |
#include <iostream.h> | |
#include <conio.h> | |
int main(void) | |
{ | |
int g,h,m; | |
char a; |
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 <conio.h> | |
#include <iostream.h> | |
float banco(float); | |
int i=0; | |
const int banconote[]={500,200,100,50,20,10,5,2,1}; | |
void main() | |
{ |
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 <stdlib.h> | |
int main() { | |
float num; | |
float conta; | |
int ris; | |
conta=1; | |
num=0; |
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 <dos.h> | |
#include <stdlib.h> | |
void main(int arg) | |
{ | |
clrscr(); | |
randomize(); | |
int cas; |