Skip to content

Instantly share code, notes, and snippets.

View 92hackers's full-sized avatar
🎯
Focusing

CHEN Yuan 92hackers

🎯
Focusing
View GitHub Profile
@saissemet
saissemet / .Multiple EC2 Instances using Terraform
Last active January 22, 2024 04:17
Creating multiple EC2 instances using Terraform
## Step 1 ##
In your current user directory, create a folder named ".aws".
Also create a file named "credentials" with your AWS credentials.
## Step 2 ##
Download Terraform (https://releases.hashicorp.com/terraform/0.14.7/terraform_0.14.7_windows_amd64.zip)
Create a folder with a name of your taste and place the "terraform.exe" file.
## Step 3 ##
In that same folder you just created, create the files: "provider.tf", "variables.tf", "main.tf" and "config.sh".
@92hackers
92hackers / .vimrc
Last active June 14, 2019 08:50
new-cy-vimrc
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
" Vim self configurations
set cindent
set incsearch
set backspace=2
set foldenable
@avikalkohlinagarro
avikalkohlinagarro / README-Template.md
Created August 31, 2017 11:56 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@branneman
branneman / better-nodejs-require-paths.md
Last active April 27, 2024 04:16
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions