Skip to content

Instantly share code, notes, and snippets.

View chiemerieezechukwu's full-sized avatar
🎯
Focusing

Chiemerie Ezechukwu chiemerieezechukwu

🎯
Focusing
View GitHub Profile
{"schemaVersion":1,"label":"Code Coverage","message":"100%","color":"green","namedLogo":"GitHub Actions"}
@chiemerieezechukwu
chiemerieezechukwu / template.yaml
Created January 31, 2022 12:34
CloudFormation ApiGateway and Lambda with PATH_PART
AWSTemplateFormatVersion: '2010-09-09'
Description: Setup AWS Lambda integrated with ApiGateway
Parameters:
apiGatewayName:
Type: String
Default: test_rest_api
apiGatewayStageName:
Type: String
Default: test
lambdaFunctionName:
from datetime import timedelta
from django.conf import settings
from django.contrib.auth import get_user_model
from django.utils import timezone
import jwt
User = get_user_model()

Keybase proof

I hereby claim:

  • I am chiemerieezechukwu on github.
  • I am chiemerie_e (https://keybase.io/chiemerie_e) on keybase.
  • I have a public key whose fingerprint is DCFC E35F D2E0 BB6C 99A4 D698 480A E957 6669 4BFF

To claim this, I am signing this object:

Curl with Java KeyStore

Curl doesn't have support for java keystore file, so therefor the file should be converted to a PEM format. It consists of the following multiple steps:

  1. Convert keystore to p12 file
  2. Convert p12 file to pem file
  3. Run curl command with pem files

Convert keystore to p12 file

keytool -importkeystore -srckeystore truststore.jks -destkeystore truststore.p12 -srcstoretype JKS -deststoretype PKCS12
@chiemerieezechukwu
chiemerieezechukwu / snippet.md
Created November 24, 2022 11:00
Solve M1 `Error: Incompatible provider version`

Error -> Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64

To fix using tfenv

brew install tfenv
TFENV_ARCH=amd64 tfenv install 1.3.3
tfenv use 1.3.3