Skip to content

Instantly share code, notes, and snippets.

@shantanuo
shantanuo / vruddhi.py
Created May 18, 2024 04:00
python implementation of vruddhi
import re
vruddhi = {'अ': 'आ', 'इ': 'ऐ', 'ई': 'ऐ', 'उ': 'औ', 'ऊ': 'औ', 'ए': 'ऐ', 'ओ': 'औ',
'ि': 'ै', 'ी': 'ै', 'ु': 'ौ', 'ू': 'ौ', 'े': 'ै', 'ो': 'ौ',
'क': 'का', 'ख': 'खा', 'ग': 'गा', 'घ': 'घा', 'ङ': 'ङा',
'च': 'चा', 'छ': 'छा', 'ज': 'जा', 'झ': 'झा', 'ञ': 'ञा',
'ट': 'टा', 'ठ': 'ठा', 'ड': 'डा', 'ढ': 'ढा', 'ण': 'णा',
'त': 'ता', 'थ': 'था', 'द': 'दा', 'ध': 'धा', 'न': 'ना',
'प': 'पा', 'फ': 'फा', 'ब': 'बा', 'भ': 'भा', 'म': 'मा',
'य': 'या', 'र': 'रा', 'ल': 'ला', 'व': 'वा', 'श': 'शा',
@shantanuo
shantanuo / no_layer.txt
Created April 30, 2024 03:26
Not able to donload the layer
(base) root@ip-172-31-3-83:/home/ubuntu# sudo su
(base) root@ip-172-31-3-83:/home/ubuntu# aws lambda get-layer-version-by-arn --arn "arn:aws:lambda:us-east-1:770693421928:layer:Klayers-p310-requests:9"
{
"Content": {
"Location": "https://prod-04-2014-layers.s3.us-east-1.amazonaws.com/snapshots/770693421928/Klayers-p310-requests-63863d72-9062-42da-bd3a-8ee8dd97fe13?versionId=96Wij2.WkyCQ8yZFbzZKVl0PjdP2fp6Y&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMv%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQCfcChy6WR7O40ahThxzPpjr0JSa2C1Me9hWTRlfwPdSwIgIDylvjAGCHaSJE7X%2Bmar3on6%2FXBqqQMaOmoECbspfpQqsAUIJBAAGgw3NDk2Nzg5MDI4MzkiDMotZFmIVLZnyxFzuyqNBUK8KE%2BG%2FjX5JkLCn8f%2F%2FkcTWu7c721mj5r3hR%2FOtERw44GRigXDa5trwSFr8a%2BGGD5poRXYNycVHcB00ns8B13sqHbmW5MpDxjC52MMSidwI9atP0eAfLf8Sazk1nDebYkvt27w2SFTaBKWK6%2BrO3FUM%2Fv2%2BGcQafpL%2FS57%2FV3LefrEifilVzVmnkJSxZVwXvvwkXBHmSnLJaAQ8FXhUqXNczxamEEAcqHojP61mFGzzDjQWvAUIMNixNUw4dnN%2BC8flOvXXV%2FJ6ZBM84vOjDphWVX4d%2F26YEKTsotSlsE02N13UJYIv0l5jgt5ByYsY6d1SmB4tUIkLlU1K
@shantanuo
shantanuo / find_and_remove.txt
Last active April 28, 2024 07:52
remove space
Sub ReplaceList
PolishReplace("ला")
PolishReplace("चा")
PolishReplace("ची")
PolishReplace("चे")
PolishReplace("च्या")
PolishReplace("हून")
PolishReplace("साठी")
End Sub
@shantanuo
shantanuo / toolbarMode.xcu
Created April 8, 2024 11:05
Change the libreoffice apps default toolbars to ribbon that looks like Microsoft Office
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data oor:name="ToolbarMode" oor:package="org.openoffice.Office.UI"
xmlns:oor="http://openoffice.org/2001/registry"
xmlns:xs="http://www.w3.org/2001/XMLSchema" >
<!-- Change the default user interface
default #Classic menu/toolbar
notebookbar.ui #MS Office ribbon clone
Other options are Single, Sidebar, notebookbar_compact.ui, notebookbar_groupedbar_compact.ui, notebookbar_single.ui
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shantanuo
shantanuo / kbd_sortcuts.txt
Created January 10, 2024 09:57
Need to remove ctrl + s shortcut instead of replacing it
<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:install="http://openoffice.org/2004/installation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="Accelerators" oor:package="org.openoffice.Office">
<node oor:name="PrimaryKeys">
<node oor:name="Modules">
<node oor:name="com.sun.star.text.TextDocument">
<node oor:name="V_SHIFT_MOD1" oor:op="replace">
<prop oor:name="Command">
<value xml:lang="en-US">.uno:PasteUnformatted</value>
</prop>
@shantanuo
shantanuo / four_times_repeated.log
Created December 28, 2023 03:46
DynamoDB Query fails twice out of 4 hits
INIT_START Runtime Version: python:3.11.v24 Runtime Version ARN: arn:aws:lambda:us-east-1::runtime:a5ffc62d98071fc767e6f8abc670b5036a0f5a683f0bbc6cb1bac14de89647bf
START RequestId: 23802916-46a1-4a53-814a-7fc52d6e5186 Version: $LATEST
END RequestId: 23802916-46a1-4a53-814a-7fc52d6e5186
REPORT RequestId: 23802916-46a1-4a53-814a-7fc52d6e5186 Duration: 1598.01 ms Billed Duration: 1599 ms Memory Size: 128 MB Max Memory Used: 75 MB Init Duration: 283.32 ms
START RequestId: f959cde0-3814-4b95-b3c1-da47b3b974ea Version: $LATEST
@shantanuo
shantanuo / most_popular.txt
Created December 17, 2023 09:17
forms like भवति, भवेत, भविष्यति are popular
भवति
भवतः
भवन्ति
भवसि
भवथः
भवथ
भवामि
भवावः
भवामः
बभूव
@shantanuo
shantanuo / compare.txt
Created December 9, 2023 06:19
extra space added by awk
# cat file
azoted "adj. Chem. अजीवातिय,
1.(nitrogenised—combined or impregnated with nitrogen or its compounds)
अजीवाति-योजित, -व्यापित,
2.(nitrogenous—of, pertaining to, or containing nitrogen)
अजीवातिय, अजीवाति-युत"
azo-tetrazole Chem. अज-चतुरजवा
azo-thionium Chem. अज-गन्धतातु
azotic "adj. (pertaining to azote) अजीवातिय,
1.(nitrogenous) अजीवात्य,