Skip to content

Instantly share code, notes, and snippets.

Vinod Chandru vinodc

Block or report user

Report or block vinodc

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
vinodc /
Created Jun 27, 2019 — forked from david-thorman/
Kloudless Enterprise configuration file skeleton generator
set -eu -o pipefail
gen_priv() {
openssl genrsa 2048 2> /dev/null
gen_pub() {
echo "${1}" | openssl rsa -pubout 2> /dev/null
vinodc /
Created Aug 23, 2017
Python script to print out information to configure an Azure app's keyCredentials entry.
#!/usr/bin/env python
import os
import sys
from base64 import b64encode
from uuid import uuid4
from cryptography import x509
from cryptography.hazmat.backends import default_backend
vinodc /
Created May 24, 2016
Shell script to run VMware VM in headless mode.
# Modified version of:
# See above for adding `vmrun` to your path.
if [ -z "$vmFile" -a -f *.vmx ]
vmFile=`ls *.vmx | head -n 1`
echo "vmFile set to $vmFile."
vinodc / kloudless-upload-location-iam-policy.json
Last active Aug 29, 2015
Kloudless Upload Location IAM Policy JSON
View kloudless-upload-location-iam-policy.json
"Statement": [
"Effect": "Allow",
"Action": [
vinodc /
Last active Jul 8, 2019
Simple Kloudless API webhooks receiver for testing purposes
#!/usr/bin/env python
This is a simple webhooks receiver for testing purposes. It should NOT be used on
production as it does not verify the sender. For an example that does, check out
To install dependencies and run:
$ pip install flask
vinodc / ipsec.secrets
Created Dec 30, 2014
/etc/ipsec.secrets, /etc/ipsec.secrets.d/us-west-2.secrets
View ipsec.secrets
# /etc/ipsec.secrets
# Add the location of our secrets files.
include /etc/ipsec.secrets.d/*
vinodc / us-west-2.conf
Last active Aug 29, 2015
View us-west-2.conf
# /etc/ipsec.d/us-west-2.conf
conn us-west-2
# right is remote
# left is local
vinodc / 99-openswan.conf
Created Dec 30, 2014
View 99-openswan.conf
# /etc/sysctl.d/99-openswan.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.default.send_redirects = 0
# Wrote this before realizing django.utils.functional.lazy existed.
class LazyDict(dict):
Loads data lazily.
def __init__(self, loader, *args, **kwargs):
self._data_loaded = False
self.loader = loader
super(LazyDict, self).__init__(*args, **kwargs)
vinodc / file-explorer.html
Created Oct 10, 2014
Kloudless File Explorer example implementation
View file-explorer.html
<!DOCTYPE html>
<title>File Explorer</title>
Throw in the HTML from the JSFiddle's HTML tab here.
The JSFiddle is at
You can’t perform that action at this time.