This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: "extensions/v1beta1" | |
kind: "Ingress" | |
metadata: | |
annotations: | |
nginx.ingress.kubernetes.io/ssl-passthrough: "false" | |
kubernetes.io/ingress.class: "nginx" | |
finalizers: [] | |
labels: | |
app: "utility" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: "v1" | |
kind: "Service" | |
metadata: | |
annotations: {} | |
finalizers: [] | |
labels: | |
app: "utility" | |
name: "utility" | |
ownerReferences: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: "extensions/v1beta1" | |
kind: "Deployment" | |
metadata: | |
labels: | |
app: "utility" | |
name: "utility-deployment" | |
spec: | |
replicas: 1 | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
import ballerina/log; | |
import ballerinax/kubernetes; | |
@kubernetes:Ingress { | |
hostname:"ballerina.gateway.com" | |
} | |
@kubernetes:Service { | |
name:"utility", | |
serviceType:"NodePort" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
import ballerina/log; | |
import ballerinax/docker; | |
@docker:Expose{} | |
endpoint http:Listener utilityEp { | |
port:8280 | |
}; | |
@docker:Config { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ballerina/ballerina:0.981.1 | |
LABEL maintainer="[email protected]" | |
COPY utility.balx /home/ballerina | |
EXPOSE 8280 | |
CMD ballerina run utility.balx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
import ballerina/log; | |
endpoint http:Listener utilityEp { | |
port:8280 | |
}; | |
@http:ServiceConfig { | |
basePath:"/utility" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder