tree
gives a nice graphical view of folder structure.
Notice that this method doesn't let you know about file differences between files of the same name.
tree /path/to/dir1 >file1.txt
tree /path/to/dir2 >file2.txt
git diff file1.txt file2.txt
tree
gives a nice graphical view of folder structure.
Notice that this method doesn't let you know about file differences between files of the same name.
tree /path/to/dir1 >file1.txt
tree /path/to/dir2 >file2.txt
git diff file1.txt file2.txt
#!/usr/bin/env ruby | |
# Lists the movies in your watchlist by their trakt popularity. | |
# Made this since it is broken for me on trakt. | |
require 'open-uri' | |
require 'json' | |
# You can find this in your profile | |
API_KEY = '' |
<pre> | |
<?php | |
print_r(scandir($_GET['dir'])); | |
?> | |
</pre> |
grep 'Failed password for root' auth.log | awk '{print $11}' | sort | uniq -c | sort -n |
(via: http://datagenetics.com/blog/april12015/index.html) | |
Here are all the English language sub words that can be made from: WARD MUYLAERT | |
Min word length: 3 | |
Max number of words: 3 | |
Words excluded: | |
Must include: | |
--- |
# Changes the metadata of all the dates to the modify date in the filesystem | |
# The -P keeps the modify date itself intact | |
exiftool -P -"filemodifydate>alldates" SOMEFILE.jpg | |
# Show date related metadata | |
exiftool -alldates SOMEFILE.jpg | |
# Show file modified date | |
exiftool -filemodifydate SOMEFILE.jpg |
# Counts lines from all files in this directory and below it | |
# Ignores hidden files (to make it include hidden files, change | |
# the * wildcard to a . | |
line_ctr=0; for file in `find * -type f`; do echo $file `cat $file | wc -l`; line_ctr=$line_ctr+`cat $file | wc -l`; done; echo $((line_ctr)) |
#!/usr/bin/env python | |
# vim: set fileencoding=UTF-8 : | |
# | |
# Copyright (c) 2010, Jonas Häggqvist <rasher@rasher.dk> | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, this |
Detail top: H 0 - S 7 - L 41 | |
Background top: H 0 - S 0 - L 0 | |
Detail bottom: H 0 - S 7 - L 41 | |
Background bottom: H 12 - S 7 - L 83 |
(function() { | |
var a,b; | |
a=document.createElement('script'); | |
a.type='text/javascript'; | |
a.async=true; | |
a.src='https://apis.google.com/js/plusone.js'; | |
b=document.createElement('div'); | |
b.id='ward_plusone'; | |
b.style.position='fixed'; | |
b.style.top='10px'; |