301 level guidance from an AWS Solutions Architect
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
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 |
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 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 |
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
# 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 | |
# ... |
We can't make this file beautiful and searchable because it's too large.
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
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 |
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 | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
class HTTPRequestHandler(BaseHTTPRequestHandler): | |
protocol_version = "HTTP/1.0" | |
def do_GET(self): | |
self.send_response(200) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// | |
// 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" |
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 python3 | |
import binascii | |
import hashlib | |
import pip | |
# Install base58 and ecdsa libs if not installed yeat. | |
try: | |
import base58 | |
import ecdsa |
NewerOlder