Skip to content

Instantly share code, notes, and snippets.

View prvn-pa's full-sized avatar

P. A. Praveen prvn-pa

View GitHub Profile
@prvn-pa
prvn-pa / mkdocs-installation.md
Last active May 3, 2024 22:19
Steps to create a documentation site using mkdocs

How to create a documentation page using mkdocs and github pages?

Note: When trying to install using pip would leads to environment error. Avoid it using, sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old .

  1. Installation:
    • use pip install mkdocs to install the package
  2. Create a project:
    • use mkdocs new project-name
    • then cd projec-name
    • it is better to first create a github repository gh repo create user-name/project-name
@prvn-pa
prvn-pa / limit-battery-charge-level.md
Created January 23, 2024 01:33
limit-battery-charge-level

laptop - How can I limit battery charging to 80_ capacity - Ask Ubuntu

  • Install TLP:

    sudo add-apt-repository ppa:linrunner/tlp
    sudo apt update
    sudo apt install tlp
    
    <span class="hljs-comment"># Check what package needed for battery:</span>
    
@prvn-pa
prvn-pa / pdfannots.md
Last active July 24, 2023 08:20
Installation and usage guide for pdfannots

Installation and Usage Guide for pdfannots

When dealing with PDF files, many readers, including Linux's default evince (such as in the case of Manjaro), offer convenient options to highlight text and add comments directly within the document. However, one drawback of this approach is that the added annotations are stored within the specific PDF file, making it challenging to extract the annotated text separately. This limitation becomes apparent when you want to extract the highlighted information for reference, analysis, or sharing with others.

In the past, to address this issue, I relied on a tool called PDF Studio, which provided comprehensive features for handling PDF annotations and text extraction. However, since I don't frequently require text extraction, I sought a more streamlined solution that wouldn't burden me with unnecessary complexities.

My search led me to discover an elegant and efficient command-line tool called pdfannots. It is a Python package designed to simplify the process of e

@prvn-pa
prvn-pa / subsclean.md
Last active April 12, 2023 10:30
Substrate etching and cleaning procedure

Substrate Cleaning Procedure

// {type:state}
// {generate:true}

(start)[Step 1]->(Treat in Piranha solution for 3 sec)
(Treat in Piranha solution for 3 sec)[Step 2]->(Rinse in DD water for 10 sec)
(Rinse in DD water for 10 sec)[Step 3]->(Air Blow)
(Air Blow)[Step 4]-&gt;(Hot air blow)
@prvn-pa
prvn-pa / conky-rc-gist.md
Last active July 25, 2021 14:09
conky-rc

My Conky Setup - Minimal

# --------------------------------------------------------------------------------------------- #
#
# .conkyrc - derived from various examples across the 'net
#
# Some of the sites that proved most usful include:
#   http://mylinuxramblings.wordpress.com/2010/03/23/how-to-configure-the-conky-system-monitor/`
#   http://crunchbanglinux.org/wiki/conky
# http://lusule.wordpress.com/2008/08/07/how-to-4/

Linking A Custom Domain To Github Pages

STEP 1

Make sure you have domain. I use Google Domains.

STEP 2

Go to Github username.github.io repository. Then to settings and left side there should be an option called Pages. In which enter your doman name and save.

@prvn-pa
prvn-pa / web2epub.md
Last active June 28, 2021 18:04
Download a webpage and convert it to EPUB

WEB PAGE TO EPUB CONVERSION

1. USING WGET AND PANDOC

  1. Create a list with the links to be downloaded. Name it something like list.txt
  2. Now download entire site data using the command wget -E -H -k -p -i list.txt
  3. Now all the data should be available offline.
  4. Go to html files folder and issue the command pandoc -i filename-*.html -o filename.epub
  5. Alternatively creat an 'index.html' file and include all the links in the body of the file. Like <a href="https://venmurasu.in/mazhaippadal/chapter-5">1</a>
  6. Now use calibre to convert the index.html to EPUB by ebook-convert index.html book.epub --title Title --authors Author --cover cover.png
@prvn-pa
prvn-pa / orca-tdm.md
Created September 17, 2020 05:17
TDM Calculations - ORCA

Transition Dipole moment calculation using ORCA:

Current latest version, namely version 3.6(dev) of Multiwfn is able to calculate transition dipole moment between excited states based on ORCA output.

First, conduct a CIS or TDA-DFT calculation using keywords like below, assume that file name is test.inp ! PBE0 def2-SVP nopop pal4 %tddft nroots 4 tprint 1E-8 end

@prvn-pa
prvn-pa / miui.md
Created August 1, 2020 14:52
Steps to disable system apps particularly in MIUI devices

How to disable unwanted system apps in MIUI

1. Enable developer options in mobile

  • Open Settings > About Phone
  • Tap 7 times MIUI Build to become Developer
  • Go to Advanced Options > Devloper Options
  • Enable USB Debugging
  • Now connect the mobile to the system
  • Open mobile and Accept Enable USB Debugging Mode
@prvn-pa
prvn-pa / git.md
Last active June 9, 2020 16:43
Git Tutorial

Collaboration with Git

This small tutorial briefly gives and minimal idea about git and its usage.

Prerequisites:

  • Valid github account
  • git installed machine