Get boot2docker working with nfs instead of vboxsf.
Tested on:
- Boot2Docker-cli version: v1.6.0
Git commit: 9894ae9
- Boot2Docker-cli version: v1.6.2
Git commit: cb2c3bc
| """ | |
| Mostly the Google quickstart.py code with the "freebusy" service running. | |
| Also shows how to make datetimes using pytz. | |
| Follow these instructions to get access credentials: | |
| https://developers.google.com/google-apps/calendar/quickstart/python | |
| """ |
| #!/bin/bash | |
| # Summary: | |
| # Bash script repoints all inbound access for a given AWS EC2 security group | |
| # to your current IP addr(v4) as provided by ifconfig.me/ip | |
| # To use this script: | |
| # Pass the name of a security group as a command line argument | |
| # e.g. $ aws_repoint_to_my_ip.sh SECURITYGROUPNAME |
| #!/bin/bash | |
| # | |
| # This script will mount /Users in the boot2docker VM using NFS (instead of the | |
| # default vboxsf). It's probably not a good idea to run it while there are | |
| # Docker containers running in boot2docker. | |
| # | |
| # Usage: sudo ./boot2docker-use-nfs.sh | |
| # |
Get boot2docker working with nfs instead of vboxsf.
Tested on:
- Boot2Docker-cli version: v1.6.0
Git commit: 9894ae9
- Boot2Docker-cli version: v1.6.2
Git commit: cb2c3bc
| object Nullable { | |
| sealed trait NullableTag | |
| type Nullable[A] = A with NullableTag | |
| def nullAs[B]: Nullable[B] = | |
| null.asInstanceOf[Nullable[B]] | |
| implicit class ToNullable[A](val a: A) extends AnyVal { | |
| def `?`: Nullable[A] = a.asInstanceOf[Nullable[A]] | |
| } |
#Mac OS X
| #!/bin/bash | |
| # Summary: | |
| # Bash script repoints all inbound access for a given AWS EC2 security group | |
| # to your current IP addr(v4) as provided by ifconfig.me/ip | |
| # To use this script: | |
| # Pass the name of a security group as a command line argument | |
| # e.g. $ aws_repoint_to_my_ip.sh SECURITYGROUPNAME |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:math="http://exslt.org/math" | |
| extension-element-prefixes="math"> | |
| <xsl:template name="makeHash"> | |
| <xsl:param name="length">8</xsl:param> | |
| <xsl:param name="count" select="$length"/> | |
| <xsl:param name="hash"/> | |
| <xsl:variable name="possibleFirst">xABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</xsl:variable> |
| """ | |
| traits_ndarray | |
| -------------- | |
| I was taking the IPython.utils.traitlets for a spin; | |
| the only really useful thing missing was an NDArray | |
| which validates on certain shape and type constraints | |
| and notifies for interesting kinds of inequalities | |
| id(x)==id(y), (x==y).all(), allclose(x, y). |