This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mapleader = "\<Space>" | |
set timeoutlen=250 | |
nnoremap <leader>w :w<cr> | |
inoremap jk <esc> | |
vnoremap jkl <esc> | |
nnoremap jk <esc> | |
nnoremap <leader>r :vsc Resharper.Resharper_Rename <cr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
export EDITOR="vim" | |
if [ -t 1 ]; then | |
exec zsh | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:$HOME/.local/bin:/opt/anaconda2/bin:/opt/cuda/bin:$PATH | |
# Set npm config prefix (user-specific installations) | |
export npm_config_prefix=$HOME/.node_modules | |
# Add npm to path | |
export PATH=$PATH:$HOME/.node_modules/bin | |
export PATH=$PATH:$HOME/.yarn/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: > | |
A basic CloudFormation template for an RDS Aurora cluster. | |
Parameters: | |
DatabaseUsername: | |
AllowedPattern: "[a-zA-Z0-9]+" | |
ConstraintDescription: must be between 1 to 16 alphanumeric characters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# serverless.yml | |
# ... | |
provider: | |
name: aws | |
environment: | |
MY_GREETING: "Hello!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserData: | |
Fn::Base64: | |
Fn::Sub: | | |
#!/bin/bash | |
# install pip | |
OS=`cat /etc/os-release | grep '^NAME=' | tr -d \" | sed 's/\n//g' | sed 's/NAME=//g'` | |
if [ "$OS" == "Ubuntu" ]; then | |
apt-get -y update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resources: | |
Type: AWS::EC2::Instance | |
Properties: | |
# ... | |
UserData: | |
Fn::Base64: | | |
#!/bin/bash | |
echo 'hello, world' > /var/log/user-data-log.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resources: | |
Instance: | |
Type: AWS::EC2::Instance | |
Properties: | |
# ... | |
UserData: | |
Fn::Base64: | |
Fn::Sub: | | |
#!/bin/bash | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resources: | |
# ... | |
DescribeInstancesPolicy: | |
Type: AWS::IAM::Policy | |
Properties: | |
PolicyName: 'Ec2-DescribeInstances' | |
PolicyDocument: | |
Statement: | |
- Effect: Allow | |
Action: |