https://docs.goauthentik.io/integrations/services/aws/#method-2-iam-identity-center
https://docs.goauthentik.io/docs/sources/github/
https://docs.goauthentik.io/docs/sources#add-sources-to-default-login-page
This file contains hidden or 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
api_server-1 | 09/05/2024 03:44:04 PM users.py 76 : Using Auth Type: basic | |
api_server-1 | ERROR: Traceback (most recent call last): | |
api_server-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1968, in _exec_single_context | |
api_server-1 | self.dialect.do_execute( | |
api_server-1 | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 920, in do_execute | |
api_server-1 | cursor.execute(statement, parameters) | |
api_server-1 | psycopg2.errors.UndefinedTable: relation "connector_credential_pair" does not exist | |
api_server-1 | LINE 2: FROM connector_credential_pair | |
api_server-1 | ^ | |
api_server-1 | |
This file contains hidden or 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
RUN_IDS=$(gh run list --repo $REPO --json databaseId --limit 50 | jq -r '.[1:] | .[].databaseId') | |
Delet all runs: gh run delete --repo $REPO 10143283850 |
This file contains hidden or 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 pandas as pd | |
import matplotlib.pyplot as plt | |
# Load the CSV file | |
file_path = '/mnt/data/resources(2).csv' | |
data = pd.read_csv(file_path) | |
# Calculate the number of resources per region | |
resources_per_region = data['Region'].value_counts().reset_index() | |
resources_per_region.columns = ['Region', 'Number of Resources'] |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "DenyCreateResourcesInSpecificRegions", | |
"Effect": "Deny", | |
"Action": [ | |
"*" | |
], | |
"Resource": "*", |
This file contains hidden or 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
apiVersion: argoproj.io/v1alpha1 | |
kind: ApplicationSet | |
metadata: | |
name: easyappointments-preview | |
namespace: argocd | |
spec: | |
generators: | |
- pullRequest: | |
github: | |
owner: mongulu-cm |
This file contains hidden or 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 unittest | |
from typing import List, Dict | |
from tqdm import tqdm | |
def distribute_elements(stream: List[int], servers: List[str], weights: List[int]) -> Dict[str, List[int]]: | |
if len(servers) != len(weights): | |
raise ValueError("The number of servers and weights must be the same.") | |
total_weight = sum(weights) | |
normalized_weights = [weight / total_weight for weight in weights] |
This file contains hidden or 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
- op: add | |
path: /Resources/HTTPSRulePriorityAction1 | |
value: | |
Metadata: | |
'aws:copilot:description': 'Custom resource assigning priority for the first HTTPS listener rule' | |
DependsOn: HTTPSListenerRule | |
Type: Custom::RulePriorityFunction | |
Properties: | |
ServiceToken: !GetAtt RulePriorityFunction.Arn | |
RulePath: ["/"] |
This file contains hidden or 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 pandas as pd | |
import datetime | |
import re | |
import matplotlib.pyplot as plt | |
# Load the CSV file | |
df = pd.read_csv("/mnt/data/06-10-2023_10-10.csv") | |
# Function to convert status text to timedelta | |
def convert_to_timedelta_updated_with_weeks(text): |
NewerOlder