Skip to content

Instantly share code, notes, and snippets.

View harsimranmaan's full-sized avatar

Harsimran Singh Maan harsimranmaan

View GitHub Profile
@harsimranmaan
harsimranmaan / gist:e1766da2533a62ce2ca45ff490772b25
Created August 8, 2017 22:39
Harsimran's first test network
0x051165917b0F646a7cbb1c364F10F45BEDECae2C
@harsimranmaan
harsimranmaan / qbec.yaml
Created July 24, 2020 17:42
qbec default docker desktop
apiVersion: qbec.io/v1alpha1
kind: App
metadata:
name: my-app
spec:
environments:
default:
defaultNamespace: default
server: https://kubernetes.docker.internal:6443
vars: {}
@harsimranmaan
harsimranmaan / default.libsonnet
Created July 24, 2020 18:09
Configuration override for default environment
// this file has the param overrides for the default environment
local base = import './base.libsonnet';
base {
components +: {
hello +: {
indexData: 'hello default\n',
replicas: 2,
},
@harsimranmaan
harsimranmaan / params.libsonnet
Created July 24, 2020 18:11
Environment mapping in params.libsonnet
// this file returns the params for the current qbec environment
// you need to add an entry here every time you add a new environment.
local env = std.extVar('qbec.io/env');
local paramsMap = {
_: import './environments/base.libsonnet',
default: import './environments/default.libsonnet',
};
@harsimranmaan
harsimranmaan / hello.jsonnet
Created July 24, 2020 18:16
The deployment and config maps objects for my-app
local p = import '../params.libsonnet';
local params = p.components.hello;
[
{
apiVersion: 'v1',
kind: 'ConfigMap',
metadata: {
name: 'demo-config',
},
@harsimranmaan
harsimranmaan / launch.json
Last active August 14, 2020 01:07
Rust debug config
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/target/debug/rustapp",
"args": [],
"cwd": "${workspaceFolder}"
@harsimranmaan
harsimranmaan / jupyterhub-istio-proxy-gateway.yaml
Created September 15, 2020 01:49
jupyterhub-istio-proxy-gateway.yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: jupyterhub-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 80
@harsimranmaan
harsimranmaan / jupyterhub-istio-proxy.yaml
Last active September 15, 2020 02:40
jupyterhub-istio-proxy.yaml deploy + svc
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: jupyterhub
component: proxy
name: proxy
spec:
replicas: 1
selector:
@harsimranmaan
harsimranmaan / SAP_CLA
Created November 9, 2020 01:38 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
### SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwi
@harsimranmaan
harsimranmaan / main.go
Last active June 10, 2024 02:05
Go embed gist
package main
import (
"embed"
"html/template"
"log"
"net/http"
)
// The go embed directive statement must be outside of function body