Remove sophos keychain
sudo rm /Library/"Sophos Anti-Virus"/SophosSecure.keychainDisable sophos
sudo defaults write /Library/Preferences/com.sophos.sav TamperProtectionEnabled -bool falseRemove sophos keychain
sudo rm /Library/"Sophos Anti-Virus"/SophosSecure.keychainDisable sophos
sudo defaults write /Library/Preferences/com.sophos.sav TamperProtectionEnabled -bool false| [ | |
| { | |
| "Source": "my.application", | |
| "DetailType": "TestEvent", | |
| "Detail": "{\"message\": \"Hello World\"}", | |
| "EventBusName": "default" | |
| }, | |
| { | |
| "Source": "my.application", | |
| "DetailType": "MyAppEvent", |
| #!/bin/bash | |
| # put an alias in your .gitconfig to where the script lives: co-repo = ~/.bin/git-checkout-repo.sh | |
| # don't forget to `chmod +x` it | |
| # Input Git repository URL | |
| REPO_URL="$1" | |
| # Define the target base directory (where all projects should reside) | |
| TARGET_BASE_DIR=~/Projects |
source: https://www.sccbrasil.com/blog/aws/cdk-api.html
By Wolfgang Unger
Lets have a look how to create a API Gateway with CDK (Python) The first approach is using the RestApi Class and code the resources and methods. The second by using a Swagger/Open API file. Both APIs will use lambda integrations.
| date | close | |
|---|---|---|
| 2007-04-23 | 93.24 | |
| 2007-04-24 | 95.35 | |
| 2007-04-25 | 98.84 | |
| 2007-04-26 | 99.92 | |
| 2007-04-29 | 99.8 | |
| 2007-05-01 | 99.47 | |
| 2007-05-02 | 100.39 | |
| 2007-05-03 | 100.4 | |
| 2007-05-04 | 100.81 |
| #!/bin/sh | |
| # set the table list for "DrawTable" "GameTable" "PlayroundTable" | |
| TABLE_NAMES="DrawTable GameTable PlayroundTable" | |
| # API_ID="asdasdadajsdljalskdjalksdj" | |
| # use the following command to get the list of functions | |
| # FUNCTION_FILE=$(aws appsync list-functions --api-id "$API_ID") | |
| FUNCTION_FILE="list_functions_full.json" | |
| rm -rf resolvers |
| import * as util from 'util'; | |
| const url = 'https://bitbucket.org/example-org/example-repo'; | |
| let address = new URL(url); | |
| console.log(address); | |
| class BitbucketRepo extends URL { | |
| public readonly organisation: string; |
| interface MyOptions { | |
| dirs: string[]; | |
| length?: number; | |
| yaml?: boolean; | |
| name?: string; | |
| } | |
| const options1: MyOptions = { | |
| dirs: ['src', 'test'], | |
| length: 88, |
| import click | |
| from loguru import logger | |
| @click.command() | |
| @click.option( | |
| "-d", | |
| "--debug", | |
| is_flag=True, | |
| help="Enable debug mode. Prints debug messages to the console.", | |
| ) |
| import sys | |
| import json | |
| from pathlib import Path | |
| from collections import OrderedDict | |
| from typing import Optional | |
| import boto3 | |
| from botocore.exceptions import ClientError | |
| import click | |
| from loguru import logger | |
| import oyaml as yaml |