detex -l *.tex > thesis.txt
dos2unix alternative on your Mac
http://schmeits.wordpress.com/2010/08/26/dos2unix-alternative-those-darn-m-characters/
cat foo | col -b > foo2
Icon Archive icns
Cocoa Xcode
8 commands to check cpu information on Linux
Linux Find Large Files
http://www.cyberciti.biz/faq/find-large-files-linux/
find {/path/to/directory/} -type f -size +{size-in-kb}k -exec ls -lh {} ; | awk ‘{ print $9 “: ” $5 }’
How to Crop Pages in a PDF Document
Sort Launchpad Applications by Name
https://discussions.apple.com/thread/3196957?tstart=0
rm ~/Library/Application Support/Dock/*.db ; killall Dock
OpenACC Kernels and Parallel Constructs
“Show desktop” keyboard shortcut in Mac OS X
command + f3
fn + f11
Vi and Vim Macro Tutorial: How To Record and Play
10 tips for Stickies
accessing protected members of superclass in C++ with templates
This can be amended by pulling the names into the current scope using using
:
template<typename T> struct Subclass : public Superclass<T> {
using Superclass<T>::b;
using Superclass<T>::g;
void f() {
g();
b =3;
}
};
Or by qualifying the name via the this
pointer access:
template<typename T> struct Subclass : public Superclass<T> {
void f() {
this->g();
this->b = 3;
}
};
Or, as you’ve already noticed, by qualifying the full name.
Facebook Open Graph not clearing cache
http://stackoverflow.com/questions/5776567/facebook-open-graph-not-clearing-cache
- Go to http://developers.facebook.com/tools/debug
- Enter the URL following by
fbrefresh=CAN_BE_ANYTHING
Examples:
http://www.example.com?fbrefresh=CAN_BE_ANYTHING
http://www.example.com?postid=1234&fbrefresh=CAN_BE_ANYTHING
- OR visit:
http://developers.facebook.com/tools/debug/og/object?q=http://www.example.com/?p=3568&fbrefresh=89127348912
Nvidia Tesla
Inside NVIDIA’s Unified Memory
Split and merge large files
split -b 10k vecadd va.
cat va.* > vecadd
rm all files except
find -not -name build.sh -delete
How to change default /tmp to /home/user/tmp
echo $TMPDIR