Skip to content

Instantly share code, notes, and snippets.

View jasonco-dev's full-sized avatar

Jason Camacho jasonco-dev

  • Guaynabo, Puerto Rico
View GitHub Profile
@jasonco-dev
jasonco-dev / README.md
Created August 1, 2016 16:02 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index:

@jasonco-dev
jasonco-dev / targetBlankVulnerabilityPatch.js
Created December 5, 2016 18:36 — forked from jonathanagosto/targetBlankVulnerabilityPatch.js
Find all tags using target="_blank" and inject rel="noreferrer noopener"
var aTags = document.querySelectorAll('[target]');
var att = document.createAttribute('rel');
att.value = 'noopener noreferrer';
aTags.forEach(function (tag) {
var nodeClone = att.cloneNode(true);
tag.setAttributeNode(nodeClone);
});
@jasonco-dev
jasonco-dev / s3.py
Created August 15, 2019 17:50 — forked from nanvel/s3.py
Async s3 uploader for tornado
"""
Async Tornado S3 uploader with AWS4 sign.
https://gist.github.com/stalkerg/63bad3ea49be6268df49
Edited by @nanvel 2015-07-24
Usage example:
.. code-block:: python
@jasonco-dev
jasonco-dev / replacements.py
Created August 30, 2019 00:01 — forked from cbcafiero/replacements.py
Easy multiple search and replace by tag and attribute with BeautifulSoup
"""
Sometimes you want to make several different replacements. Search by tag with
optional attributes. Replace with tag with optional attributes.
Thank you to Dan @ University of Exeter for bug fix
"""
from bs4 import BeautifulSoup
REPLACEMENTS = [('b', {}, 'strong', {}),
@jasonco-dev
jasonco-dev / generate.js
Created February 6, 2021 03:17 — forked from dehamzah/generate.js
Generate secret key in NodeJS
require('crypto').randomBytes(48, function(err, buffer) { var token = buffer.toString('hex'); console.log(token); });
@jasonco-dev
jasonco-dev / get_rds_tags
Created January 19, 2022 21:28 — forked from aheld/get_rds_tags
get RDS tags using AWS cli , this really seems too complicated
#!/bin/bash
REGION="us-east-1"
PROFILE="prod"
get_account_id(){
aws ec2 describe-security-groups \
--group-names 'Default' \
--query 'SecurityGroups[0].OwnerId' \
--output text \

Both things have been introduced recently, and let you access even private ec2 instances

  1. Without VPN
  2. No open SSH port
  3. Authentication / Authorization is fully delegated to IAM
# Assumes valid AWS Credentials in ENV