Skip to content

Instantly share code, notes, and snippets.

View mbejda's full-sized avatar
🎯
Focusing

Milos Bejda mbejda

🎯
Focusing
View GitHub Profile
@mbejda
mbejda / espn-api-list.md
Created December 13, 2023 21:13 — forked from nntrn/espn-api-list.md
List of nfl api endpoints from espn

List of NFL API Endpoints

This page has been updated a lot in the past 2 years. Older revisions you might like more than this one:

  • June 2021 - list of endpoints for other sports/leagues (i.e. basketball, baseball, lacrosse, rugby)
  • August 2021 - get historical fantasy league data
  • September 2021 - list of endpoints in plain text
  • May 2023 - collapsed endpoint response examples

Additional Resources

@mbejda
mbejda / states_by_fips.json
Created October 1, 2019 14:16 — forked from eupharis/states_by_fips.json
State FIPS JSON (Abbreviation and Name)
{
"01": {
"abbreviation": "AL",
"name": "Alabama"
},
"02": {
"abbreviation": "AK",
"name": "Alaska"
},
"03": {
@mbejda
mbejda / states_by_fips.json
Created October 1, 2019 14:16 — forked from eupharis/states_by_fips.json
State FIPS JSON (Abbreviation and Name)
{
"01": {
"abbreviation": "AL",
"name": "Alabama"
},
"02": {
"abbreviation": "AK",
"name": "Alaska"
},
"03": {
@mbejda
mbejda / boot.sh
Last active April 17, 2019 19:35
boot-script
#!/bin/bash -xe
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
cd ~/init;
sudo curl https://gist.githubusercontent.com/mbejda/fdfcb9891f3cd72a0adafb6dab10ab7b/raw/docker-compose.yml > ~/init/docker-compose.yml;
sudo curl https://gist.githubusercontent.com/mbejda/fdfcb9891f3cd72a0adafb6dab10ab7b/raw/upload.ini > ~/init/upload.ini;
docker-compose -f /home/ec2-user/init/docker-compose.yml up -d;
while [ ! -d /var/lib/docker/volumes/init_wp_themes ]
do
sleep 2
done
@mbejda
mbejda / Caddyfile
Created April 15, 2019 01:13 — forked from abiosoft/Caddyfile
Caddy wordpress docker-compose
:80
root /usr/src/wordpress
gzip
fastcgi / wordpress:9000 php
rewrite {
if {path} not_match ^\/wp-admin
to {path} {path}/ /index.php?_url={uri}
}
log stdout
errors stderr
@mbejda
mbejda / .env
Last active April 19, 2019 09:29
docker-compose.yml
DOMAIN=
MYSQL_ROOT_PASSWORD=
WORDPRESS_SITEURL=
WORDPRESS_HOME=
WORDPRESS_DB_NAME=
WORDPRESS_DB_USER=
WORDPRESS_DB_PASSWORD=
DB_PREFIX=
BACKUP_INTERVAL=
WORDPRESS_IMAGE=latest-alpine
@mbejda
mbejda / docker-compose.yml
Last active April 8, 2019 19:04
wordpress docker compose
version: '3.3'
volumes:
s3data:
driver: local
services:
s3vol:
image: elementar/s3-volume
command: /data s3://${S3_BUCKET}
environment:
- BACKUP_INTERVAL=${BACKUP_INTERVAL}
@mbejda
mbejda / event.json
Created March 3, 2019 15:39
Cognito Post Confirmation Event JSON
{
"version": "1",
"region": "",
"userPoolId": "",
"userName": "",
"callerContext": {
"awsSdkVersion": "",
"clientId": ""
},
"triggerSource": "",
@mbejda
mbejda / 1517649096.js
Created February 3, 2018 09:11
Created with Copy to Gist
/* SmtpJS.com - v2.0.1 */
Email = {
send: function(e, o, t, n, a, s, r, c) {
var d = Math.floor(1e6 * Math.random() + 1),
i = "From=" + e;
i += "&to=" + o, i += "&Subject=" + encodeURIComponent(t), i += "&Body=" + encodeURIComponent(n), void 0 == a.token ? (i += "&Host=" + a, i += "&Username=" + s, i += "&Password=" + r, i += "&Action=Send") : (i += "&SecureToken=" + a.token, i += "&Action=SendFromStored", c = a.callback), i += "&cachebuster=" + d, Email.ajaxPost("https://smtpjs.com/v2/smtp.aspx?", i, c)
},
sendWithAttachment: function(e, o, t, n, a, s, r, c, d) {
var i = Math.floor(1e6 * Math.random() + 1),
m = "From=" + e;
@mbejda
mbejda / 1514834785.html
Created January 1, 2018 19:26
Created with Copy to Gist
<!DOCTYPE html>
<html>
<head>
<style>
body {background-color: powderblue;}
h1   {color: blue;}
p    {color: red;}
</style>
</head>
<body>