Skip to content

Instantly share code, notes, and snippets.

View addicola's full-sized avatar
💭
I may be slow to respond.

ntp. addicola

💭
I may be slow to respond.
View GitHub Profile
@addicola
addicola / tools.md
Created October 20, 2022 14:33 — forked from paulocheque/tools.md
Essential Dev Tools

Basic

  • Sublime 3
    • Package Control
    • Markdown highlight
    • INI highlight
    • Nginx highlight
    • Play highlight
    • Python improved
  • Generic Config highlight
@addicola
addicola / .gitignore
Created July 9, 2020 14:57 — forked from santoshpy/.gitignore
gitignore file for django project
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
@addicola
addicola / docker-compose.yml
Created June 28, 2020 11:49 — forked from barnybug/docker-compose.yml
Docker compose for a Docker-in-docker gitlab runners setup
# 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
@addicola
addicola / Elasticsearch_AWS_Linux.md
Created April 26, 2020 19:28 — forked from hydeenoble/Elasticsearch_AWS_Linux.md
Install Elasticsearch on Amazon Linux (EC2)

Installing Elasticsearch on AWS Linux AMI

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.

Install JAVA 8

sudo yum install java-1.8.0
@addicola
addicola / ElasticSearch.template
Created April 26, 2020 13:30 — forked from ajbrown/ElasticSearch.template
AWS CloudFormation Template For ElasticSearch Cluster
{
"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",
@addicola
addicola / replace-apache.sh
Created May 16, 2019 02:03 — forked from nzakas/replace-apache.sh
Replace Apache with nginx on Elastic Beanstalk AMI (Tomcat7/32-bit)
#!/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
@addicola
addicola / aws-codebuild-cross-account-image-push.yml
Created September 15, 2017 15:58 — forked from tvalletta/aws-codebuild-cross-account-image-push.yml
AWS CodeBuild buildspec.yml example for building a docker image and pushing it to a AWS ECS docker repo in another AWS account
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)
@addicola
addicola / API.md
Created August 12, 2017 17:33 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@addicola
addicola / 0_reuse_code.js
Created May 22, 2017 04:25
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console