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 / enzyme.ts
Created Oct 16, 2019
TypeScript + React-Native + Redux + Jest + Enzyme + Enzyme Adapter
View enzyme.ts
import 'react-native';
import 'jest-enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Enzyme from 'enzyme';
import { global } from 'core-js';
import { JSDOM } from 'jsdom';
const jsdom = new JSDOM();
const { window } = jsdom;
GioCirque / repoMove.js
Created Jan 17, 2019
A repository migration script for moving repos in multiple organization from GitHub to BitBucket
View repoMove.js
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 / sequ-diagram-gitflow.txt
Last active Dec 10, 2018
GitFlow Diagram for
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 / 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 /
Created Oct 5, 2018
Find unique variables in Terraform files
grep -ohe '\${var\.[0-9a-zA-Z_.]*}' ./*.tf | sort --unique
You can’t perform that action at this time.