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
param ( | |
[string]$PackageListSource | |
) | |
function Get-PackageList { | |
param ( | |
[string]$Source | |
) | |
if ($Source -match "^https?:\/\/") { |
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
### CLOUDFRONT | |
module "cloudfront" { | |
source = "terraform-aws-modules/cloudfront/aws" | |
comment = "Outdoor Activities Cloudfront" | |
is_ipv6_enabled = true | |
price_class = "PriceClass_100" | |
wait_for_deployment = false | |
create_origin_access_identity = true |
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
### LAMBDA | |
module "lambda_function" { | |
source = "terraform-aws-modules/lambda/aws" | |
function_name = "outdoor-activities-generator" | |
description = "Generates a map containing your outdoor activities" | |
handler = "main.lambda_handler" | |
runtime = "python3.11" | |
timeout = 60 |
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
data "http" "mime_types" { | |
url = "https://gist.githubusercontent.com/lkrimphove/46988dc2ac63ad5ad9c95e6109e3c37e/raw/2349abeb136f1f8dbe91c661c928a5ce859432f9/mime.json" | |
request_headers = { | |
Accept = "application/json" | |
} | |
} | |
locals { | |
mime_types = jsondecode(data.http.mime_types.response_body) | |
} |
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
### CREATE MAP | |
import folium | |
from folium import plugins as folium_plugins | |
if LOCATION: | |
location = LOCATION | |
else: | |
location=[df.Latitude.mean(), df.Longitude.mean()] |
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
### CONFIG | |
# LOCATION = None | |
LOCATION = [48.13743, 11.57549] # latitude, longitude | |
ZOOM_START = 10 | |
ACTIVITY_TYPES = { | |
'Hiking': { | |
'icon': 'person-hiking', | |
'color': 'green' |
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
{ | |
"123": "application/vnd.lotus-1-2-3", | |
"1km": "application/vnd.1000minds.decision-model+xml", | |
"3dml": "text/vnd.in3d.3dml", | |
"3ds": "image/x-3ds", | |
"3g2": "video/3gpp2", | |
"3gp": "video/3gpp", | |
"3gpp": "video/3gpp", | |
"3mf": "model/3mf", | |
"7z": "application/x-7z-compressed", |
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
from __future__ import annotations | |
import argparse | |
import fileinput | |
import os | |
import re | |
from typing import Sequence | |
PASS = 0 | |
FAIL = 1 |
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 os | |
import json | |
import logging | |
from dataclasses import dataclass | |
from datetime import datetime | |
from typing import Any | |
import requests | |
import boto3 |
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
on: [push] | |
jobs: | |
gist-sync: | |
name: gist-sync | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: popsiclestick/gist-sync-action@v1.2.0 |
NewerOlder