Notes to Self

Alex Sokolsky's Notes on Computers and Programming

13 June 2024

Useful Sites

networktest.twilio.com - WebRTC Diagnostics

https://networktest.twilio.com

speed-battle - Browser speed test

http://speed-battle.com

random.org - Random Data Generation

Generate random strings using varying character set:

> curl 'https://www.random.org/strings/?num=10&len=8&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new'
Bn0QZHUr
loDxHSbK
hXMPHqqp
vvlVS1we
iSaS19kb
VZwwMueM
sKLHoofP
lxfqNlQ1
6oCNe7DK
wa54E011

privnote - Secure Self-Destructing Note Sharing

Use this to share secrets:

https://privnote.com/#

carbon - create and share images of your source code

carbon app, repo.

Getting your public IP

checkip.amazonaws.com is a free, public service provided by AWS that returns the public IPv4 address of the requestor.

> curl https://checkip.amazonaws.com
165.85.174.213
> curl http://api.ipify.org
165.85.174.213

Geolocation

ipify also offers a geolocation API. A site can obtain the IP from api.ipify.org, then pass that IP to a geolocation API or a local geolocation database.

> curl --no-progress-meter 'https://geo.ipify.org/api/v2/country?apiKey=at_*****&ipAddress=165.85.174.213'|jq
{
  "ip": "165.85.174.213",
  "location": {
    "country": "US",
    "region": "California",
    "timezone": "-07:00"
  },
  "as": {
    "asn": 394089,
    "name": "GCP-ENTERPRISE-USER-TRAFFIC",
    "route": "165.85.160.0/19",
    "domain": "",
    "type": ""
  },
  "isp": ""
}
tags: aws