We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
/** | |
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units | |
* | |
* To overcome this, create media queries that target the width, height, and orientation of iOS devices. | |
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing | |
* the height of element `.foo` —which is a full width and height cover image. | |
* | |
* iOS Resolution Quick Reference: http://www.iosres.com/ | |
*/ | |
/* ----------------------------------------- * | |
Lazy List Implementation | |
* ----------------------------------------- */ | |
// Haskell-like infinite List, implemented with es6 generators | |
// Lazyness lets you do crazy stuff like | |
List.range(0, Infinity) | |
.drop(1000) | |
.map(n => -n) |
import express from 'express'; | |
import { ApolloServer } from 'apollo-server-express'; | |
import { ApolloServerPlugin } from 'apollo-server-plugin-base'; | |
import * as Sentry from '@sentry/node'; | |
Sentry.init({ | |
environment: process.env.APP_ENV, | |
// see why we use APP_NAME here: https://github.com/getsentry/sentry-cli/issues/482 | |
release: `${process.env.APP_NAME}-${process.env.APP_REVISION}` || '0.0.1', | |
dsn: process.env.SENTRY_DSN, |
directives.directive('twitter', [ | |
function() { | |
return { | |
link: function(scope, element, attr) { | |
setTimeout(function() { | |
twttr.widgets.createShareButton( | |
attr.url, | |
element[0], | |
function(el) {}, { | |
count: 'none', |
The following is what I need to do to get Docker working on Windows after a fresh installation of Docker Toolbox (version 1.9.0, latest as the time of writting).
2375
and 2376
to the VM)*.pem
files from ~\.docker\machine\certs\
to ~\.docker\
config.json
from ~\.docker\machine\machines\default\
to ~\.docker\
(Btw, the name of the VM default
is hardcoded in the script, and config.josn
doesn't seem to be read by Docker, see docker/compose#1590 )DOCKER_TLS_VERIFY=1
DOCKER_CONFIG=<YOUR HOME DIRECTORY>\.docker
docker ps
to verify that docker is working nowLocate and open file:
<Docker Toolbox Installation Direcotry>\start.sh
Add in the following lines after $DOCKER_MACHINE create -d virtualbox --virtualbox-memory 2048 --virtualbox-disk-size 204800 $VM
"${VBOXMANAGE}" modifyvm default --vram 16
"${VBOXMANAGE}" modifyvm default --natpf1 "http,tcp,127.0.0.1,2375,,2375"
@include handhelds { | |
table.responsive { | |
width: 100%; | |
thead { | |
display: none; | |
} | |
tr { | |
display: block; | |
} | |
td, th { |