Skip to content

Instantly share code, notes, and snippets.

View shantanuo's full-sized avatar

Shantanu Oak shantanuo

  • oksoft
  • mumbai
View GitHub Profile
@shantanuo
shantanuo / LibrePythonista-docker-linuxserver-libreoffice.md
Last active March 18, 2025 04:20 — forked from Amourspirit/LibrePythonista-docker-linuxserver-libreoffice.md
Running LibrePythonista in linuxserver/libreoffice docker

Running LibrePythonista in linuxserver/libreoffice docker

In order to install LibrePythonista in linuxserver/libreoffice docker (Alpine) image py3-pip must be installed.

Create a docker and a docker-compose.yml files and place them in the same folder. Use the contents from the examples below.

Note that volumes are optional. If you want to follow this yml file on Linux or Mac then create a folder in your home folder named vm_shared and that folder will be shared with you docker image.

volumes:
 - ~/vm_shared:/vm_shared # Mount ~/vm_shared to /vm_shared inside the container
@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 \