- Create the directory first
mkdir -p ~/.backup/rabbitmq/lumen6 - provide permission to that directory
sudo chown -R 1001:1001 ~/.backup/rabbitmq/lumen6 sudo chown anik:anik ~/.backup/rabbitmq/lumen6- Run docker-compose up -d --build
This file contains hidden or 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
| #!/usr/bin/env python | |
| # Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
| # Written by Nathan Hamiel (2010) | |
| # Cloned & Updated from: https://gist.github.com/1kastner/e083f9e813c0464e6a2ec8910553e632 | |
| import json | |
| from http.server import HTTPServer, BaseHTTPRequestHandler | |
| from optparse import OptionParser | |
| allow = False |
This file contains hidden or 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
| function parser(url) { | |
| return url.replace(/^\/(.*)$/g, '$1'); | |
| } | |
| HOST = 'http://127.0.0.1:8080/'; | |
| function get(url = '/get') { | |
| fetch(HOST + parser(url), { | |
| method: 'GET', | |
| }).then((data) => data.json()).then((data) => console.log(data)); |
This file contains hidden or 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
| # using such a setup requires `apt-get install lua-nginx-redis` under Ubuntu Trusty | |
| # more info @ http://wiki.nginx.org/HttpLuaModule#access_by_lua | |
| http { | |
| lua_package_path "/etc/nginx/include.d/?.lua;;"; | |
| lua_socket_pool_size 100; | |
| lua_socket_connect_timeout 10ms; | |
| lua_socket_read_timeout 10ms; | |
| server { |
This file contains hidden or 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 | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class AddUserApiTokenField extends Migration | |
| { | |
| /** | |
| * Run the migrations. |
This file contains hidden or 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
| git shortlog -e -s -n |
This file contains hidden or 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 | |
| echo 'script 1 start' . PHP_EOL; | |
| class A12 | |
| { | |
| public $script = null; | |
| public function __construct ($script = 's1') { | |
| $this->script = $script; | |
| } |
This file contains hidden or 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
| # BENCHMARK----------------------------------------------------- | |
| #1. Rust kafka-benchmark (https://github.com/fede1024/kafka-benchmark) | |
| # must create topic with 6 partitions first | |
| bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 6--topic [scenario] | |
| # replace scenario with one in file kafka-benchmark/config/base_producer.yaml |