Skip to content

Instantly share code, notes, and snippets.

@balajeerc
balajeerc / mouse_free_howto.md
Last active March 7, 2024 11:05
Enabling Mousekeys on Linux: To Move Mouse with Numpad

Linux Mouse and Keyboard Tweaks

Enabling Mousekeys on Linux: To Move Mouse with Numpad

Why

You have a nice keyboard. And using the mouse hinders your workflow.

Installation

sudo aptitude install xkbset
@balajeerc
balajeerc / git_cheatsheet.md
Last active October 5, 2018 06:51
My Git Cheatsheet

My Git Cheatsheet

Show a diff of the last change made in a file in any commit

git log -p -n 1 <filename>

Show changes since last commit

@balajeerc
balajeerc / bash_snippets.md
Last active October 8, 2023 16:18
Bash Snippets

Bash Snippets

Checking the video driver in use

lspci -k | grep -EA3 'VGA|3D|Display'

Encrypting and Decrypting tars

@balajeerc
balajeerc / copy_yum_repo.js
Last active January 3, 2016 18:08
Nodejs script that copies files of a specified yum package along with those of its dependencies (queried recursively) into a folder
#!/bin/sh
':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@"
"use strict";
/*
* Copies over the files from an installed yum package into a specified folder
* along with the files of all its dependency packages
*
* Requirements: