Skip to content

Instantly share code, notes, and snippets.

View devils-ey3's full-sized avatar
🎯
Focusing

Yeahia Md Abid devils-ey3

🎯
Focusing
View GitHub Profile
@devils-ey3
devils-ey3 / install.sh
Last active June 29, 2020 05:59 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@devils-ey3
devils-ey3 / Dockerfile
Created March 9, 2020 20:09 — forked from aramalipoor/Dockerfile
Docker + Alpine + Newrelic + PHP (Kubernetes / AbarCloud)
# Prepare required directories for Newrelic installation
RUN mkdir -p /var/log/newrelic /var/run/newrelic && \
touch /var/log/newrelic/php_agent.log /var/log/newrelic/newrelic-daemon.log && \
chmod -R g+ws /tmp /var/log/newrelic/ /var/run/newrelic/ && \
chown -R 1001:0 /tmp /var/log/newrelic/ /var/run/newrelic/ && \
# Download and install Newrelic binary
export NEWRELIC_VERSION=$(curl -sS https://download.newrelic.com/php_agent/release/ | sed -n 's/.*>\(.*linux-musl\).tar.gz<.*/\1/p') && \
cd /tmp && curl -sS "https://download.newrelic.com/php_agent/release/${NEWRELIC_VERSION}.tar.gz" | gzip -dc | tar xf - && \
cd "${NEWRELIC_VERSION}" && \
modules:
http_2xx:
prober: http
http_post_2xx:
prober: http
http:
method: POST
tcp_connect:
prober: tcp
pop3s_banner:
{
"status":"it should be success"
}
FROM ubuntu:16.04
RUN apt-get update
RUN wget https://nginx.org/download/nginx-1.14.0.tar.gz
RUN tar zxf nginx-1.14.0.tar.gz
RUN cd nginx-1.14.0
RUN ./configure && cd ~
RUN apt-get install -y nginx php7.0-fpm supervisor && \
rm -rf /var/lib/apt/lists/*
import React, { Component } from "react";
import * as movies from "../services/fakeMovieService";
import Pagination from "./common/pagination";
import ListGroup from "./common/moviesListGroup";
import _ from "underscore";
import lodash from "lodash";
import { getPaginatedItems } from "../utils/paginate";
import { getGenres } from "../services/fakeGenreService";
import MovieTable from "./movieTable";
class Movie extends Component {
@devils-ey3
devils-ey3 / index.html
Created August 11, 2018 06:13
Vue life cycle cheat sheet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="vue.js"></script>
<title>Document</title>
</head>
<body>
@devils-ey3
devils-ey3 / webdev_online_resources.md
Created July 16, 2018 20:11 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@devils-ey3
devils-ey3 / Redis.txt
Created June 28, 2018 01:08
Redis Cheat Sheet
রেডিস এ কিছু (স্ট্রিং) জমা রাখতে চাইলেঃ SET key value
যেমনঃ SET name Tarek
রেডিস এ জমা রাখা কিছু পেতে চাইলেঃ GET key
যেমনঃ GET name
জমা আছে কিনা তার সত্যতা নিশ্চিত করতে চাইলেঃ EXISTS key
@devils-ey3
devils-ey3 / index.html
Created May 19, 2018 09:36
Bootstrap Cheat Sheet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Cheat Sheet</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>