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
apt-get update | |
apt-get install -q -y python-software-properties | |
add-apt-repository ppa:ondrej/php5 | |
add-apt-repository ppa:chris-lea/node.js | |
apt-get install -q -y php5 php5-fpm php5-mssql php5-gd php5-imagick php5-mysql php5-curl php5-cli php5-pgsql | |
apt-get remove -q -y apache2 | |
apt-get install -q -y nginx mysql-server git curl nodejs | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer |
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
dblib:host=<host>;dbname=<dbname> |
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 | |
// ... autoload and stuff | |
/** | |
* Really stupid handler that takes first argument that is instance of an exception | |
*/ | |
Nette\Diagnostics\Debugger::$onFatalError[] = $errorHandler = function () { | |
static $client = NULL; |
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
#!/usr/bin/env php | |
<?php | |
// Let bootstrap create Dependency Injection container. | |
$container = require __DIR__ . '/app/bootstrap.php'; | |
// Run application. | |
$container->getService('application')->run(); |
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 | |
trait TemplateFactory | |
{ | |
/** | |
* @inject | |
* @var \Rixxi\ITemplateFactory | |
*/ | |
public $templateFactory; |
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
#!/bin/sh | |
VERSION=6.0 | |
cd /tmp | |
unzip ADL_SDK_$VERSION.zip | |
cp /tmp/include/* /opt/miners/cgminer/ADL_SDK |
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
#!/bin/sh | |
apt-get install dos2unix -y | |
dos2unix /opt/bamt/gpumon | |
dos2unix /opt/bamt/mgpumon |
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 | |
namespace App; | |
use CryptoBot; | |
use CryptoBot\McxNow\Currency; | |
use Nette; | |
use React; | |
use React\Promise\When; | |
use Symfony; |
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
<div class="ui dropdown selection" data-bind="dropdown: dropdown"></div> | |
<!-- actual template is in binding script --> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |