Skip to content

Instantly share code, notes, and snippets.

View mlushpenko's full-sized avatar

Maksym Lushpenko mlushpenko

View GitHub Profile
@mlushpenko
mlushpenko / custom-docker-config
Created March 15, 2021 12:23
Docker login custom config
$ docker --config /tmp login registry.gitlab.com
$ cat /tmp/config.json
{
"auths": {
"registry.gitlab.com": {}
},
"credsStore": "osxkeychain"
}
# Example scrape config for probing ingresses via the Blackbox Exporter.
#
# The relabeling allows the actual ingress scrape endpoint to be configured
# via the following annotations:
#
# * `prometheus.io/probe`: Only probe services that have a value of `true`
- job_name: 'kubernetes-ingresses'
metrics_path: /probe
params:
@mlushpenko
mlushpenko / blackbox-ingress.yaml
Created June 18, 2020 15:22
blackbox-ingress
## Monitor Kubernetes ingress endpoints
- job_name: blackbox
metrics_path: /probe
params:
module: [http_2xx]
kubernetes_sd_configs:
- role: ingress
relabel_configs:
# 1. Set ingress address protocol to https, so we can make sure certificates are valid while probing endpoints
@mlushpenko
mlushpenko / cilium.yml
Created October 28, 2019 16:03
Cilium yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: cni-configuration
data:
cni-config: |-
{
"cniVersion": "0.3.0",
"name": "azure",
"plugins": [
c.JupyterHub.authenticator_class = RemoteUserAuthenticator
c.RemoteUserAuthenticator.header_name = "X-User-Id"
eas: {
plugins: [
{
type: "oidc",
issuer: {
discover_url: "https://example.com/.well-known/openid-configuration",
},
client: {
client_id: "tenantA",
client_secret: "tenantSecret",
{
"nbf": 1568720155,
"exp": 1568723755,
"name": "lushpenko",
"email": "maksym.lushpenko@hal24k.com",
"current_tenant": "tenantA",
"permissions": [
"datalab",
"dataflow",
],

Keybase proof

I hereby claim:

  • I am mlushpenko on github.
  • I am lumaks (https://keybase.io/lumaks) on keybase.
  • I have a public key whose fingerprint is 5336 E35D E3B4 74AD 0A88 EB2A 6EA7 02F0 A2AB 8F0F

To claim this, I am signing this object:

@mlushpenko
mlushpenko / gist:463dc843acedbbbfe238
Created June 15, 2015 13:18
Fibonacci big numbers
public int solution(int N) {
// write your code in Java SE 8
BigInteger fib = fibonacci(N);
System.out.println(fib);
int remainder = fib.mod(new BigInteger("1000000")).intValue() ;
return remainder;
}
public BigInteger fibonacci(int i){
if (i < 2)
-----------------------------------1.2 Research problem-----------------------------------
In this work we focus on two challenges: (i) combination of the declarative and imperative
approaches to the application provisioning and deployment, and (ii) continuous
deployment of cloud applications. Based on this, the reasearch problem may be formulated as follows:
"How can we enable both, flexibility and fine-grained control, in the deployment and provisioning of multi-cloud
applications, and allow efficient run-time management of such applications?"
-------------------------------------1.3 Research questions-------------------------------------