Skip to content

Instantly share code, notes, and snippets.

View overdrive3000's full-sized avatar
🇻🇪
de venezuela pa' españa

Juan Manuel Mesa overdrive3000

🇻🇪
de venezuela pa' españa
View GitHub Profile
failed: [localhost] => (item=pp-edi) => {"changed": true, "cmd": "bash -lc \"cd /var/www/pp-edi/releases/20151008014442/; bundle install\"", "delta": "0:00:16.737223", "end": "2015-10-08 01:47:12.374375", "item": "pp-edi", "rc": 5, "start": "2015-10-08 01:46:55.637152", "warnings": []}
stdout: Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Fetching [email protected]:PurchasingPlatform/as2.git
Fetching [email protected]:PurchasingPlatform/pp-client.git
Installing rake 10.2.1
Using i18n 0.6.11
Installing multi_json 1.10.1
Installing activesupport 3.2.19
#########################################################################
# 10-row School abacus
# by
# Michael H
#########################################################################
# Description partially extracted from from wikipedia
#
# Around the world, abaci have been used in pre-schools and elementary
#
# In Western countries, a bead frame similar to the Russian abacus but
@overdrive3000
overdrive3000 / Terraform Graph
Created February 12, 2016 15:35
Graphviz graph in dot format generated by Terraform
digraph {
compound = "true"
newrank = "true"
subgraph "root" {
"[root] aws_autoscaling_group.ecs_asg" [label = "aws_autoscaling_group.ecs_asg", shape = "box"]
"[root] aws_autoscaling_policy.asg_policy" [label = "aws_autoscaling_policy.asg_policy", shape = "box"]
"[root] aws_cloudwatch_metric_alarm.cpu_alarm" [label = "aws_cloudwatch_metric_alarm.cpu_alarm", shape = "box"]
"[root] aws_db_instance.wordpress-db" [label = "aws_db_instance.wordpress-db", shape = "box"]
"[root] aws_db_subnet_group.default" [label = "aws_db_subnet_group.default", shape = "box"]
"[root] aws_ecs_cluster.wordpress-cluster" [label = "aws_ecs_cluster.wordpress-cluster", shape = "box"]
from __future__ import print_function
import json
import urllib
import boto3
print('Loading function')
s3 = boto3.client('s3')
Sun Jun 19 04:04:47 UTC 2016
---
applications:
- name: simple-gochos-web-app
disk: 256M
memory: 128M
@overdrive3000
overdrive3000 / gist:c55086cd735e5ffb2e592bdcc54c48de
Created May 31, 2016 16:08
Steps to add missing file to a past commit
Stash current changes: git stash
Go back to the latest commit for edition: git rebase -i HEAD~1
Set the edit option
Apply the stashed changes to be added in the commit: git stash apply
Add the files: git add missing_files
Change the latest commit: git commit —amend
Finish the rebase: git rebase —continue
@overdrive3000
overdrive3000 / concourse-startup.log
Created June 3, 2016 16:33
concourse v1.3.0-rc.83 running in Docker and CoreOS stable (1010.5.0) startup logs
{"timestamp":"1464971434.260286093","source":"worker","message":"worker.garden.unpack-assets.unpacking","log_level":1,"data":{"session":"1.1"}}
{"timestamp":"1464971448.578568697","source":"worker","message":"worker.garden.unpack-assets.done","log_level":1,"data":{"session":"1.1"}}
{"timestamp":"1464971448.579437971","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"archive","session":"1.2.1"}}
{"timestamp":"1464971449.821817398","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-deployment","session":"1.2.2"}}
{"timestamp":"1464971452.130784750","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-io-release","session":"1.2.3"}}
{"timestamp":"1464971453.105770588","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-io-stemce
@overdrive3000
overdrive3000 / ws.js
Last active June 13, 2016 19:04
websocket-test
let msg = {
name: 'channel add',
data: {
name: 'Hardware Support'
}
};
let ws = new WebSocket('ws://localhost:4000');
ws.onopen = () => {
security_groups.push(element.UserIdGroupPairs.map(function(element){
if (element.GroupId !== sg_id) {
return element.GroupId;
}
}));