Skip to content

Instantly share code, notes, and snippets.

View raj-rajaratnam's full-sized avatar

Rajkumar Rajaratnam raj-rajaratnam

View GitHub Profile
@raj-rajaratnam
raj-rajaratnam / script.js
Created April 8, 2019 00:07 — forked from QuantBits/script.js
BitMex USD Converter - For TemperMonkey
// ==UserScript==
// @name BitMex USD Converter
// @namespace https://bitmex.com/
// @version 0.11
// @description Get some sanity into your gambling.
// @author koinkraft
// @grant none
// @include https://bitmex.com/*
// @include https://www.bitmex.com/*
// @require https://code.jquery.com/jquery-2.1.4.min.js
---
apiVersion: "extensions/v1beta1"
kind: "Ingress"
metadata:
annotations:
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
kubernetes.io/ingress.class: "nginx"
finalizers: []
labels:
app: "utility"
---
apiVersion: "v1"
kind: "Service"
metadata:
annotations: {}
finalizers: []
labels:
app: "utility"
name: "utility"
ownerReferences: []
---
apiVersion: "extensions/v1beta1"
kind: "Deployment"
metadata:
labels:
app: "utility"
name: "utility-deployment"
spec:
replicas: 1
template:
import ballerina/http;
import ballerina/log;
import ballerinax/kubernetes;
@kubernetes:Ingress {
hostname:"ballerina.gateway.com"
}
@kubernetes:Service {
name:"utility",
serviceType:"NodePort"
import ballerina/http;
import ballerina/log;
import ballerinax/docker;
@docker:Expose{}
endpoint http:Listener utilityEp {
port:8280
};
@docker:Config {
FROM ballerina/ballerina:0.981.1
LABEL maintainer="[email protected]"
COPY utility.balx /home/ballerina
EXPOSE 8280
CMD ballerina run utility.balx
import ballerina/http;
import ballerina/log;
endpoint http:Listener utilityEp {
port:8280
};
@http:ServiceConfig {
basePath:"/utility"
}
# -*- mode: ruby -*-
# vi: set ft=ruby :
servers = [
{
:name => "k8s-head",
:type => "master",
:box => "ubuntu/xenial64",
:box_version => "20180831.0.0",
:eth1 => "192.168.205.10",
import wso2/ftp;
import ballerina/io;
import ballerina/task;
import ballerina/math;
import ballerina/runtime;
import ballerina/log;
import ballerina/http;
import ballerina/config;
int count;