This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
@show = qw/ Siloxane SiO4 Si3O SiO3 SiO2 SiO1 NBO FreeOH H2O H3O SiOH SiOH2 Si2OH/; | |
printf("\n%-8.8s ", "ird"); | |
foreach $specie ( @show ) | |
{ | |
printf("%8.8s ", $specie); | |
} | |
print "\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import fileinput | |
import re | |
show = [ "Siloxane", "SiO4", "Si3O", "SiO3", \ | |
"SiO2", "SiO1", "NBO", "FreeOH", \ | |
"H2O", "H3O", "SiOH", "SiOH2", "Si2OH" ] | |
def printargs( counts, isave ): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use utf8; | |
use strict; | |
use warnings; | |
my @show = qw/Siloxane SiO4 Si3O SiO3 SiO2 SiO1 NBO FreeOH H2O H3O SiOH SiOH2 Si2OH/; | |
my %type; | |
@type{@show} = (0) x @show; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import re | |
import sys | |
SHOW = """ | |
Siloxane SiO4 Si3O SiO3 | |
SiO2 SiO1 NBO FreeOH | |
H2O H3O SiOH SiOH2 Si2OH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <time.h> | |
#include <omp.h> | |
int main ( void ) { | |
int i, j; | |
int me, n; | |
#pragma omp parallel private(i,j,me,n) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Built user paths in two parts | |
# Most important paths get prefixed in order of (least important) -> (most) | |
for dir in ~/bin | |
do | |
check=`expr "$PATH" : ".*:${dir}:.*" + \ | |
"$PATH" : "${dir}:.*" + \ | |
"$PATH" : ".*${dir}$"` | |
if [ $check = 0 ] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### bashrc/bash_profile for SunOS 5.10 | |
# Solaris 10 lacks support for xterm-color (although it is provided in OpenCSW) | |
if [ "$TERM" == "xterm-color" ]; then | |
export TERM=xterm | |
fi | |
alias ssh='ssh -X' | |
alias ls='ls -p' | |
alias md5='digest -a md5 -v' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# | |
# Run the IOR benchmark with the POSIX I/O API and one file per task | |
# | |
################################################################################ | |
IOR START | |
### You MUST change the following parameters (see README.APEX) | |
numTasks=32 # number of MPI processes to use. You may choose to use one or more MPI processes per node. | |
segmentCount=81920 # must be > fileSize / ( blockSize * numTasks ) where fileSize must be greater than 1.5 times the aggregate DRAM available for use by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
b.ts, | |
b.ost_name, | |
b.bytes_written - a.bytes_written, | |
b.bytes_read - a.bytes_read | |
FROM | |
( | |
SELECT | |
OST_DATA.TS_ID AS tsid, | |
TIMESTAMP_INFO.`TIMESTAMP` AS ts, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _XOPEN_SOURCE 600 | |
#include <unistd.h> | |
#include <fcntl.h> | |
int main(int argc, char *argv[]) { | |
int fd; | |
fd = open(argv[1], O_RDONLY); | |
fdatasync(fd); | |
posix_fadvise(fd, 0,0,POSIX_FADV_DONTNEED); | |
close(fd); | |
return 0; |
OlderNewer