Skip to content

Instantly share code, notes, and snippets.

@auasad
auasad / .htaccess
Created September 7, 2021 08:24 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@auasad
auasad / README.md
Created February 10, 2021 13:16 — forked from shinaisan/README.md
Short Example of Logstash Multiple Pipelines

Short Example of Logstash Multiple Pipelines

This gist is just a personal practice record of Logstash Multiple Pipelines.

The following summary assumes that the PATH contains Logstash and Filebeat executables and they run locally on localhost.

Logstash config

We couldn’t find that file to show.
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "auasad/the-example-app-cicd"
},
"Ports": [
{
"ContainerPort": "8080"
}
]
@auasad
auasad / Dockerfile
Last active December 26, 2019 22:08
Dockerfile for Node.js
# setting the base image node:10
FROM node:10
# defining a working directory for the applicaion
WORKDIR /usr/src/app
# copies the all the wild card json files
COPY package*.json ./
# installing the dependencies defined inside the package.json file
@auasad
auasad / server.js
Last active January 8, 2020 15:48
server.js file
'use strict';
const express = require('express');
// Constants definitions
const PORT = 8080;
const HOST = '0.0.0.0';
// App
const app = express();
@auasad
auasad / package.json
Last active December 26, 2019 21:43
package.json file for node.js dependencies
{
"name": "web_app",
"version": "1.0.0",
"description": "Node.js docker image deployment on eb",
"author": "Asad Ullah <[email protected]>",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {