Skip to content

Instantly share code, notes, and snippets.

View arush-sal's full-sized avatar
🏍️
riding

Arush Salil arush-sal

🏍️
riding
View GitHub Profile
@arush-sal
arush-sal / metric-server-v3.6.0
Created July 1, 2020 02:35
metric-server-v3.6.0
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: system:aggregated-metrics-reader
labels:
rbac.authorization.k8s.io/aggregate-to-view: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rules:
@arush-sal
arush-sal / zsh default compinstall
Created July 6, 2020 11:37
zsh default compinstall
# Set up the prompt
autoload -Uz promptinit
promptinit
prompt adam1
setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
# this config file contains all config fields with comments
# NOTE: this is not a particularly useful config file
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
# patch the generated kubeadm config with some extra settings
kubeadmConfigPatches:
- |
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
@arush-sal
arush-sal / gist:801a2486036dfdb558f899d4ba2af72c
Created December 14, 2021 09:15
IPv4 Socket Address Regex
def is_ipv4_socket_address(network):
return re.match(r"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]):([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$",network)
@arush-sal
arush-sal / notify.yml
Created October 6, 2022 08:47 — forked from trung/notify.yml
Notify slack about Github Actions workflow and its jobs status. `notify` job must be the last job in the workflow and it must depend on all other jobs
notify:
if: always()
name: Notify
needs:
- job1
- job2
- job11
- job3
- job4
runs-on: ubuntu-latest

Keybase proof

I hereby claim:

  • I am arush-sal on github.
  • I am salil (https://keybase.io/salil) on keybase.
  • I have a public key ASDGilU2l3TYo_m5DU0yQjz5yxw_VSv8y5xF-q3t6IJp7go

To claim this, I am signing this object: