aws ec2 describe-vpcs --filters "Name=isDefault,Values=true" --output text --query 'Vpcs[*].{Vpc:VpcId}'
aws cloudformation describe-stacks --region us-east-1 --output text --query 'Stacks[*].{Stack:StackName}'
write-output "Running User Data Script" | |
write-host "(host) Running User Data Script" | |
Set-ExecutionPolicy Unrestricted -Scope LocalMachine -Force -ErrorAction Ignore | |
# Don't set this before Set-ExecutionPolicy as it throws an error | |
$ErrorActionPreference = "stop" | |
# Remove HTTP listener | |
Remove-Item -Path WSMan:\Localhost\listener\listener* -Recurse |
git log -S <string to find> --source --all
To find all commits that added or removed the fixed string string to find. The --all
parameter means to start from every branch and --source
means to show which of those branches led to finding that commit.
git branch --contains <commit>
security_groups.push(element.UserIdGroupPairs.map(function(element){ | |
if (element.GroupId !== sg_id) { | |
return element.GroupId; | |
} | |
})); |
let msg = { | |
name: 'channel add', | |
data: { | |
name: 'Hardware Support' | |
} | |
}; | |
let ws = new WebSocket('ws://localhost:4000'); | |
ws.onopen = () => { |
{"timestamp":"1464971434.260286093","source":"worker","message":"worker.garden.unpack-assets.unpacking","log_level":1,"data":{"session":"1.1"}} | |
{"timestamp":"1464971448.578568697","source":"worker","message":"worker.garden.unpack-assets.done","log_level":1,"data":{"session":"1.1"}} | |
{"timestamp":"1464971448.579437971","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"archive","session":"1.2.1"}} | |
{"timestamp":"1464971449.821817398","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-deployment","session":"1.2.2"}} | |
{"timestamp":"1464971452.130784750","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-io-release","session":"1.2.3"}} | |
{"timestamp":"1464971453.105770588","source":"worker","message":"worker.garden.extract-resources.extract.extracting","log_level":1,"data":{"resource-type":"bosh-io-stemce |
Stash current changes: git stash | |
Go back to the latest commit for edition: git rebase -i HEAD~1 | |
Set the edit option | |
Apply the stashed changes to be added in the commit: git stash apply | |
Add the files: git add missing_files | |
Change the latest commit: git commit —amend | |
Finish the rebase: git rebase —continue |
--- | |
applications: | |
- name: simple-gochos-web-app | |
disk: 256M | |
memory: 128M |
Sun Jun 19 04:04:47 UTC 2016 |
from __future__ import print_function | |
import json | |
import urllib | |
import boto3 | |
print('Loading function') | |
s3 = boto3.client('s3') |