Skip to content

Instantly share code, notes, and snippets.

@shantanuo
shantanuo / gist:0589d6b08137e9e755dc6d26eddbd008
Created February 11, 2025 11:18
LIbreoffice writer Style to format Marathi text
Sub myStyle()
' Get access to the document
Dim document As Object
Dim styleFamilies As Object
Dim paraStyles As Object
Dim newStyle As Object
Dim styleName As String
Dim cursor As Object
document = ThisComponent
@shantanuo
shantanuo / unsupported.csv
Created February 1, 2025 05:54 — forked from jsoncow/unsupported.csv
Unsupported AWS Service Quotas
ServiceCode ServiceName QuotaCode QuotaName
AWSCloudMap AWS Cloud Map L-D95E8A57 Instances per namespace
AWSCloudMap AWS Cloud Map L-2DA90E5C Instances per service
AWSCloudMap AWS Cloud Map L-D589BB26 Custom attributes per instance
account AWS Account Management L-E37B66F4 Number of concurrent region-opt requests per account
account AWS Account Management L-33A0F311 Number of concurrent region-opt requests per organization
acm AWS Certificate Manager (ACM) L-DA1D8B98 ACM certificates created in last 365 days
acm AWS Certificate Manager (ACM) L-D2CB7DE9 Imported certificates
acm AWS Certificate Manager (ACM) L-FB94F0B0 Domain names per ACM certificate
acm AWS Certificate Manager (ACM) L-F141DD1D ACM certificates
@shantanuo
shantanuo / unsupported.csv
Created February 1, 2025 05:54 — forked from jsoncow/unsupported.csv
Unsupported AWS Service Quotas
AWSCloudMap AWS Cloud Map L-D95E8A57 Instances per namespace
AWSCloudMap AWS Cloud Map L-2DA90E5C Instances per service
AWSCloudMap AWS Cloud Map L-D589BB26 Custom attributes per instance
account AWS Account Management L-E37B66F4 Number of concurrent region-opt requests per account
account AWS Account Management L-33A0F311 Number of concurrent region-opt requests per organization
acm AWS Certificate Manager (ACM) L-DA1D8B98 ACM certificates created in last 365 days
acm AWS Certificate Manager (ACM) L-D2CB7DE9 Imported certificates
acm AWS Certificate Manager (ACM) L-FB94F0B0 Domain names per ACM certificate
acm AWS Certificate Manager (ACM) L-F141DD1D ACM certificates
@shantanuo
shantanuo / fetch-aws-spotprice.bash
Created January 5, 2025 07:43 — forked from alexanderdavidsen/fetch-aws-spotprice.bash
Bash script to fetch AWS spot pricing
#!/bin/bash
# Colors
BLUE='\033[0;34m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
BOLD='\033[1m'
import uno
import argparse
from com.sun.star.beans import PropertyValue
from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK
def replace_newline(document):
search = document.createSearchDescriptor()
search.SearchString = '\\n'
search.SearchRegularExpression = True
@shantanuo
shantanuo / english_words.txt
Created September 20, 2024 05:18
common English words written in Devanagari that contain ऑ like डॉक्टर
अँटिबॉडी
अँड्रॉइड
बॉम्ब
अथॉरिटी
फॉलो
लॉक
अपॉइंटमेंट
अवॉर्ड
अॅट्रॉसिटी
अॅमेझॉन
@shantanuo
shantanuo / myevent.json
Created September 6, 2024 09:08
response from function triggered by S3 upload
{
"Records": [
{
"eventVersion": "2.1",
"eventSource": "aws:s3",
"awsRegion": "us-east-1",
"eventTime": "2024-09-06T09:04:31.604Z",
"eventName": "ObjectCreated:Put",
"userIdentity": {
"principalId": "AWS:AROAUMZZHU37XXRU2T:telto3again"
@shantanuo
shantanuo / basane.txt
Created September 3, 2024 08:04
all forms of verb बसणे
बसणे
बसविणे
बसवितो
बसविते
बसवितोस
बसवितेस
बसविता
बसवितात
बसवितील
बसवित
@shantanuo
shantanuo / Dockerfile
Created August 25, 2024 07:28
Dockerfile for Playwright on AWS Lambda
# Define function directory
ARG FUNCTION_DIR="/function"
FROM mcr.microsoft.com/playwright:v1.46.1-jammy as build-image
# Install aws-lambda-cpp build dependencies
RUN apt-get update && \
apt-get install -y \
g++ \
make \
@shantanuo
shantanuo / spell_check.py
Created June 10, 2024 07:15
Spell check sanskrit wikipedia article using aws lambda function
import re
import boto3
import json
from botocore.config import Config
# https://sa.wikipedia.org/w/index.php?title=भारतीयवायुसेना&diff=486781&oldid=484146
command2 = """भारतीया वायुसेना भारतस्य सशस्त्रसेनायाः कश्चन भागः । सर्वकारीयसुरक्षामन्त्रालयेन नियन्त्रिता इयं संस्था आकाशयुद्धम्,
# copy paste from:
# https://sa.wikipedia.org/wiki/भारतीयवायुसेना