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.
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| SUITE_NAME=default | |
| # create a bats subdirectory under your desired suite | |
| mkdir -p test/integration/$SUITE_NAME/bats | |
| # create an initial "canary" bats test file | |
| # more examples at: | |
| # * https://github.com/fnichol/chef-rvm/tree/master/test/integration/rubies/bats | |
| # * https://github.com/fnichol/chef-ruby_build/tree/master/test/integration/alltherubies/bats | |
| # * https://github.com/sstephenson/bats |
| --- | |
| platforms: | |
| - name: vagrant-ubuntu-12.04 | |
| driver_config: | |
| box: opscode-ubuntu-12.04 | |
| box_url: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box | |
| require_chef_omnibus: true | |
| customize: | |
| memory: 1024 | |
| network: |
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.
| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
| #!/bin/bash | |
| MAC="$(curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/)" | |
| VPCCIDR="$(curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/"$MAC"/vpc-ipv4-cidr-block)" | |
| VPCNET="${VPCCIDR%%/*}" | |
| VPCBASE="$(echo "$VPCNET" | cut -d"." -f1-3)" | |
| VPCDNS="$VPCBASE"'.2' | |
| echo "$VPCDNS" |
| { | |
| "AWS Database Migration Service": { | |
| StringPrefix: "dms", | |
| Actions: ["AddTagsToResource", "CreateEndpoint", "CreateReplicationInstance", "CreateReplicationSubnetGroup", "CreateReplicationTask", "DeleteEndpoint", "DeleteReplicationInstance", "DeleteReplicationSubnetGroup", "DeleteReplicationTask", "DescribeAccountAttributes", "DescribeConnections", "DescribeEndpointTypes", "DescribeEndpoints", "DescribeOrderableReplicationInstances", "DescribeRefreshSchemasStatus", "DescribeReplicationInstances", "DescribeReplicationSubnetGroups", "DescribeReplicationTasks", "DescribeSchemas", "DescribeTableStatistics", "ListTagsForResource", "ModifyEndpoint", "ModifyReplicationInstance", "ModifyReplicationSubnetGroup", "RefreshSchemas", "RemoveTagsFromResource", "StartReplicationTask", "StopReplicationTask", "TestConnection"], | |
| ARNFormat: "arn:aws:dms:<region>:<account>:<resource>", | |
| ARNRegex: "arn:aws:dms:.+", | |
| HasResource: !1 | |
| }, | |
| "Amazon Mobile Targeting": { | |
| StringPref |