Skip to content

Instantly share code, notes, and snippets.

Gio Palacino GioCirque

Block or report user

Report or block GioCirque

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@GioCirque
GioCirque / repoMove.js
Created Jan 17, 2019
A repository migration script for moving repos in multiple organization from GitHub to BitBucket
View repoMove.js
/*
Instructions:
1) Download this script to a folder
2) Install axios
2.1) npm install axios
2.2) yarn add axios
3) Run: "node repoMove.js" to see usage
*/
const fs = require('fs');
@GioCirque
GioCirque / sequ-diagram-gitflow.txt
Last active Dec 10, 2018
GitFlow Diagram for SequenceDiagram.org
View sequ-diagram-gitflow.txt
title GitFlow
participant "<color #orange>develop</color>" as develop
lifelinecolor develop #orange
participant "<color #purple>feature/MP-02</color>" as feature/MP-02
lifelinecolor feature/MP-02 #purple
participant "<color #purple>feature/MP-01</color>" as feature/MP-01
lifelinecolor feature/MP-01 #purple
@GioCirque
GioCirque / aws_cli_sgs_json_to_tf.js
Created Oct 5, 2018
Transforms AWS CLI JSON output from Describe Security Groups into variable driven Terraform definition.
View aws_cli_sgs_json_to_tf.js
const fs = require('fs');
/*
File contains the output of:
"aws ec2 describe-security-groups --filters Name=vpc-id,Values=<vpc_id> --output json"
This could also be an AWS SDK invocation
*/
const data = fs.readFileSync('./data.json');
const json = JSON.parse(data);
@GioCirque
GioCirque / terraform_vars.sh
Created Oct 5, 2018
Find unique variables in Terraform files
View terraform_vars.sh
grep -ohe '\${var\.[0-9a-zA-Z_.]*}' ./*.tf | sort --unique
You can’t perform that action at this time.