Skip to content

Instantly share code, notes, and snippets.

@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) अजीवात्य,
@shantanuo
shantanuo / scan.py
Created November 27, 2023 08:55
GIta Repeat phrases
# copy paste plain text from site to file gg.txt
# https://sanskritdocuments.org/doc_giitaa/bhagvadnew.html
# Bhagvad Gita takes around 4 hours to scan
import re, sys
with open('gg.txt') as f:
mytext = f.read()
mytext2 = re.sub('\n', ' ', mytext)
@shantanuo
shantanuo / sanskrit_sandhi
Created May 14, 2023 09:55
sandhi reference table based on panini rules
a,b,c,d
ृ,अ,र,244509
ृ,अं,रं,6280
ृ,आ,रा,37141
ृ,इ,रि,21326
ृ,ई,री,9213
ृ,उ,रु,11076
ृ,ऊ,रू,5206
ृ,ए,रे,12990
ृ,ऐ,रै,1739
@shantanuo
shantanuo / new_lang.aff
Created February 8, 2023 03:35
affix file for a new language
SET UTF-8
NOSPLITSUGS
PFX A Y 1
PFX A 0 a .
PFX B Y 1
PFX B 0 b .
PFX C Y 1