Skip to content

Instantly share code, notes, and snippets.

View raghavsethi's full-sized avatar

Raghav Sethi raghavsethi

View GitHub Profile
Write a function that identifies sets of files with identical contents.
find_dupes(root_path) → sets/lists of file paths that have identical contents
find_dupes(“/home/whatever”) → [
[".bashrc", "Backups/2017_bashrc"],
["Photos/Vacation/DSC1234.JPG", "profile.jpeg", ".trash/lej2dp28/87msnlgyr"],
]
Context:
@raghavsethi
raghavsethi / Fixup.diff
Created September 14, 2017 18:59
Documentation fixups
diff --git a/presto-docs/src/main/sphinx/sql/deallocate-prepare.rst b/presto-docs/src/main/sphinx/sql/deallocate-prepare.rst
index eab8f305ab..806d345cbb 100644
--- a/presto-docs/src/main/sphinx/sql/deallocate-prepare.rst
+++ b/presto-docs/src/main/sphinx/sql/deallocate-prepare.rst
@@ -13,14 +13,12 @@ Description
-----------
Removes a statement with the name ``statement_name`` from the list of prepared
-statements for a session.
+statements in a session.
### Keybase proof
I hereby claim:
* I am raghavsethi on github.
* I am raghavsethi (https://keybase.io/raghavsethi) on keybase.
* I have a public key whose fingerprint is C5E1 F030 A3B6 D768 766D 31A9 F786 183A 6C49 8EAD
To claim this, I am signing this object:
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'