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
@nachocodexx
nachocodexx / Dockerfile
Last active May 8, 2025 05:10
Dockerfile Pyfhel
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app
# Step 1: Install prerequisites
RUN apt-get update && apt-get install -y \
software-properties-common \
lzip git make sudo curl build-essential libssl-dev libffi-dev \
#!/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
],