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 | |
// curl -sS https://getcomposer.org/installer | php | |
// php composer.phar require aws/aws-sdk-php | |
// export AWS_ACCESS_KEY_ID=... | |
// export AWS_SECRET_ACCESS_KEY=... | |
$queueUrl = '<INSERT_URL_OF_EXISTING_QUEUE_HERE>'; |
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 OFF | |
SET BACKUPSTORAGEPATH=\\AOE-nas\fabrizio.branca\backup\Virtualbox\ | |
SET VBOXMANAGE="C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" | |
SET VMNAME=devbox | |
IF NOT EXIST %BACKUPSTORAGEPATH% GOTO NOBACKUPDIRFOUND | |
echo Starting backup of VM '%VMNAME%' to %BACKUPSTORAGEPATH% |
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 | |
// curl -sS https://getcomposer.org/installer | php | |
// php composer.phar require aws/aws-sdk-php | |
// export AWS_ACCESS_KEY_ID=... | |
// export AWS_SECRET_ACCESS_KEY=... | |
$streamName = '<INSERT_YOUR_STREAMNAME_HERE>'; | |
$numberOfRecordsPerBatch = 10000; |
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 | |
/** | |
* Drop this into the shell directory in the Magento root and run without any arguments. | |
*/ | |
require_once 'abstract.php'; | |
/** | |
* Clean up the 1.6.1 sample data to work with the 1.8 CE url key constraints. |
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 AWS = require('aws-sdk'); | |
var cloudwatch = new AWS.CloudWatch({ region: 'us-east-1'}); | |
exports.handler = function (event, context) { | |
var ElasticSearchHost = 'elasticsearch.example:9200'; | |
var Environment = 'int'; | |
var EndTime = new Date; | |
var StartTime = new Date(EndTime - 15*60*1000); | |
var Metrics = { |
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 | |
// Initialize | |
$app = new SimpleHttpClient('http://www.demo.local/xmlconnect/'); | |
$app->addCookie('app_code', 'INSERT APP CODE HERE'); | |
$app->addCookie('screen_size', '600x400'); | |
// get products in category 3 |
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 db = require("redis-client").createClient(); | |
require("http").createServer(function(request, response) { | |
db.incr("count",function(err, reply) { | |
response.writeHead(200, { "Content-Type": "text/plain" }); | |
response.write(reply.toString()); | |
response.end(); | |
}); | |
}).listen(8181); |
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
function dotenv --description 'Load environment variables from .env file' | |
set -l envfile ".env" | |
if [ (count $argv) -gt 0 ] | |
set envfile $argv[1] | |
end | |
if test -e $envfile | |
for line in (cat $envfile | grep -v '^#' | grep -v '^$') | |
set -xg (echo $line | cut -d = -f 1) (echo $line | cut -d = -f 2-) | |
end |
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/bash | |
cd /var/hackathon/projects | |
for i in `find . -maxdepth 1 -mindepth 1 -type d`; do | |
project=`echo $i | sed 's/\.\///g'` | |
cd "/var/hackathon/projects/$project" | |
echo "Updating project $project" | |
git pull | |
php /var/hackathon/gitlog2elasticsearch.php http://localhost:9200/hackathon/commit/ "$project" '2 days ago' | |
done |
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
#build-pipeline-plugin-content { | |
background-color: none; | |
border-radius: 0; | |
} | |
#build-pipeline-plugin-content h1 { | |
display: none; | |
} | |
tbody.pipelineGroup { |
NewerOlder