This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
upstream myapp1 { | |
server srv1.example.com; | |
server srv2.example.com; | |
server srv3.example.com; | |
} | |
server { | |
listen 80; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump) | |
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader) | |
symfony/routing suggests installing symfony/yaml (For using the YAML loader) | |
symfony/routing suggests installing symfony/expression-language (For using expression matching) | |
symfony/routing suggests installing doctrine/annotations (For using the annotation loader) | |
symfony/polyfill-intl-idn suggests installing ext-intl (For best performance) | |
symfony/event-dispatcher-contracts suggests installing psr/event-dispatcher | |
symfony/event-dispatcher suggests installing symfony/dependency-injection | |
symfony/http-kernel suggests installing symfony/browser-kit | |
symfony/http-kernel suggests installing symfony/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This compose file will start up Netflix OSS Tracker and load it with a days worth of data | |
# | |
# You need to export a variable before running it with your github key | |
# export github_oauth=YOUR_KEY_HERE | |
# export github_org=YOUR_ORG_HERE | |
# | |
version: '3' | |
services: | |
cassandra: | |
container_name: osstracker-cassandra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
export default function App() { | |
const nested = [ | |
{ | |
name: "EWAY", | |
deparments : [ | |
{ | |
name : "IHR" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
volumes: | |
kong_data: {} | |
networks: | |
kong-net: | |
driver: bridge | |
services: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Tạo machine type là generic | |
docker-machine create -d generic \ | |
--generic-ip-address xxx.xxx.xxx.xxx \ | |
--generic-ssh-key /path/to/id_rsa \ | |
--generic-ssh-user user-name \ | |
--generic-ssh-port 22 \ | |
dev-db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
mongoarbiter: | |
hostname: mongoarbiter | |
container_name: localmongoarbiter | |
image: mongo:4 | |
expose: | |
- 27017 | |
ports: | |
- 17016:27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:latest | |
#version defined | |
ENV SWOOLE_VERSION 4.4.3 | |
ENV EASYSWOOLE_VERSION 3.x-dev | |
#update core | |
RUN yum update -y | |
#install libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongodump --db database_name --username=user --password="password" --authenticationDatabase=admin --gzip --archive > /opt/database_name.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx(); | |
$spreadsheet = $reader->load("/path/to/your/my.xlsx"); | |
$sheet = $spreadsheet->getSheet(0); | |
?> | |
<html> |