type: PIN
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
type: PIN
Consumer key: IQKbtAYlXLripLGPWd0HUA
#!/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 | |
# ... |
#!/usr/bin/env bash | |
#Salve esse conteudo em um arquivo com o nome "install-docker.sh" ou outro de sua preferencia, e execute em um terminal | |
#usando "sh install-docker.sh" | |
executa_imagem=$() | |
echo "Removendo versões antigas do Docker...\n" | |
sudo apt-get remove -y docker docker-engine docker.io containerd runc > /dev/null |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/sh | |
# Copyright 2020 Paul Morgan | |
# License: GPLv2 (https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html) | |
set -x | |
set -e | |
# | |
# Docker build calls this script to harden the image during build. | |
# | |
# NOTE: To build on CircleCI, you must take care to keep the `find` | |
# command out of the /proc filesystem to avoid errors like: |
# -*- coding: utf-8 -*- | |
from mpl_finance import candlestick_ohlc | |
import numpy as np | |
from matplotlib import pyplot | |
import pandas as pd | |
from bs4 import BeautifulSoup | |
import urllib.request | |
import re |
__author__ = 'David Manouchehri' | |
from bs4 import BeautifulSoup | |
import urllib.request | |
import gzip | |
import io | |
url = 'http://yoururlgoesherehopefullythisisntavalidurl.com/pages.html' | |
headers = {'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', |
AF | 0132 | AFEGANISTÃO | |
---|---|---|---|
AL | 0175 | ALBÂNIA, REPÚBLICA DA | |
DE | 0230 | ALEMANHA | |
BF | 0310 | BURKINA FASO | |
AD | 0370 | ANDORRA | |
AO | 0400 | ANGOLA | |
AI | 0418 | ANGUILLA | |
AG | 0434 | ANTIGUA E BARBUDA | |
0477 | ANTILHAS HOLANDESAS | ||
SA | 0531 | ARÁBIA SAUDITA |
#!/usr/bin/env python | |
import socket, time | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.connect(('localhost', 6379)) | |
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) | |
time.sleep(2) | |
sock.sendall('PING\r\n') | |
print repr(sock.recv(4096)) | |
time.sleep(2) |