- every match ever: https://sportapi.mlssoccer.com/api/matches?competition=98&excludeSecondaryTeams=true&excludeVenue=false
- Player match log: https://stats-api.mlssoccer.com/v1/players/matches?&player_opta_id=231969&page=0&page_size=30&include=*&order_by=-match_date
- active club list https://stats-api.mlssoccer.com/v1/clubs?&competition_opta_id=98&season_opta_id=2022&order_by=club_name
- rosters https://sportapi.mlssoccer.com/api/players/byClub/11091?culture=en-us
- player career stats: https://stats-api.mlssoccer.com/v1/players/seasons?&player_opta_id=231969&include=*&competition_opta_id=98&order_by=-season_opta_id
- form: https://sportapi.mlssoccer.com/api/previousMatches/1581?culture=en-us&secondClub=9668&matchDate=2021-12-11T20:00:00Z&maxItems=3&formGuideMatchesCount=5
- match overview: https://sportapi.mlssoccer.com/api/matches/2245774
- daily schedule: https://sportapi.mlssoccer.com/api/matches?culture=en-us&dateFrom=2021-12-10&dateTo=2021-12-12&competition=98&excludeSecondaryTeams=true&excludeVen
This file has been truncated, but you can view the full file.
This file contains 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
[ | |
{ | |
"type": "multiple", | |
"difficulty": "medium", | |
"category": "Entertainment: Video Games", | |
"question": "What is the world's first video game console?", | |
"correct_answer": "Magnavox Odyssey", | |
"incorrect_answers": [ | |
"Coleco Telstar", |
This file contains 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
# Increase display brightness command | |
osascript -e 'tell application "System Events"' -e 'key code 144' -e ' end tell' | |
# Decrease display brightness command | |
osascript -e 'tell application "System Events"' -e 'key code 145' -e ' end tell' | |
# zsh solution to turn it all the way up on one command, just run `b` on the cmd line | |
alias bright="osascript -e 'tell application \"System Events\"' -e 'key code 144' -e ' end tell'" | |
alias b="repeat 10 { bright }" |
This file contains 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
# How to fix: "chromedriver" can’t be opened because Apple cannot check it for malicious software. | |
xattr -d com.apple.quarantine /opt/homebrew/bin/chromedriver |
This file contains 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
import requests | |
import json | |
import time | |
if __name__ == '__main__': | |
db = {} | |
token = requests.get('https://opentdb.com/api_token.php?command=request').json()['token'] | |
while True: | |
r = requests.get(f'https://opentdb.com/api.php?amount=50&token={token}') | |
r_json = r.json() |
This file contains 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
{ | |
"1": "2021-06-20", | |
"2": "2021-06-21", | |
"3": "2021-06-22", | |
"4": "2021-06-23", | |
"5": "2021-06-24", | |
"6": "2021-06-25", | |
"7": "2021-06-26", | |
"8": "2021-06-27", | |
"9": "2021-06-28", |
- Looking at your instance info, find VNIC section, click "Public Subnet".
- Click on your security list.
- Add a new entry with the following options:
- "Stateless" = No, "Source" = 0.0.0.0/0, "IP Protocol" = TCP, "Source Port Range" = All, "Destination Port Range" = 80
- SSH to your instance.
- While SSH'ed in your instance, run command
firewall-cmd --permanent --add-service=http
. - While SSH'ed in your instance, run command
firewall-cmd --reload
. - Now start Apache, NGINX, or whatever server you need to on port 80. You can now access from the internet.
Here are the steps needed to convert an image (like JPG or TIF) to MBTiles using GDAL:
-
Download and install GDAL (https://gdal.org/, https://anaconda.org/conda-forge/gdal):
conda install -c conda-forge gdal
Installing GDAL is kind of a pain in the ass, especially on Windows. I'm assuming you'll be able to work out whatever issues you run into here.
-
Download example
jpg
andtif
map images we can work with:- http://www.radcyberzine.com/xglobe/index.html#maps - See Super-hi-res maps section, download one of the
jpg
files.
- http://www.radcyberzine.com/xglobe/index.html#maps - See Super-hi-res maps section, download one of the
Here are the steps needed to run a self hosted Open Street Map server (using Docker):
-
Download desired
pbf
files (likesouth-carolina-latest.osm.pbf
) from https://download.geofabrik.de or just use the following empty planet below:<?xml version='1.0' encoding='UTF-8'?> <osm version="0.6" generator="osmconvert 0.8.8" timestamp="2019-10-23T20:18:02Z"> <bounds minlat="42.4276" minlon="1.412368" maxlat="42.65717" maxlon="1.787481"/> </osm>
NewerOlder