Skip to content

Instantly share code, notes, and snippets.

@atoonk
atoonk / mysocket-client.py
Last active December 5, 2020 01:00
mysocket example code
from mysocketctl.socket import get_sockets, new_socket
from mysocketctl.tunnel import new_tunnel
from mysocketctl.login import get_token
from mysocketctl.ssh import SystemSSH, Paramiko
import jwt
username="[email protected]"
password="xxx"
token = get_token(username,password)
@atoonk
atoonk / gif_service.py
Last active December 7, 2020 01:54
a random gif web-service
#!/usr/bin/python3
import platform
import giphy_client
from giphy_client.rest import ApiException
from http.server import HTTPServer, BaseHTTPRequestHandler
api_key = "REPLACE_WITH_YOUR_GIPHY_API_KEY" # str | Giphy API Key.
# create an instance of the API class
api_instance = giphy_client.DefaultApi()
@atoonk
atoonk / AWS_v4prefixes.md
Last active May 10, 2025 21:52
AWS prefixes

Summary

Total number of IPv4 addresses: 100,750,168. That’s the equivalent of just over six /8’s Also see this blog: https://toonk.io/aws-and-their-billions-in-ipv4-addresses/

just for fun, let's put a value number on that

Total value at, $20 per IP: => $2,015,003,360

Total value at, $25 per IP: => $2,518,754,200

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@atoonk
atoonk / test.geojson
Last active September 1, 2019 21:02
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.