I hereby claim:
- I am gjohnson on github.
- I am gjj (https://keybase.io/gjj) on keybase.
- I have a public key whose fingerprint is 407C A136 5E34 F542 4EF5 2A92 89A7 7D5B 4490 D956
To claim this, I am signing this object:
const mongoose = require('mongoose'); | |
mongoose.connect('mongodb://admin:admin@mongodb:27017/').catch(err => { | |
console.error('Error connecting to MongoDB:', err); | |
}).then(() => { | |
console.log('Connected to MongoDB'); | |
}); |
import * as cdk from 'aws-cdk-lib'; | |
import * as glue from 'aws-cdk-lib/aws-glue'; | |
import * as iam from 'aws-cdk-lib/aws-iam'; | |
import * as s3 from 'aws-cdk-lib/aws-s3'; | |
import { Construct } from 'constructs'; | |
class GlueWorkflowStack extends cdk.Stack { | |
constructor(scope: Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); |
import * as cdk from 'aws-cdk-lib'; | |
import * as glue from 'aws-cdk-lib/aws-glue'; | |
import * as redshift from 'aws-cdk-lib/aws-redshift'; | |
import * as s3 from 'aws-cdk-lib/aws-s3'; | |
import * as iam from 'aws-cdk-lib/aws-iam'; | |
import * as core from 'aws-cdk-lib/core'; | |
export class YourCdkStack extends core.Stack { | |
constructor(scope: core.Construct, id: string, props?: core.StackProps) { | |
super(scope, id, props); |
#!/bin/bash | |
# Specify the desired volume size in GiB as a command line argument. If not specified, default to 20 GiB. | |
SIZE=${1:-40} | |
# Get the ID of the environment host Amazon EC2 instance. | |
INSTANCEID=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
REGION=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/\(.*\)[a-z]/\1/') | |
# Get the ID of the Amazon EBS volume associated with the instance. |
package main | |
import ( | |
_ "context" | |
"flag" | |
"fmt" | |
"github.com/go-kit/kit/log" | |
"net/http" | |
"net/http/pprof" | |
"os" |
docker run --rm -it -v "${GOPATH}":/gopath -v "$(CURDIR)":/app -e "GOPATH=/gopath" -w /app golang:1.7 sh -c 'CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o app' |
I hereby claim:
To claim this, I am signing this object:
required_plugins = %w( vagrant-faster vagrant-cachier vagrant-vbguest ) | |
required_plugins.each do |plugin| | |
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin | |
end | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/vivid64" | |
config.vm.box_check_update = true | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.synced_folder ".", "/vagrant" |
I hereby claim:
To claim this, I am signing this object:
Vagrant.configure(2) do |config| | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | |
vb.customize ["modifyvm", :id, "--nictype1", "virtio"] | |
end | |
end |