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 "mainwindow.h" | |
#include <QtGui/QMatrix4x4> | |
#include <QtGui/QOpenGLShaderProgram> | |
#include <QtGui/QScreen> | |
#include <QGLContext> | |
MainWindow::MainWindow() : | |
m_program(0) | |
, m_frame(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
echo $(uptime | perl -ne "/(\d+) d/;print 8,q(=)x\$1,\"D\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
cd /usr/local/src | |
git clone https://github.com/pooler/cpuminer.git | |
cd cpuminer | |
apt-get install -y build-essential automake libcurl4-gnutls-dev | |
./autogen.sh | |
./configure CFLAGS="-O3" | |
make |
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 | |
// include/pages/addComment.php - line 19 | |
$comment = htmlspecialchars($_POST['comment'], ENT_QUOTES, 'UTF-8', false); |
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 | |
class Minecraft { | |
private $Socket, $Info; | |
public $Online, $version, $MOTD, $CurPlayers, $MaxPlayers, $IP, $Port, $Error; | |
public function __construct($IP, $Port = '25565') { | |
$this->IP = $IP; | |
$this->Port = $Port; |
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
try { | |
$soap = new SoapClient("https://www.ovh.com/soapi/soapi-re-1.26.wsdl"); | |
//login | |
$session = $soap->login("xxxxxx-ovh", "******","fr", false); | |
echo "login successfull\n"; | |
//zoneEntryAddCustom | |
$soap->zoneEntryAddCustom($session, "hostyourcreeper.net", "SRV", "CUSTOM", "", "_minecraft._tcp.server010.hyc002", "", "10 10 25510 server010.hyc002.hostyourcreeper.net.", ""); | |
echo "zoneEntryAddCustom successfull\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
var mysql = require('mysql'); | |
var connection = mysql.createConnection({ | |
host : 'localhost', | |
user : 'root', | |
password : '', | |
database : 'watchat', | |
}); | |
connection.connect(); |
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
Sep 23 17:27:28 ns399716 kernel: [9838582.220381] ata2.00: exception Emask 0x0 SAct 0xf SErr 0x0 action 0x0 | |
Sep 23 17:27:28 ns399716 kernel: [9838582.220421] ata2.00: irq_stat 0x40000008 | |
Sep 23 17:27:28 ns399716 kernel: [9838582.220451] ata2.00: failed command: READ FPDMA QUEUED | |
Sep 23 17:27:28 ns399716 kernel: [9838582.220486] ata2.00: cmd 60/00:00:80:9a:4d/01:00:22:00:00/40 tag 0 ncq 131072 in | |
Sep 23 17:27:28 ns399716 kernel: [9838582.220488] res 41/40:00:98:9a:4d/00:01:22:00:00/00 Emask 0x409 (media error) <F> | |
Sep 23 17:27:28 ns399716 kernel: [9838582.220590] ata2.00: status: { DRDY ERR } | |
Sep 23 17:27:28 ns399716 kernel: [9838582.220618] ata2.00: error: { UNC } | |
Sep 23 17:27:28 ns399716 kernel: [9838582.343844] ata2.00: configured for UDMA/133 | |
Sep 23 17:27:28 ns399716 kernel: [9838582.343872] ata2: EH complete | |
Sep 23 17:27:31 ns399716 kernel: [9838585.807839] ata2.00: exception Emask 0x0 SAct 0xc SErr 0x0 action 0x0 |
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
cd /etc/xen | |
xm create nginx.cfg | |
for i in vm*.cfg; do xm create $i; done | |
/opt/firewall/firewall.sh restart |
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
var express = require('express') | |
, app = express.createServer() | |
, cookie = require('cookie') | |
, io = require('socket.io') | |
, _ = require('underscore')._ | |
, redis = require('redis') | |
, dbmysql = require('db-mysql') | |
, mysql = new dbmysql.Database({ | |
hostname: '', | |
port: 3306, |