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!
| @include handhelds { | |
| table.responsive { | |
| width: 100%; | |
| thead { | |
| display: none; | |
| } | |
| tr { | |
| display: block; | |
| } | |
| td, th { |
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!
| directives.directive('twitter', [ | |
| function() { | |
| return { | |
| link: function(scope, element, attr) { | |
| setTimeout(function() { | |
| twttr.widgets.createShareButton( | |
| attr.url, | |
| element[0], | |
| function(el) {}, { | |
| count: 'none', |
| /** | |
| * 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/ | |
| */ | |
Locate 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"
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=1DOCKER_CONFIG=<YOUR HOME DIRECTORY>\.dockerdocker ps to verify that docker is working now| 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, |
| /* ----------------------------------------- * | |
| 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) |