Skip to content

Instantly share code, notes, and snippets.

View alaminopu's full-sized avatar
🏠
Working from home

Md Al Amin alaminopu

🏠
Working from home
View GitHub Profile
provider "aws" {
region = "us-east-1"
}
resource "aws_lambda_function" "my_fastapi_app" {
filename = "my_fastapi_app.zip"
function_name = "my-fastapi-app"
role = aws_iam_role.lambda_exec.arn
handler = "main.app"
runtime = "python3.8"
bitbucket_pipeline_schedule.scan_ecr_images: Creating...
2022-12-14T00:18:24.285+0100 [INFO] Starting apply for bitbucket_pipeline_schedule.scan_ecr_images
2022-12-14T00:18:24.285+0100 [DEBUG] bitbucket_pipeline_schedule.scan_ecr_images: applying the planned Create change
2022-12-14T00:18:24.286+0100 [INFO] provider.terraform-provider-bitbucket_v2.24.0: 2022/12/14 00:18:24 [DEBUG] Pipeline Schedule Request: &bitbucket.PipelineSchedule{Type_:"", Uuid:"", Enabled:true, Target:(*bitbucket.PipelineRefTarget)(0x140002da780), CronPattern:"0 0 * * *", CreatedOn:<nil>, UpdatedOn:<nil>}: timestamp=2022-12-14T00:18:24.286+0100
2022-12-14T00:18:24.843+0100 [ERROR] provider.terraform-provider-bitbucket_v2.24.0: Response contains error diagnostic: diagnostic_summary="error creating pipeline schedule: 404 Not Found" tf_proto_version=5.3 @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:55 @module=sdk.proto diagnostic_detail= tf_rpc=ApplyResourceChange diagnostic_severity=ERRO

Keybase proof

I hereby claim:

  • I am alaminopu on github.
  • I am alaminopu (https://keybase.io/alaminopu) on keybase.
  • I have a public key whose fingerprint is 9D67 2FA5 F920 395C 9E3E 33DB 676A 0693 89FB 7C0E

To claim this, I am signing this object:

@alaminopu
alaminopu / Apple_mobile_device_types.txt
Created July 23, 2020 22:56 — forked from adamawolf/Apple_mobile_device_types.txt
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)
@alaminopu
alaminopu / board_game
Created December 13, 2019 18:07
Board_game
# O.X
# OOX
# XXO
#
def winner(board, entity):
winner = False
# check for circle and column first for
@alaminopu
alaminopu / docker-compose.yaml
Last active September 11, 2017 18:42
wpbackitup development docker compose file.
version: '3.1'
services:
wordpress:
build: .
restart: always
links:
- mysql
ports:
@alaminopu
alaminopu / file_copier.py
Created January 2, 2017 11:19
Copy all files from a directory and its sub-directory to another common directory.
import os
import shutil
src = 'upload';
dest = 'guitars'
src_files = os.listdir(src)
for path_name in src_files:
full_path = os.path.join(src, path_name)
@alaminopu
alaminopu / Torrent_Cleaner.go
Last active December 18, 2016 18:09
A simple go program to delete 7 days old torrent file.
package main
import (
"fmt"
"io/ioutil"
"strings"
"time"
"os"
)
@alaminopu
alaminopu / enum_view.py
Last active October 18, 2016 09:51
Django Enums to JSON
import importlib
from inspect import isclass
from rest_framework.response import Response
from rest_framework.views import APIView
def enum_to_json(module_name, data):
module_name = importlib.import_module(module_name)
classes = [x for x in dir(module_name) if
@alaminopu
alaminopu / export.py
Last active December 4, 2015 17:27
Export yahoo mail to Excel file.
#!/usr/bin/env python
import imaplib, email
import xlsxwriter
from BeautifulSoup import BeautifulSoup
# email login section
username = 'your email username'
password = 'your password'
url = "imap.mail.yahoo.com"