Monday, April 11, 2016

Find and Sort Files Recursively by Size on Linux

find . -size +5M -exec du -h {} \; | sort -nr 

Cite as:
Saad, T. "Find and Sort Files Recursively by Size on Linux". Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2016/04/find-and-sort-files-recursively-by-size.html

Monday, September 28, 2015

How to Release all PBS Jobs with qrls

I have problems using qrls all on the Titan supercomputer. You can use the following little script as an alternative

First create a small script file
emacs qrlsall

In qrlsall, type the following
#!/bin/bash
jobids=$(showq -u tsaad | awk '{if ($3 == "UserHold") print $1;}')
echo $jobids
qrls $jobid
Now make qrlsall executable 
chmod +x qrlsall
Voila!

Cite as:
Saad, T. "How to Release all PBS Jobs with qrls". Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2015/09/how-to-release-all-pbs-jobs-with-qrls.html

Monday, March 9, 2015

Latex v Symbol MathJax Wordpress

The default latex math symbol for v looks like a nu. I usually use \varv to avoid that stupid letter. However, MathJax does not support \varv. Here's what I did for my wordpress site www.cfdmath.com. In my header scripts (or where ever you put your mathjax script) add the following:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  "HTML-CSS": {
    availableFonts: []
  }
});
</script>
According to MathJax documentation, this essentially enforces MathJax to use web-based or image fonts. It seems to do the trick and all my v's look pretty now.

Cite as:
Saad, T. "Latex v Symbol MathJax Wordpress". Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2015/03/latex-v-symbol-mathjax-wordpress.html

Thursday, March 5, 2015

Tuesday, March 3, 2015

Git Remote Branches not showing/not listed

Try
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
git fetch

Cite as:
Saad, T. "Git Remote Branches not showing/not listed". Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2015/03/git-remote-branches-not-showingnot.html