Skip to content

Instantly share code, notes, and snippets.

View maurobaraldi's full-sized avatar

Mauro Navarro Baraldi maurobaraldi

View GitHub Profile
@maurobaraldi
maurobaraldi / Dockerfile
Created April 13, 2025 01:10
Download Cocoa Futures Historical Data, traded in New York Board of Trade, from Yahoo Finance
FROM python:3.11-alpine
WORKDIR /app
RUN apk add --no-cache --upgrade py3-numpy py3-pandas py3-lxml py3-requests gcc build-base py3-scikit-learn
RUN pip install numpy pandas lxml scikit-learn requests selenium
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" > /etc/apk/repositories \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories
RUN apk update
RUN apk add --no-cache --upgrade chromium-chromedriver
@maurobaraldi
maurobaraldi / cloud.md
Created March 19, 2025 13:51
Cloud Infrastructure Articles
@maurobaraldi
maurobaraldi / install_go.sh
Created October 29, 2024 14:50 — forked from gsrai/install_go.sh
Install Go on M1/M2/M3 mac (apple silicon)
#!/usr/bin/env bash
# find filename on https://go.dev/dl/
GO_FILE_NAME="go1.19.3.darwin-arm64.tar.gz"
# usage:
# chmod u+x install_go.sh
# sudo ./install_go.sh
mkdir /tmp/downloads
# create/update resources
kubectl --context=minikube apply -f ./postgres.yaml
# In order for the service to reach the statefulset, the following should
# be true:
# statefulset.spec.selector.matchLabels.app == service.spec.selector.app
# statefulset.spec.selector.matchLabels.role == service.spec.selector.role
# give the server some time to start up
# ...
@maurobaraldi
maurobaraldi / results.csv
Created June 30, 2024 20:35
FIFA International football results from 1872 to 2024
We can't make this file beautiful and searchable because it's too large.
date,home_team,away_team,home_score,away_score,tournament,city,country,neutral
1872-11-30,Scotland,England,0,0,Friendly,Glasgow,Scotland,FALSE
1873-03-08,England,Scotland,4,2,Friendly,London,England,FALSE
1874-03-07,Scotland,England,2,1,Friendly,Glasgow,Scotland,FALSE
1875-03-06,England,Scotland,2,2,Friendly,London,England,FALSE
1876-03-04,Scotland,England,3,0,Friendly,Glasgow,Scotland,FALSE
1876-03-25,Scotland,Wales,4,0,Friendly,Glasgow,Scotland,FALSE
1877-03-03,England,Scotland,1,3,Friendly,London,England,FALSE
1877-03-05,Wales,Scotland,0,2,Friendly,Wrexham,Wales,FALSE
1878-03-02,Scotland,England,7,2,Friendly,Glasgow,Scotland,FALSE
@maurobaraldi
maurobaraldi / server.py
Last active February 14, 2024 18:57
Tests BaseHTTPRequestHandler
#!/usr/bin/env python
from http.server import HTTPServer, BaseHTTPRequestHandler
class HTTPRequestHandler(BaseHTTPRequestHandler):
protocol_version = "HTTP/1.0"
def do_GET(self):
self.send_response(200)
@maurobaraldi
maurobaraldi / TradingBotOanda.ipynb
Created November 20, 2023 19:47
Trading bot for Oanda platform
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maurobaraldi
maurobaraldi / uniswap_pools_analyser.js
Created April 30, 2023 21:58
Uniswap Pools Analyser for Enthereum network.
//
// Uniswap Pools Analyser
// Author: Mauro Navarro Baraldi <[email protected]>
// License: MIT License
//
// If you consider pay me a coffee here are the wallets
// {
// "bitcoin": "1EUGcJHS49242UpDXNVoLVzWSTVPRKmRth",
// "litecoin": "LbqRSz5i225FqED4QTFwjU5qQS72cRdvoe",
// "ethereum": "0xfA5c619f46848Fefe1E35Da1A04d4cBCeaf16B1f"
@maurobaraldi
maurobaraldi / key.md
Created February 6, 2023 14:34
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@maurobaraldi
maurobaraldi / gen_btc_wallet.py
Last active December 28, 2022 16:42
Generate Bitcoin Wallets in Python 3
#!/usr/bin/env python3
import binascii
import hashlib
import pip
# Install base58 and ecdsa libs if not installed yeat.
try:
import base58
import ecdsa