Skip to content

Instantly share code, notes, and snippets.

@karanssh
karanssh / append_makefile.sh
Created September 6, 2021 14:43
Append some command to end of multiple Makefiles
#!/bin/bash
for file in $(find . -maxdepth 2 -name "Makefile" ); do
echo Processing $file
echo >> $file
echo "lint-check:
# no lint tests yet" >> $file
done
@karanssh
karanssh / Add_Open_command_window_here_as_administrator.reg
Created October 5, 2020 10:54
Add "open command window here as administrator" to Windows explorer context menu (reg file)
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: August 10th 2016
; Tutorial: http://www.tenforums.com/tutorials/59686-open-command-window-here-administrator-add-windows-10-a.html
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHereAsAdmin]
@="Open command window here as administrator"
@karanssh
karanssh / Add_Open_command_window_here.reg
Created October 5, 2020 10:53
Add "open command window here" to Windows explorer context menu (reg file)
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: December 10th 2016
; Tutorial: https://www.tenforums.com/tutorials/72024-open-command-window-here-add-windows-10-a.html
[HKEY_CLASSES_ROOT\Directory\shell\cmd2]
@="@shell32.dll,-8506"
"Extended"=-
@karanssh
karanssh / gist:bf1c8560a345d48facd3a5fd65dea1da
Created September 18, 2020 08:56
Guide to getting a cowsay + fortune on every SSH login
# Guide to getting a cowsay + fortune on every SSH login
## Prerequisites
1. Install cowsay
2. Install fortune
## bashrc modifications
```shell