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 | |
/** | |
* AWS CloudFormation Events Visualization | |
* | |
* @author Fabrizio Branca | |
*/ | |
/** | |
* Create an 'events.json' via using the AWS CLI Tool (or one of the SDKs...) | |
* |
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
Verifying that +fabrizio is my blockchain ID. https://onename.com/fabrizio |
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 <FastLED.h> | |
#define NUM_LEDS 24 | |
#define NUM_DOTS 3 | |
#define DATA_PIN 0 | |
#define MAX_SPEED 60 | |
using namespace std; | |
CRGB leds[NUM_LEDS]; |
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 | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get -y install software-properties-common | |
# X2Go | |
add-apt-repository -y ppa:x2go/stable && apt-get update | |
apt-get -y install x2goserver | |
# Download PHPStorm |
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
exports.SUCCESS = "SUCCESS"; | |
exports.FAILED = "FAILED"; | |
exports.send = function(event, context, responseStatus, responseData, physicalResourceId) { | |
var responseBody = JSON.stringify({ | |
Status: responseStatus, | |
Reason: "See the details in CloudWatch Log Stream: " + context.logStreamName, | |
PhysicalResourceId: physicalResourceId || context.logStreamName, |
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 page = require('webpage').create(); | |
function extractDomain(url) { | |
var domain = (url.indexOf("://") > -1) ? url.split('/')[2] : url.split('/')[0]; | |
domain = domain.split(':')[0]; | |
return domain; | |
} | |
var domains = {}; |
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 | |
echo '{"Fn::Base64": {"Fn::Join": ["\n", ' . json_encode(file($argv[1], FILE_IGNORE_NEW_LINES), JSON_PRETTY_PRINT) . ']}}'; |
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/www/orocommerce/devbox/releases/current/vendor: tree -d -L 2 | |
. | |
├── a2lix | |
│ └── translation-form-bundle | |
├── akeneo | |
│ └── batch-bundle | |
├── ass | |
│ └── xmlsecurity | |
├── behat | |
│ └── transliterator |