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
| Finishing the iRODS setup | |
| ------------------------------------------------------------------------ | |
| Thu Dec 15 18:25:55 2011 | |
| Script: | |
| Script: ./scripts/perl/finishSetup.pl | |
| CWD: /home/samuel/opt/irods | |
| Perl: | |
| Perl path: /usr/bin/perl |
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
| #!/bin/bash | |
| for f in `find /usr/lib64/*globus* -type l|sed -r 's|.*\/||g'`; | |
| do | |
| ln -s $f `echo $f|sed -r 's/\.[0-9]$//g'`; | |
| done |
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
| from optparse import OptionParser | |
| # \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | |
| # Parse command line options | |
| # \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | |
| parser = OptionParser() | |
| parser.add_option("-a", "--theaflag", dest="theaflag", type="string", | |
| help="Helpstring, with THEAFLAG", metavar="THEAFLAG") | |
| parser.add_option("-b", "--theaflag", dest="thebflag", |
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/python | |
| def main(): | |
| pass | |
| if __name__ == "__main__": | |
| main() |
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
| from fabric.api import * | |
| from fabric.contrib.files import * | |
| from fabric.contrib.console import * | |
| from os import path | |
| import re | |
| def do_stuff(): | |
| # Do stuff ... | |
| pass |
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
| set nocompatible | |
| syntax on | |
| set showmatch | |
| set ignorecase | |
| set showmode | |
| set ts=4 | |
| set sw=4 | |
| set autoindent | |
| set smartindent | |
| set number |
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
| my_arr = ["ugh", "cough", "humm"] | |
| for key, value in enumerate(my_arr): | |
| print "%s : %s" % (key, value) |
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
| from subprocess import * | |
| output = check_output(["ls", "-l"]) | |
| print(output) |
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
| mylist = ["Hej", "jag", "heter", "Samuel"] | |
| m = [p for p in mylist if p.islower()] |
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
| set nocompatible | |
| syntax on | |
| set showmatch | |
| set ignorecase | |
| set showmode | |
| set ts=4 | |
| set sw=4 | |
| set autoindent | |
| set smartindent | |
| set number |