Skip to content

Instantly share code, notes, and snippets.

View ironbyte's full-sized avatar

ironbyte ironbyte

View GitHub Profile
@ironbyte
ironbyte / New 52 - Reading Order Part One
Created October 30, 2019 19:34
New 52 Reading Order - Part One (October 2019) - Edited by me
Batman/Superman #1 (2013)
Batman/Superman #2
Batman/Superman #3
Batman/Superman #4
Swamp Thing Vol. 5 #0
Aquaman Vol. 7 #0
Nightwing Vol. 3 #0
Action Comics Vol. 2 #1 (2011)
Action Comics Vol. 2 #2
Action Comics Vol. 2 #3
@ironbyte
ironbyte / gist:eefb93d9cbabe0d9dae681ffd1384be2
Last active October 31, 2019 06:15
Master New 52 Reading Order (comicbookreadingorders - Last updated - October 2019)
Dial H #0
Demon Knights #0
Demon Knights #1 (2011)
Demon Knights #2
Demon Knights #3
Demon Knights #4
Demon Knights #5
Demon Knights #6
Demon Knights #7
Demon Knights #8
@ironbyte
ironbyte / docker-it.sh
Created May 20, 2019 14:45 — forked from mattgrayisok/docker-it.sh
A simple script to install docker on a server
#!/bin/sh
curl https://get.docker.com | sh
sudo curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo usermod -aG docker $USER
echo "****************"
echo "* Docker and docker-compose have been installed"
echo "* The current user has been added to the docker group"
echo "* Close and restart this session or run 'su - $USER' to refresh your active groups"
echo "****************"
@ironbyte
ironbyte / mongoDump.md
Created April 30, 2019 11:33 — forked from JaniAnttonen/mongoDump.md
Export Docker MongoDB collection as a JSON file

First, find the container that runs your MongoDB and ssh into it.

Then, find the collection you want to export:

mongo
show dbs
use <database>
show collections
exit
@ironbyte
ironbyte / nginx-tuning.md
Created April 15, 2019 20:14 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@ironbyte
ironbyte / README-Template.md
Created April 7, 2019 22:29 — 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

@ironbyte
ironbyte / docker.compose.yml
Created March 15, 2019 12:24 — forked from thomas15v/docker.compose.yml
traefik.io nginx example
version: '2'
services:
nginx:
image: nginx:alpine
restart: always
labels:
- "traefik.enable=true"
- 'traefik.frontend.rule=Host:www.website.com'
- "traefik.port=80"
volumes:
@ironbyte
ironbyte / .prettierrc
Created March 10, 2019 14:58
My preferred Prettier config file
{
"arrowParens": "always",
"printWidth": 140,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"semi": true,
"useTabs": false
}
@ironbyte
ironbyte / docker-compose.yml
Created March 1, 2019 06:06
PP Autobirther - Docker-Compose config file
version: "3"
services:
app:
build: .
container_name: planetpegasus-autobirther-app
depends_on:
- redis
links:
- redis
environment:
@ironbyte
ironbyte / Dockerfile
Created March 1, 2019 05:21
Dockerfile for launching a React app in development
FROM node:8.15-alpine
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package* /usr/src/app/
RUN npm install
RUN npm install react-scripts
COPY . .
CMD ["npm", "start"]
EXPOSE 3000