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
| #!/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). |
The Google Drive API supports these MIME types, but if you try to filter using them, you may find you're not getting the document types back that you expect. Especially when using setMimeTypes() with Google's JavaScript Picker.
Here are the poorly documented or completely undocumented MIME types I discovered:
If you want application/vnd.google-apps.document, also use application/vnd.google-apps.kix. Source.
If you want application/vnd.google-apps.spreadsheet, also use application/vnd.google-apps.ritz. Via a private email from a Google employee.
If you want application/vnd.google-apps.presentation, also use application/vnd.google-apps.punch. Source.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.