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
stages: | |
- build_nginx | |
- dev_nginx | |
build_nginx: | |
stage: build_nginx | |
image: | |
name: gcr.io/kaniko-project/executor:debug | |
entrypoint: [""] |
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 boto3 | |
import datetime | |
client = boto3.client('acm',region_name='eu-central-1') | |
def list_certificates(): | |
response = client.list_certificates() | |
return response['CertificateSummaryList'] | |
def get_certificate_details(certificate_arn): |
A typical QSO (contact) in amateur radio follows a standard structure, though it can vary depending on the mode (voice, CW, digital) and the preferences of the operators. Below is an example of a voice QSO on SSB (Single Side Band):
Calling CQ (Initiating a Contact):
Station 1: "CQ CQ CQ, this is [callsign], calling CQ and standing by."
Responding to the CQ:
Station 2: "[Station 1 callsign], this is [Station 2 callsign]. Over."
- SO73 1
rule1
on button1#state=10 do publish button_test10 %value% endon
on button1#state=11 do publish button_test11 %value% endon
on button1#state=12 do publish button_test12 %value% endon
on button1#state=13 do publish button_test13 %value% endon
on button1#state=14 do publish cmnd/air_cond_tuya/POWER toggle endon
on button2#state do publish button_test2 %value% endon
on button3#state do publish button_test3 %value% endon
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
#!/bin/bash | |
# Flush all rules | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -t raw -F |
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 | |
from bs4 import BeautifulSoup | |
# URL to scrape | |
url = "https://ru.nkon.nl/rechargeable/lifepo4/prismatisch.html" | |
# Send a GET request to the page | |
response = requests.get(url) | |
response.raise_for_status() # Ensure the request was successful |
Prerequisites
AWS Account: Ensure you have an AWS account and necessary permissions to create resources.
AWS CLI: Install and configure the AWS CLI with your credentials.
Terraform: Install Terraform on your local machine.
Step 1: Set Up Your Project Directory
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
https://medium.com/@janvithakkar.583/implementing-serverless-api-with-amazon-api-gateway-lambda-function-and-amazon-cognito-user-pool-92ff44cc4949 | |
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-invoke-api-integrated-with-cognito-user-pool.html | |
Call the API with Cognito Credentials: | |
After integrating the user pool, users will need to sign in to Cognito and obtain a JSON Web Token (JWT). | |
When making API requests, users will include the JWT token in the "Authorization" header with the format "Bearer <token>". | |
API Gateway will validate the token with Cognito and grant access based on the user's permissions. |
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
template(name="json-template" | |
type="list") { | |
constant(value="{") | |
constant(value="\"@timestamp\":\"") property(name="timereported" dateFormat="rfc3339") | |
constant(value="\",\"@version\":\"1") | |
constant(value="\",\"message\":\"") property(name="msg" format="json") | |
constant(value="\",\"sysloghost\":\"") property(name="hostname") | |
constant(value="\",\"severity\":\"") property(name="syslogseverity-text") | |
constant(value="\",\"facility\":\"") property(name="syslogfacility-text") | |
constant(value="\",\"programname\":\"") property(name="programname") |
NewerOlder