Skip to content

Instantly share code, notes, and snippets.

View indykish's full-sized avatar

Kishorekumar Neelamegam indykish

View GitHub Profile
@indykish
indykish / megam.comp.json
Last active October 30, 2015 09:49
The base declarative directive of megam cloud component json which illustrates that an app in git/image, docker git/image, service can be launched.
{
"name": "component_1",
"tosca_type": "tosca.web.Java",
"inputs": [
"domain",
"version"
],
"related_components": "",
"status": "deploying, creating, bootstrapping, stateup, running",
"outputs": [],
@indykish
indykish / megam.assembly.json
Created October 22, 2015 05:52
The base declarative directive of megam cloud assembly json which illustrates that an app in git/image, docker git/image, service can be launched.
{
"name":"assembly_name",
"components":[
"component_1"
],
"tosca_type":"tosca.torpedo.coreos",
"inputs":[
{
"key":"domain",
"value":"megambox.com"
@indykish
indykish / megam.assemblies.json
Last active October 22, 2015 06:00
The base declarative directive of megam cloud assemblies json which illustrates that more declarative directives can be housed inside it (assembly of app in git/image, docker git/image, service) can be launched.
{
"id" : "assemblies_id ",
"name" : "assemblies_name ",
"accounts_id" : "accounts_id of the holder",
"assemblys" : ["assemblys_id"],
"inputs" : ["01"],
"created_at" : "date"
}
@indykish
indykish / megam.assemblies.torpedo.json
Created October 22, 2015 05:57
The declarative directive of megam cloud assemblies json which illustrates that any app in git/image, docker git/image, service can be launched by bundling assemblys
{
"id":" ",
"name":" ",
"accounts_id":" ",
"assemblies":[
"ASM0001"
],
"inputs":[
"01"
],
@indykish
indykish / dockerinstall_xenial.sh
Last active July 31, 2018 04:43 — forked from katopz/install-docker-exp.sh
Install Docker 1.12 on Ubuntu Xenial 16.04.1 x64
# Install Docker on Xenial 16.04.1 x64
# Ref https://docs.docker.com/engine/installation/linux/ubuntulinux/
# No interactive for now.
export DEBIAN_FRONTEND=noninteractive
# Update your APT package index.
sudo apt-get -y update
# Update package information, ensure that APT works with the https method, and that CA certificates are installed.
sudo apt-get -y install apt-transport-https ca-certificates
# Add the new GPG key.
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@indykish
indykish / nil.sh
Last active September 27, 2016 04:44
Nilavu production tuneup
### Base image prepare
apt-get -y update
apt-get -y install build-essential git wget \
libxslt-dev libcurl4-openssl-dev \
libssl-dev libyaml-dev libtool \
libxml2-dev gawk parallel \
libreadline-dev \
language-pack-en cron anacron \
psmisc rsyslog whois brotli
@indykish
indykish / Readme_VSCODE_FreeBSD
Created November 19, 2016 17:39 — forked from prash-wghats/Readme_VSCODE_FreeBSD
Notes for Building Electron and VSCode in FreeBSD11
Copy all the files to the build directory.
Copy icudtl.dat to the build directory. (you can find it in the vscode downloads ex for linux).
chromium version in port is 52.0.2743.116.
This was built with FreeBSD 11.0-RELEASE-p1. If building with other versions probably need to change
the freebsd versions in diff files (ex. freebsd11 => freebsd10)
Installed
node => v6.9.1
npm => 3.9.2
>chmod 755 vscode_build.sh
@indykish
indykish / monkey.post
Created April 28, 2017 05:59
Mocky.io: POST of monkey with id: 1
{
"id": "1",
"name": "fegh",
"items": [
{
"key": "food",
"value": "banana"
},
{
"key": "work",
@indykish
indykish / clone_fn_rust.rs
Created December 29, 2017 10:45
Clone Fn closure using Arc in rust lang
use std::sync::Arc;
use std::fmt;
type Fp = Box<Fn(i8, i8) -> i8 + Send + Sync>;
#[derive(Clone)]
struct WithCall {
fp: Arc<Fp>,
}
@indykish
indykish / bootstrap
Created November 10, 2019 13:38 — forked from mhart/bootstrap
Out-of-the-box AWS Lambda custom runtime (implemented in bash!)
#!/bin/sh
set -euo pipefail
# Handler format: <script_name>.<function_name>
# The script file <script_name>.sh must be located in
# the same directory as the bootstrap executable.
source $(dirname "$0")/"$(echo $_HANDLER | cut -d. -f1).sh"
while true