Skip to content

Instantly share code, notes, and snippets.

View nachocodexx's full-sized avatar
🚀
Working from home

Nacho Castillo nachocodexx

🚀
Working from home
View GitHub Profile
#!/bin/bash
#readonly URL=${1:-http://localhost:60666}
readonly URL=${1:-http://148.247.201.141:60666}
#readonly URL=${1:-https://alpha.tamps.cinvestav.mx/v0/mictlanx/router}
peersprotocol=("http" "http")
peershostname=("mictlanx-peer-0" "mictlanx-peer-1")
peersport=("7000" "7001")
#peersport=("7001" "10000")
for ((i=0; i<${#peersprotocol[@]}; i++ )); do
@nachocodexx
nachocodexx / http-benchmark.md
Created February 9, 2023 18:45 — forked from denji/http-benchmark.md
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
version: '3.7'
services:
service-replicator-0:
image: "nachocode/system-rep:v2"
restart: always
hostname: "sr-0"
environment:
NODE_ID: "sr-0"
NODE_HOST: "0.0.0.0"
NODE_PORT: 5000
server {
listen 80;
listen [::]:80;
server_name api.ewixi.com;
root /var/www/html;
location /graphql {
proxy_pass http://app:4000;
}
@nachocodexx
nachocodexx / default.conf
Created April 19, 2021 01:47
Nginx configuration file
server {
listen 80;
listen [::]:80;
server_name api.ewixi.com;
location ~ /.well-known/acme-challenge {
allow all;
root /var/www/html;
}
@nachocodexx
nachocodexx / docker-compose_prod.yml
Created April 19, 2021 01:26
Docker compose file for ewixi production deployment
version: "3"
services:
app:
image: nachocode/ewixi
restart: unless-stopped
networks:
- ewixi-network
ports:
- 4000:4000
webserver:
@nachocodexx
nachocodexx / docker-compose.yml
Created April 19, 2021 01:26
Ewixi docker-compose file
version: "3"
services:
app:
image: nachocode/ewixi
restart: unless-stopped
networks:
- ewixi-network
ports:
- 4000:4000
webserver:
@nachocodexx
nachocodexx / alice384.cer
Created March 28, 2021 21:58
Digital Certificate uising Elliptic Curve with 384-bit key length
Alias name: alice384
Creation date: Mar 27, 2021
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: C=MX-SLP,ST=San Luis Potosi,L=Mexico,O=Unknown,OU=Unknown,CN=Alice
Issuer: C=MX-SLP,ST=Sa
@nachocodexx
nachocodexx / nodes_neighbors.json
Created February 28, 2021 08:19
Producers, files and topics neighbors.
[
{
"producer": {
"uid": 7686242,
"role": "Gamma",
"node_id": 179
},
"files": [
180
],
@nachocodexx
nachocodexx / operations.csv
Last active March 1, 2021 05:33
Conjunto de datos del proyecto final de analisis de datos.
We can't make this file beautiful and searchable because it's too large.
OPERATION_ID,TYPE,USER_ID,PRODUCTION,CONSUME,CONSUME_OTHERS,USER_VOLUME,USER_DENSITY,USER_ROLE,FILE_ID,FILE_SIZE,TOPIC_ID,TOPIC_VOLUME,TOPIC_DENSITY,TOPIC_ROLE
1,UPLOAD,43114731,0.011119759813188036,0.0,0.23351495607694875,1764,9.966666668653488,Gamma,100,4,17,5167328,47838.2333265692,Alpha
2,DOWNLOAD,1405534545,0.0,0.022239519626376072,0.0,0,0.0,,100,4,17,5167328,47838.2333265692,Alpha
2,DOWNLOAD,1405534545,0.0,0.022239519626376072,0.0,0,0.0,,100,4,17,5167328,47838.2333265692,Alpha
3,DOWNLOAD,640881322,0.0,0.011119759813188036,0.0,0,0.0,,100,4,17,5167328,47838.2333265692,Alpha
4,DOWNLOAD,1416963334,0.0,0.011119759813188036,0.0,0,0.0,,100,4,17,5167328,47838.2333265692,Alpha
5,DOWNLOAD,2189419908,0.0,0.033359279439564106,0.0,0,0.0,,100,4,17,5167328,47838.2333265692,Alpha
5,DOWNLOAD,2189419908,0.0,0.033359279439564106,0.0,0,0.0,,100,4,17,5167328,47838.2333265692,Alpha
5,DOWNLOAD,2189419908,0.0,0.033359279439564106,0.0,0,0.0,,100,4,17,5167328,47838.2333265692,Alpha
6,DOWNLOAD,1664876423,0.0,0.011119759813188036,