All code is released "as is" with no guarantees on how it works, what it does, and how fast it will screw up your computer. All code written by me and posted on this site is released under the Creative Commons share alike license.
The most important thing to have is a template. It can remind you what the commenting is for a specific language, and saves time
Common Fortran 90 debugging tips
MPI Fortran 90 outer loop of three nested loops parallelized
MPI Fortran 90 first and second loops of three nested loops parallelized
MPI Fortran 90 three loops of four nested loops parallelized
Print 1 to 10 to screen single loop
processing
Finds a complete non-overlapping worm for a given matrix with arbitrary boundaries
Tip: run this overnight, so that you're not changing files while copying. Also, empty the trash.
beep: http://www.frank-buss.de/beep/index.html
./catter.sh && echo -e "\007" >/dev/tty10
How to time an executable from within a shell script:
echo ""
echo "start time is $(date)"
before="$(date +%s)"
starttime="$(date)"
./executable
after="$(date +%s)"
elapsed_seconds="$(expr $after - $before)"
echo Elapsed time in seconds: $elapsed_seconds
The following batch file copies an executable to a remote workstation (whose name
and logon credentials are in "nodes.txt") and starts the process remotely using psexec
A second batch file script copies the results back when the remote process is completed.
If you want to be polite to any users that may be on the remote machines, it would be nice
to be able to pause the execution while the node is in use. The following AutoIt script waits
for the screensaver to initiate the executable. If the executable can be paused (by changing
the status of an input file), then the AutoIt script pauses the executable when the screensaver
is interupted (by a node user).
To install Windows XP silently, use winnt.sif
Or use nLite.
Which implements a batch file in $OEM$/$$/System32/this_computer_was_installed_using.cmd
CLI backup with WinRAR, DixML
run remote spybot, ad-aware
Windows kiosk registry edits
Generate a list of IP addresses in a batch file
for /l %%i in (1,1,255) do echo 192.168.1.%%i >> IP_list.txt
Go to a webpage where a stored password is automatically entered (ebay, paypal, gmail, etc). When the ******** is displayed, enter the following javascript line in the address bar. A popup shows the formerly hidden password in plaintext in a pop-up box
javascript:for(var a=document.getElementsByTagName("input"),i=0;i<a.length;i++)if(a[i].type=="password"){alert(a[i].value);i=a.length;}void(0);
Caveat: if the program setup executable isn't in the same directory as the auto installer executable, some programs can handle relative paths and some can't.
Before writing your own script, make sure there aren't command line switches to install the program. "setup.exe /install /s" is always easier.
AutoIt change system properties
And finally, wouldn't it be nice to have a GUI popup that prompt the user to select which of these programs should be installed?
It doesn't work, but here's an outline