- Download and install Ruby 2.0.0 (x86) and appropriate DevKit from http://rubyinstaller.org/downloads/
- Install DevKit following steps in https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
- Hope you have git and ruby in path run following code in CMD (or CMD with Ruby)
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
#!/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
<?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
#!/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 | |
// ... 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
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
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
ko.extenders.url = function (target, option) { | |
var value = $.address.parameter(option); | |
if (value) { | |
target(value); | |
} | |
target.subscribe(function (value) { | |
$.address.parameter(option, value); | |
}); |
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
REGEDIT4 | |
[HKEY_CLASSES_ROOT\editor] | |
@="URL:editor Protocol" | |
"URL Protocol"="" | |
[HKEY_CLASSES_ROOT\editor\shell\open\command] | |
@="wscript \"C:\\bin\\scripts\\run-editor.js\" \"%1\"" |