GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.
### CREATE NOTEBOOK INSTANCE | |
export HOME=/home/ec2-user | |
# Install and enable Git LFS | |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash | |
sudo yum install git-lfs -y | |
git lfs install |
cfg, err := external.LoadDefaultAWSConfig() | |
if err != nil { | |
panic(err) | |
} | |
esCfg := elasticsearch.Config{ | |
Transport: &awssigner.V4Signer{ | |
RoundTripper: http.DefaultTransport, | |
Credentials: cfg.Credentials, | |
Region: cfg.Region, | |
}, |
#!/bin/bash | |
# Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; version 2 of the License. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
GitHub’s search supports a variety of different operations. Here’s a quick cheat sheet for some of the common searches.
For more information, visit our search help section.
How to setup a development environment where Git from WSL integrates with native Windows applications, using the Windows home folder as the WSL home and using Git from WSL for all tools.
Note if using Git for Windows, or any tool on the Windows side that does not use Git from WSL then there will likely be problems with file permissions if using those files from inside WSL.
These are the tools I use:
wslgit
)const axios = require('axios') | |
const { URLSearchParams } = require('url') | |
const getFullBlockId = (blockId) => { | |
if (typeof blockId !== 'string') { | |
throw Error(`blockId: ${typeof blockId} must be string`) | |
} | |
if (blockId.match("^[a-zA-Z0-9]+$")) { | |
return blockId.substr(0, 8) + "-" | |
+ blockId.substr(8, 4) + "-" |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
# Enable autoscaling for the service | |
ScalableTarget: | |
Type: AWS::ApplicationAutoScaling::ScalableTarget | |
DependsOn: Service | |
Properties: | |
ServiceNamespace: 'ecs' | |
ScalableDimension: 'ecs:service:DesiredCount' | |
ResourceId: | |
Fn::Join: | |
- '/' |
a4b.amazonaws.com | |
access-analyzer.amazonaws.com | |
account.amazonaws.com | |
acm-pca.amazonaws.com | |
acm.amazonaws.com | |
airflow-env.amazonaws.com | |
airflow.amazonaws.com | |
alexa-appkit.amazon.com | |
alexa-connectedhome.amazon.com | |
amazonmq.amazonaws.com |