Skip to content

Instantly share code, notes, and snippets.

View sangam14's full-sized avatar
🖥️
🦀🐳🕸️☁️🛡️🥑

Sangam Biradar sangam14

🖥️
🦀🐳🕸️☁️🛡️🥑
View GitHub Profile
@sangam14
sangam14 / gist:241a471238dba534bf4224eaa6e44ac5
Created February 23, 2023 20:01
GitStar Counter - Scriptable App
const WIDGET_TITLE = "ThreatMapper"
const GITHUB_REPO = "deepfence/ThreatMapper"
const CACHED_DATA_HOURS = 1
async function createWidget() {
// Create new empty ListWidget instance
let listwidget = new ListWidget();
// Set new background color
startColor = new Color("#212121")
version: "3"
services:
chrome:
image: selenium/node-chrome:4.4.0-20220831
shm_size: 2gb
depends_on:
- selenium-hub
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
Q1) Ans - c
Q2) Ans - b
Q3) Ans - b
Q4) Ans - a
Q5) Ans - c
Q6) Ans - b
Q7) Ans - b
Q8) Ans - c
Q9) Ans - c
Q10) Ans - c
@sangam14
sangam14 / ans.txt
Created September 4, 2021 15:22
Golang-MCQ-ans
Q1: What's the output of the following code?
```go
package main
import "fmt"
const (
a = iota
b = iota
@sangam14
sangam14 / test.txt
Last active September 4, 2021 16:34
Golang MCQ
Q.1 What’s the output of the following code?
```
package main
import "fmt"
const (
a = iota
b = iota
c = iota
@sangam14
sangam14 / basics- part 1
Created December 25, 2020 18:51
rustlab
$ rustup.sh # install rust, see rust-lang.org for details
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ cargo new bin # start new executable project
$ ls -lR # list our skeleton of files
src/main.rs # main.rs, has main() entry point
Cargo.toml # Cargo.toml defines packaging
$ $EDITOR Cargo.toml # add dependencies and other details
# This manifest deploys the OpenEBS control plane components, with associated CRs & RBAC rules
# NOTE: On GKE, deploy the openebs-operator.yaml in admin context
# Create the OpenEBS namespace
apiVersion: v1
kind: Namespace
metadata:
name: sangam14
---
# Create Maya Service Account
@sangam14
sangam14 / Civo-Keptn.txt
Last active October 5, 2020 18:48
keptn-civo
Last login: Sat Sep 19 02:40:19 on console
sangam:~ sangam$ export KUBECONFIG=Downloads/civo-sangam-kubeconfig
sangam:~ sangam$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
kube-master-c115 Ready master 32m v1.18.6+k3s1
sangam:~ sangam$ keptn install --use-case=continuous-delivery
Helm Chart used for Keptn installation: https://storage.googleapis.com/keptn-installer/keptn-0.7.1.tgz
Please confirm that the provided cluster information is correct:
Cluster: sangam
@sangam14
sangam14 / redis-cluster.yml
Last active August 2, 2020 18:05
okteto-redis-cluster
---
apiVersion: v1
kind: ConfigMap
metadata:
name: redis-cluster
labels:
app: redis-cluster
data:
fix-ip.sh: |
#!/bin/sh