brew update
brew install pyenv
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
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
I was using Boot2Docker 1.2 (OSX) and wanted to use volume for MongoDB. First nothing was happening because 1.2 has no Guest Additions and volumes don't work. There is a workaround by making a boot2docker.iso from master which has Guest Additions.
But then Mongo didn't like putting data on VirtualBox's shared folders:
[initandlisten] WARNING: This file system is not supported. For further information see:
[initandlisten] http://dochub.mongodb.org/core/unsupported-filesystems
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
var WebpackDevMiddleware = require('webpack-dev-middleware'); | |
var WebpackHotMiddleware = require('webpack-hot-middleware'); | |
var historyApiFallback = require('connect-history-api-fallback'); | |
var express = require('express'); | |
var webpack = require('webpack'); | |
var config = require('./webpack.config.dev'); | |
var app = express(); | |
var compiler = webpack(config); |
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
# docker build -t wagtail . | |
# docker run -it -v $(pwd):/app -p 0.0.0.0:8080:8080 wagtail | |
FROM ubuntu:latest | |
RUN apt-get update -y | |
RUN apt-get install -y python python-pip python-dev libmysqlclient-dev | |
ADD https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-131.0.0-linux-x86.tar.gz /tmp/cloudsdk.tar.gz | |
RUN tar -zxvf /tmp/cloudsdk.tar.gz -C /tmp | |
RUN /tmp/google-cloud-sdk/install.sh |
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 | |
## | |
# Show the user what we're looking to remove from the network configs. | |
## | |
printf "\nWe've located the following entries matching the associated port argument. \n" | |
grep "add_nat_portfwd" /Library/Preferences/VMware\ Fusion/networking | grep $1 | |
grep $1 /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf | |
## |
OlderNewer