Skip to content

Instantly share code, notes, and snippets.

View baijum's full-sized avatar
🏠
Working from home

Baiju Muthukadan baijum

🏠
Working from home
  • Red Hat
  • India
View GitHub Profile
@baijum
baijum / gpg-import-and-export-instructions.md
Created May 11, 2019 14:00 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@baijum
baijum / os3guest1.sh
Created April 4, 2019 14:27
Setting up OpenShift 3 on DigitalOcean using Minishift
mkdir -p $HOME/go/bin
mkdir -p $HOME/go/src/github.com/redhat-developer
mkdir -p $HOME/go/src/github.com/operator-framework
cat <<EOF>> $HOME/.bashrc
export PATH=\$HOME/go/bin:\$PATH
EOF
export PATH=$HOME/go/bin:$PATH
@baijum
baijum / os4guest1.sh
Last active January 16, 2020 06:29
Setting up OpenShift 4 on DigitalOcean using libvirt
mkdir -p $HOME/go/bin $HOME/go/src/github.com/openshift
cat <<EOF>> $HOME/.bashrc
export PATH=\$HOME/go/bin:\$PATH
EOF
export PATH=$HOME/go/bin:$PATH
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
@baijum
baijum / os4app.adoc
Last active March 30, 2019 12:54
OpenShift 4 Application Development

Introduction to OpenShift 4 Application Development

Getting Started

This documentation is for developers who create and maintain applications on OpenShift 4. It covers the daily interaction as well as other routine tasks that you perform as a developer. This documentation doesn’t cover the adimistrator tasks.

@baijum
baijum / BulletJournal.md
Created December 22, 2018 15:30 — forked from tmikeschu/BulletJournal.md
A brief intro to the bullet journal technique

The Way of the Bullet Journal

This technique is a tool. While I can't say the bullet journal is the best for everyone, I can say that learning to export data from your brain to other systems is essential for being a creative and productive human being. If you walk away from this unenthused by the bullet journal approach, I encourage you to still take seriously the habits it helps promote.

You are a student. You have code to write. Jobs to find. Bills to pay. Life to figure out. Friends and family to love and occasionally say hello to.

All this is to say: you have too much to do for your brain to handle all by itself.

There are many productivity tools that help alleviate overload of the brain. I do not promise this technique will save you, or even remotely help you, but I do promise to provide you with the information you need to get started and decide if it's right for you.

@baijum
baijum / .vimrc
Created December 21, 2018 05:41
Vim Configuration
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'morhetz/gruvbox'
Plug 'cespare/vim-toml'
Plug 'Shougo/neosnippet'
Plug 'Shougo/neosnippet-snippets'
Plug 'fatih/vim-go', { 'for': 'go' }
Plug 'majutsushi/tagbar'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
package main
import (
"fmt"
)
@baijum
baijum / bujo.md
Last active June 30, 2023 05:36
My Bullet Journal

My Bullet Journal

Recently I started using the bullet journal system. One of the difficulty, when I started, was to find a good notebook for writing. I live in India, and so I hope these notes will be helpful for Indians who want to use the bullet journal system. These are the notebooks and pens that I like to use:

I also use pencil & ruler sometimes to draw tables. If you find any great notebook suitable for bullet journal in India, please comment below.

@baijum
baijum / book.tex
Created November 23, 2018 11:57 — forked from Harry-Chen/book.tex
XeLaTeX template for short novel (as book)
\documentclass[zihao=-4,oneside,UTF8]{ctexbook}
\usepackage{titlesec,fancyhdr,xltxtra,hyperxmp}
\usepackage[xetex,a4paper,centering,scale=0.8]{geometry}
\input{config.tex}
\xeCJKsetup{CheckSingle}
\pagestyle{fancy}
\setmainfont{\bookmainfont}