Skip to content

Instantly share code, notes, and snippets.

View ankur-gupta's full-sized avatar

Ankur Gupta ankur-gupta

View GitHub Profile
@ankur-gupta
ankur-gupta / run-boot-repair.sh
Created November 12, 2017 02:49
Run boot repair from a Ubuntu Live USB session
#!/bin/sh
# From https://help.ubuntu.com/community/Boot-Repair
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.