- Sublime 3
- Package Control
- Markdown highlight
- INI highlight
- Nginx highlight
- Play highlight
- Python improved
- Generic Config highlight
This file contains hidden or 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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| # C extensions | |
| *.so | |
| # Distribution / packaging |
This file contains hidden or 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
| # Docker-in-Docker Gitlab runners setup taken from: | |
| # https://medium.com/@tonywooster/docker-in-docker-in-gitlab-runners-220caeb708ca | |
| dind: | |
| restart: always | |
| privileged: true | |
| volumes: | |
| - /var/lib/docker | |
| image: docker:17.09.0-ce-dind | |
| command: | |
| - --storage-driver=overlay2 |
The following will guide you through the process of installing Elasticsearch on an AWS EC2 instance running Amazon Linux AMI 2016.09 - Release Notes
For this process I'll be using a t2.micro EC2 instance running Amazon Linux AMI. Once the EC2 instance is up-and-running, connect to your server via ssh.
sudo yum install java-1.8.0
This file contains hidden or 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" : "ElasticSearch Cluster.", | |
| "Parameters" : { | |
| "KeyName": { | |
| "Description" : "The name of an existing key pair to enable SSH access to Amazon EC2 instances", | |
| "Type": "String", |
This file contains hidden or 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
| #!/bin/sh | |
| # IMPORTANT: Run this script as sudo or else it won't work | |
| # Original script: http://my.safaribooksonline.com/book/programming/java/9781449309558/hacking-elastic-beanstalk/hackingelectric#X2ludGVybmFsX0ZsYXNoUmVhZGVyP3htbGlkPTk3ODE0NDkzMDk1NTgvSV9zZWN0MTRfZDFlMjAyNQ== | |
| echo 'Installing nginx...sit tight' | |
| yum -y install nginx | |
| echo 'Fixing nginx configuration' | |
| sed -i 's/ 1;/ 4;/g' /etc/nginx/nginx.conf | |
| rm /etc/nginx/conf.d/default.conf |
This file contains hidden or 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
| version: 0.1 | |
| # REQUIRED ENVIRONMENT VARIABLES | |
| # AWS_KEY - AWS Access Key ID | |
| # AWS_SEC - AWS Secret Access Key | |
| # AWS_REG - AWS Default Region (e.g. us-west-2) | |
| # AWS_OUT - AWS Output Format (e.g. json) | |
| # AWS_PROF - AWS Profile name (e.g. central-account) | |
| # IMAGE_REPO_NAME - Name of the image repo (e.g. my-app) | |
| # IMAGE_TAG - Tag for the image (e.g. latest) |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |