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
/****************************************************************************** | |
Online C++ Compiler. | |
Code, Compile, Run and Debug C++ program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
*******************************************************************************/ | |
#include <iostream> |
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
<?php | |
/* | |
use PhpPec\PecMessage; | |
use PhpPec\PecServer; | |
use Fetch\Attachment; | |
*/ | |
$server = new PecServer('aruba.server.pec.it', 445); | |
$server->setAuthentication('nome-utente', 'password'); | |
/** |
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
<?php | |
/** | |
* @param Mailbox $mailbox | |
* @return PecServer | |
*/ | |
private function getServer(Mailbox $mailbox) | |
{ | |
$server = new PecServer($mailbox->getHost(), $mailbox->getPort()); | |
$server->setAuthentication($mailbox->getUsername(), $mailbox->getPassword()); |
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
#!/bin/bash | |
IFS=';' read updates security_updates < <(/usr/lib/update-notifier/apt-check 2>&1) | |
HOSTNAME=`hostname` | |
BOT_TOKEN='THISTOKENISFROMBOTFATHER' | |
# Numeric id of the chat to publish messages to | |
CHAT_ID=1234567890 | |
if [ ! -f ".update-check-status" ] ; then | |
echo "0:0" > .update-check-status | |
fi |
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
/** | |
* @param Mailbox $mailbox | |
* @return PecServer | |
*/ | |
private function getServer(Mailbox $mailbox) | |
{ | |
$server = new PecServer($mailbox->getHost(), $mailbox->getPort()); | |
$server->setAuthentication($mailbox->getUsername(), $mailbox->getPassword()); | |
return $server; | |
} |
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
<?php | |
namespace Epod4\Moduli\ProtocolloBundle\DependencyInjection; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | |
class ProtocolloExtension extends Extension | |
{ | |
/** | |
* {@inheritDoc} |
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
<?php | |
namespace Epod4\Moduli\ProtocolloBundle\DependencyInjection; | |
use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
use Symfony\Component\Config\Definition\ConfigurationInterface; | |
class Configuration implements ConfigurationInterface | |
{ | |
public function getConfigTreeBuilder() | |
{ |
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
#!/bin/bash | |
show_help() { | |
cat << EOF | |
Usage: ${0##*/} [-hal] [SERVER]... | |
Invoca l'apt-get su uno o più server remoti. | |
-h mostra questa help ed esce | |
-a modifica il comando di apt-get in autoremove | |
-l effettua l'upgrade dei server virtuali interni | |
EOF |
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/env python | |
# -*- coding: utf-8 -*- | |
# Copyright (C) Marco Trevisan | |
# | |
# Authors: | |
# Marco Trevisan <[email protected]> | |
# | |
# 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; version 3. |
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/php | |
<?php | |
if(count($argv) != 3) { | |
echo "Utilizzo: vtiger_test_traduzioni.php <cartella traduzioni italiane> <cartella traduzioni originali>\n"; | |
echo "Esempio: vtiger_test_traduzioni.php /home/utente/traduzioni/Vtiger-6.X-lingua-ITA/modules/ /var/www/vtiger/languages/en_us/\n"; | |
return 0; | |
} | |
$folder_traduzioni = realpath($argv[1]); |
NewerOlder