Skip to content

Instantly share code, notes, and snippets.

@augmt
augmt / init_fcc
Last active April 15, 2017 19:31
initialize freecodecamp on a fresh chroot
#!/usr/bin/env bash
echo -e '\nInstalling git ...\n'
# install apt-add-repository
sudo apt-get install -y software-properties-common
# get the most current stable version of git
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
@augmt
augmt / bootstrap.min.css
Last active December 4, 2016 22:00
custom bootstrap.css build for http://codepen.io/augmt/pen/WoOJXZ
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=ecd68f45156d64d85ba9772e613ad5ea)
* Config saved to config.json and https://gist.github.com/ecd68f45156d64d85ba9772e613ad5ea
*//*!
@augmt
augmt / .block
Last active December 31, 2016 05:34 — forked from mbostock/.block
Resizable Force Layout (D3 v4)
license: gpl-3.0
@augmt
augmt / .block
Last active February 11, 2019 13:58 — forked from mbostock/.block
Bounded Force Layout (D3 v4)
license: gpl-3.0
@augmt
augmt / organizing-photos-with-duplicate-and-similarity-checking.md
Last active September 3, 2024 15:50
Detecting similar and identical images using perseptual hashes

Detecting similar and identical images using perseptual hashes

Couple of my hobbies are travelling and photography. I love to take pictures and experiment with photography. Usually after my trips, I just copy the photos to either my iPad or couple of my external hard disks. After 10 years, I have over 200K photos distributed across several disks and machines. I had to find a way to organize these photos and create a workflow for future maintenance. In this post I want to address one of the issues I had to solve: ** finding duplicate images **.

First, I needed to find out what exactly is a duplicate image. Analysing my photos, I found couple of interesting things:

  1. Identical images: There were multiple copies of the same photo in different directories with different names.
  2. Similar images: I usually bracket (exposure compensate or flash compensate) important pictures. So I have photos that visually appear to be the same, but may be a little darker/lighter based on e
@augmt
augmt / programming-languages-cs-majors-should-know.md
Last active February 17, 2018 15:58
What every computer science major should know

Programming languages

Programming languages rise and fall with the solar cycle.

A programmer's career should not.

While it is important to teach languages relevant to employers, it is equally important that students learn how to teach themselves new languages.

The best way to learn how to learn progamming languages is to learn multiple programming languages and programming paradigms.