- Run the following command and copy the ID of your VM
VBoxManage list vms
=> "virtualMachine" {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
- Go to the Vagrant project configuration folder
VBoxManage list vms
=> "virtualMachine" {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
Sync a fork of a repository to keep it up-to-date with the upstream repository.
Inspired by the GitHub documentation
Fetch latest changes of the upstream repository.
git fetch upstream
Checkout the branch you want to sync the upstream into (Usually master
).
aws s3 cp s3://<bucket>/<path>/ . --recursive --profile <profile> |
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/orgs/<organization>/teams | jq '[.[] | {name: .name, id: .id}]' |
require 'aws-sdk-opsworks' | |
client = Aws::OpsWorks::Client.new(region: 'us-east-1') | |
stacks = client.describe_stacks.stacks | |
stacks.each do |stack| | |
custom_json = JSON.parse(stack.custom_json) | |
next unless custom_json['nodejs'] | |
puts <<-END_OF_STRING |
require 'aws-sdk-opsworks' | |
client = Aws::OpsWorks::Client.new(region: 'us-east-1') | |
stacks = client.describe_stacks.stacks | |
layers = stacks.map { |stack| client.describe_layers(stack_id: stack.stack_id).layers }.compact | |
rails_app_layers = layers.detect { |layer| layer.shortname == 'rails-app' } | |
rails_app_layers.each do |layer| | |
stack = stacks.detect { |stack| stack.stack_id == layer.stack_id } |
require 'octokit' | |
LABELS = [{ name: 'almost ready to merge', color: 'bfe5bf' }, | |
{ name: 'dependency missing', color: 'fbca04' }, | |
{ name: 'do not merge', color: 'e11d21' }, | |
{ name: 'ready to merge', color: '0e8a16' }, | |
{ name: 'refactoring expected', color: 'fbca04' }, | |
{ name: 'work in progress', color: 'fbca04' }] | |
repository = ARGV[0] |
require 'json' | |
require 'octokit' | |
require 'restclient' | |
ORGANIZATION = 'lessonnine'.freeze | |
ACCEPT_HEADER = 'application/vnd.github.luke-cage-preview+json'.freeze | |
Octokit.auto_paginate = true | |
client = Octokit::Client.new(access_token: ENV['GITHUB_ACCESS_TOKEN']) |
When running vagrant up
you might encounter the following error:
==> default: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":
exports:39: path contains non-directory or non-existent components: <any local path>
exports:39: no usable directories in export entry
# SSH key on OS X | |
ssh-add -K |