Skip to content

Instantly share code, notes, and snippets.

-#! /bin/sh
### Copyright (C) 2017 Peter Maucher
### This script is very trivial, therefore licensed under the WTFPL:
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2004 Sam Hocevar
# 14 rue de Plaisance, 75014 Paris, France
# Everyone is permitted to copy and distribute verbatim or modified
@nanooq
nanooq / find_duplicate_files.sh
Created August 22, 2017 17:36
Remove duplicate files from the second parameter directory path, i.e. keeping file instances that found below the first path parameter (even if it is subdirectory in second path paramater)
USAGE() {
echo "Synopsis: Remove files existing in both directories from
dupDir."
echo "$cmdname <mainDir> <dupDir>"
}
cmdname=${0}
if [ "$1" == "-h" ]; then
USAGE
exit 1
### Keybase proof
I hereby claim:
* I am nanooq on github.
* I am nanooq (https://keybase.io/nanooq) on keybase.
* I have a public key whose fingerprint is D181 EE66 5DBC 1989 150C FC6A B65F A36F 6DC8 175B
To claim this, I am signing this object:
@nanooq
nanooq / Podcasts
Created September 29, 2015 14:08 — forked from brodo/Podcasts
Name // Kommentar
Programming
===========
The Haskell Cast // Hart, aber nicht so hart
ThoughtWorks // Noch nicht viel davon gehört
Herding Code // Allemein, einfach
DevOps Cafe Podvast // DER Podcast zu DevOp
Q.E.D. Code // Mathe + Programmierung, gut verständlich

Keybase proof

I hereby claim:

  • I am nanooq on github.
  • I am nanooq (https://keybase.io/nanooq) on keybase.
  • I have a public key whose fingerprint is F244 F3DB 6F05 3B25 D23A 1339 3105 6F51 9B43 2C6F

To claim this, I am signing this object:

@nanooq
nanooq / lock.sh
Last active August 29, 2015 14:15
#!/bin/bash
# lock.sh - locks your screen using a pixelated screenshot made with
# scrot (uses imlib2).
# Will not show anything when you type in your password.
### Dependency / Conflicts checks, mark error(s):
e=0