Skip to content

Instantly share code, notes, and snippets.

View rizplate's full-sized avatar

Whats in the name rizplate

View GitHub Profile
@rizplate
rizplate / vpc_vpn_ec2.py
Created May 30, 2018 22:36 — forked from iMilnb/vpc_vpn_ec2.py
Dynamic Troposphere + boto3 template that creates a complete and functional VPC through AWS CloudFormation
#!/usr/bin/env python
from troposphere import Join, Output
from troposphere import Parameter, Ref, Tags, Template
from troposphere.ec2 import PortRange
from troposphere.ec2 import NetworkAcl
from troposphere.ec2 import Route
from troposphere.ec2 import VPCGatewayAttachment
from troposphere.ec2 import SubnetRouteTableAssociation
from troposphere.ec2 import Subnet
@rizplate
rizplate / ec2.py
Created May 30, 2018 21:59 — forked from iMilnb/ec2.py
AWS EC2 simple manipulation script using python and boto3
#!/usr/bin/env python
# Simple [boto3](https://github.com/boto/boto3) based EC2 manipulation tool
#
# To start an instance, create a yaml file with the following format:
#
# frankfurt:
# - subnet-azb:
# - type: t2.micro
# image: image-tagname
kubectl get services # List all services
kubectl get pods # List all pods
kubectl get nodes -w # Watch nodes continuously
kubectl version # Get version information
kubectl cluster-info # Get cluster information
kubectl config view # Get the configuration
kubectl describe node <node> # Output information about a node
kubectl get pods # List the current pods
kubectl describe pod <name> # Describe pod <name>
kubectl get rc # List the replication controllers
@rizplate
rizplate / receive_curl_upload_file.py
Created May 18, 2018 23:52 — forked from LotusChing/receive_curl_upload_file.py
receive curl upload file to flask
# coding:utf-8
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route('/upload', methods=['PUT'])
def upload():
@rizplate
rizplate / odo_csv_upload.py
Created May 17, 2018 22:29 — forked from bobquest33/odo_csv_upload.py
100 Scripts in 30 Days challenge: Script 2 & 3 — Loading a 3 GB csv file into DB using Pandas & Odo
Statsitics:
pandas_csv_upoad.py
Timing: 01:59:36.97 (1 Hour, 59 Mins, 36.97 Sec)
odo_csv_upload.py
Timing: 00:30:12.96 (30 Mins, 12.96 Sec)

Awesome Blockchain

Curated list of awesome bitcoin blockchain services:

Assets

  • Coinspark - Upgrade your bitcoin with messaging and assets
  • Coinprism - Use the Bitcoin blockchain with any kind of asset
  • Colu.co - Creating, Storing and Managing Digital Assets On Top of the Bitcoin Blockchain
  • Chronicled - Collect and trade 100% authentic products
@rizplate
rizplate / README.md
Last active May 13, 2018 00:18
AltcoinGenerator

Altcoin Generator

Easiest way to create your own cryptocurrency.

What does this script do?

This script is an experiment to generate new cryptocurrencies (altcoins) based on litecoin. It will help you creating a git repository with minimal required changes to start your new coin and blockchain.

What do I have to do?

@rizplate
rizplate / README.md
Created May 13, 2018 00:18
AltcoinGenerator

Altcoin Generator

Easiest way to create your own cryptocurrency.

What does this script do?

This script is an experiment to generate new cryptocurrencies (altcoins) based on litecoin. It will help you creating a git repository with minimal required changes to start your new coin and blockchain.

What do I have to do?

@rizplate
rizplate / infra-secret-management-overview.md
Created May 3, 2018 19:57 — forked from maxvt/infra-secret-management-overview.md
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

@rizplate
rizplate / app.py
Created April 23, 2018 20:19 — forked from mattbennett/app.py
Nameko celery integration
from flask import Flask, request
from nameko.standalone.rpc import ServiceRpcProxy
app = Flask(__name__)
@app.route('/')
def task_list():
return """
<html>