Skip to content

Instantly share code, notes, and snippets.

View Moulick's full-sized avatar
🤘
Awesome

Moulick Aggarwal Moulick

🤘
Awesome
View GitHub Profile

Hello, Diagrams!

GitHub recently added support for including Mermaid diagrams in Markdown files. The good news is that it works for AsciiDoc files as well. Here is an example:

sequenceDiagram
    participant Alice
    participant Bob
@Moulick
Moulick / browser-selector.sh
Created May 18, 2024 15:51
Script for making aws-sso-cli work in Github CodeSpaces
#!/usr/bin/env bash
# This script was introduced to make aws-sso-cli compatible with GitHub Codespaces.
# GitHub Codespaces defines a $BROWSER env var that handles opening urls.
# https://github.com/synfinatic/aws-sso-cli/issues/816
# If $BROWSER is not set then use 'open' on macos and 'xdg-open' on linux.
if [[ -z ${BROWSER+x} ]]; then
if [[ "$(uname)" == "Darwin" ]]; then
BROWSER=open
{
"$ref": "#/definitions/VpcCni",
"$schema": "http://json-schema.org/draft-06/schema#",
"definitions": {
"Affinity": {
"type": [
"object",
"null"
]
},
{
"$ref": "#/definitions/Coredns",
"$schema": "http://json-schema.org/draft-06/schema#",
"definitions": {
"Coredns": {
"additionalProperties": false,
"properties": {
"affinity": {
"default": {
"affinity": {
@Moulick
Moulick / macos-bitwarden-cli-with-touch-id.md
Last active July 31, 2024 12:36 — forked from mietzen/macos-bitwarden-cli-with-touch-id.md
How to use use Bitwarden CLI with macOS Touch ID

How to use Bitwarden CLI with macOS Touch ID

If you want to use Bitwarden CLI for ssh have a look at: How to use use Bitwarden CLI for SSH-Keys in macOS

Wirtten and tested on macOS Ventura

Configure Touch ID for the sudo command

To allow Touch ID on your Mac to authenticate you for sudo access instead of a password you need to do the following.

Keybase proof

I hereby claim:

  • I am moulick on github.
  • I am moulick (https://keybase.io/moulick) on keybase.
  • I have a public key ASBu2N3FFKIk2YxToJ3tegXJV08x45AeMfrXxJTD3Id9NAo

To claim this, I am signing this object:

@Moulick
Moulick / helm-rbac.md
Created August 19, 2018 15:17 — forked from mgoodness/helm-rbac.md
Helm RBAC setup for K8s v1.6+ (tested on minikube)
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
@Moulick
Moulick / XPS-15 9560 Getting Nvidia To Work on KDE Neon
Created March 10, 2018 19:16 — forked from whizzzkid/XPS-15 9560 Getting Nvidia To Work on KDE Neon
[XPS 15 Early 2017 9560 kabylake] Making Nvidia Drivers + (CUDA 8 / CUDA 9 / CUDA 9.1) + Bumblebee work together on linux ( Ubuntu / KDE Neon / Linux Mint / debian )
# Instructions for 4.14 and cuda 9.1
# If upgrading from 4.13 and cuda 9.0
$ sudo apt-get purge --auto-remove libcud*
$ sudo apt-get purge --auto-remove cuda*
$ sudo apt-get purge --auto-remove nvidia*
# also remove the container directory direcotory at /usr/local/cuda-9.0/
# Important libs required with 4.14.x with Cuda 9.X
$ sudo apt install libelf1 libelf-dev
@Moulick
Moulick / readme.md
Created September 2, 2017 16:18 — forked from pohmelie/readme.md
Install opencv3 for python 3.5.0 with pyenv on ubuntu 14.04

Install opencv3 for python 3.5.0 with pyenv on ubuntu 14.04

  • update cmake and install deps as this said.

  • run cmake

    cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=~/.pyenv/versions/3.5.0/usr/local/ \
    -D INSTALL_C_EXAMPLES=OFF \
    -D BUILD_NEW_PYTHON_SUPPORT=ON \