This file contains 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 .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import | |
from .common import INSTALLED_APPS, MIDDLEWARE_CLASSES | |
FEATURES['ENABLE_SYSADMIN_DASHBOARD'] = True | |
FEATURES['INDIVIDUAL_DUE_DATES'] = True | |
def tuple_without(source_tuple, exclusion_list): | |
"""Return new tuple excluding any entries in the exclusion list. Needed because tuples | |
are immutable. Order preserved.""" | |
return tuple([i for i in source_tuple if i not in exclusion_list]) |
This file contains 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/sh | |
#BSUB -J ipengine[1-4] | |
eid=$(($LSB_JOBINDEX - 1)) | |
ipengine --logfile=ipengine${eid}.log |
This file contains 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
/* | |
Example CUDA code for Problem Set 0, CS 264, Harvard, Fall 2009. | |
Takes an input string and mangles it using the current date and | |
time on the CPU and on the GPU. Demonstrates device initialization | |
and error checking with libcutil, host<=>device memory transfers, | |
and CUDA kernel invocation. | |
To compile: |
This file contains 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
It comes up as only supporting 88 colors as rxvt-unicode's terminfo database entry has it at 88 colors. If you work on external machines a lot via ssh then what you are already doing is about the best way. If you work primarily on one or a few machines then a custom/local .terminfo database can be simpler. | |
$ infocmp -L rxvt-unicode > rxvt-unicode.terminfo | |
$ [editor] rxvt-unicode.terminfo | |
Find max_colors and max_pairs and change them from... | |
max_colors#88, max_pairs#256, | |
to... | |
max_colors#256, max_pairs#32767, | |
Those are the values from xterm-256color. Those fields should be near |
This file contains 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
# This is an example config that assumes sshfs.py is either in | |
# $HOME/.starcluster/plugins or lives somewhere in your $PYTHONPATH | |
[vol myvol] | |
volume_id = vol-99999 | |
mount_path = /results | |
[plugin sshfs] | |
setup_class = sshfs.SSHFSPlugin | |
local_mount_path = ~/ec2-results |
This file contains 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: http://tentacles.posterous.com/43038706 | |
# Take a bunch of XML files on the command line and merge them into | |
# one big XML document. | |
# | |
# The root element will come from the first document; the root elements of | |
# subsequent documents will be lost, as will anything outside the root | |
# (comments and whatnot). | |
import sys | |
import libxml2 |
This file contains 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
Host ec2* | |
IdentityFile /path/to/your/ssh/key |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
import os | |
from starcluster import clustersetup | |
from starcluster.logger import log | |
BOTO_CFG_TEMPLATE = """\ | |
[Credentials] | |
aws_access_key_id = %(aws_access_key_id)s | |
aws_secret_access_key = %(aws_secret_access_key)s |
This file contains 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
# This is an example config that assumes scenv.py is either in | |
# $HOME/.starcluster/plugins or lives somewhere in your $PYTHONPATH | |
[plugin env] | |
setup_class = scenv.EnvPlugin | |
# add as many key=value pairs as you like separated by ',' | |
env_vars_list = 'PYTHONPATH=/path/to/python/mods, MYENV=some_value' | |
[cluster default] | |
... |
OlderNewer