Skip to content

Instantly share code, notes, and snippets.

@karawitan
karawitan / git-rm-from-history.sh
Created January 23, 2020 21:43 — forked from k1000/git-rm-from-history.sh
permanently delete files/folders from your git repository
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0
@karawitan
karawitan / cleanup_test.sh
Created January 8, 2020 13:04 — forked from satyaog/cleanup_test.sh
git-annex_test_hardlinks
#!/bin/bash
datalad remove *
cd .annex-cache/
git-annex uninit
cd ..
rm -rf .annex-cache/
@karawitan
karawitan / tmux-cheatsheet.markdown
Created January 2, 2019 20:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@karawitan
karawitan / _wget.md
Created April 4, 2018 15:30 — forked from Paxa/_wget.md
Cross-compiling wget for blackberry 10 (QNX)

How to compile wget for blackberry 10

Prepare

  1. Download from here http://ftp.gnu.org/gnu/wget/
  2. Extract sources archive, (using extract for example)
  3. Or run tar xf wget-1.15.tar.xz
  4. Copy file bb10_compile from this gist to source folder

Compile