Skip to content

Instantly share code, notes, and snippets.

View jeevanshu's full-sized avatar

Jeevanshu Malhotra jeevanshu

View GitHub Profile
@jeevanshu
jeevanshu / Kubernetes configmap hash
Created May 22, 2020 06:46
Force deployment to get changes if configmap is modified by adding sha256 hash
template:
metadata:
labels:
app: app-name
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap/app-configmap.yaml") . | sha256sum }}
@jeevanshu
jeevanshu / Ansible-env.md
Last active October 2, 2022 20:13
Ansible setting env variables in host

Environment variables in Ansible

You can use following methodes to set env variables directly inside hosts

  1. lineinfile

     tasks:
       - name: Set env variable
         lineinfile:
    

path: {{ user_bashrc_path }}/.bashrc

@jeevanshu
jeevanshu / wifi-driver.sh
Created April 23, 2019 20:03
This script is used to fix wifi drivers on hp pavilion laptops based on realtek adapters
#!/bin/sh
#Check if the git directory already present
if [ ! -d "$rtlwifi_new" ]; then
git clone https://github.com/lwfinger/rtlwifi_new.git
fi
cd rtlwifi_new/
git checkout rock.new_btcoex
make
sudo make install
sudo modprobe -rv rtl8723be