Skip to content

Instantly share code, notes, and snippets.

View shubhank-saxena's full-sized avatar
🎯
Focusing

Shubhank Saxena shubhank-saxena

🎯
Focusing
View GitHub Profile
@shubhank-saxena
shubhank-saxena / .zsrhc
Created February 4, 2021 20:06
This is my .zshtrc configuration!
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/shubhank/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@shubhank-saxena
shubhank-saxena / error_append
Last active November 4, 2020 19:05
This extracts all the error from output of checkpatch.pl
#!/bin/bash
git log v5.7..v5.8 --format=format:"%H" --no-merges &> ./hashes.txt
input="./hashes.txt"
while IFS= read -r line
do
err=$(./scripts/checkpatch.pl --git "$line" --mailback --terse --show-types)
type=$(echo $err| cut -d':' -f 3,4)
echo "$type" >> errors.txt
@shubhank-saxena
shubhank-saxena / docker-help.md
Created August 15, 2018 17:27 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info