Skip to content

Instantly share code, notes, and snippets.

@abhijit86k
abhijit86k / config
Created May 17, 2021 10:48
SSH Config File Example
#Based on the example at
#https://linuxize.com/post/using-the-ssh-config-file/
#Retrieved on March 17, 2021
Host surya
HostName 192.168.8.99 surya.example.com
User git
Port 5122
IdentityFile ~/.ssh/surya
@abhijit86k
abhijit86k / Markdown Styles Sample
Created May 1, 2021 09:09
A template of all markdown style syntax elements that can be used to test any Markdown processing system.
---
This file is a template of all markdown style syntax elements that can be used to test any Markdown processing system.
This file is adapted from the example at [markdown-it](http://markdown-it.github.io/)
---
# h1 Heading
Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>
## h2 Heading
Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>
@abhijit86k
abhijit86k / Abhijit86k-Workflows-1.txt
Created March 15, 2021 10:31
Abhijit86k: Workflows 1: VirtualBox Installation
#Commands referenced in my VirtualBox Installation walkthrough video
sudo apt-get update
sudo apt-get dist-upgrade --assume-yes
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O - | sudo apt-key add -
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian focal contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
@abhijit86k
abhijit86k / MediaWikiToMarkdown.sh
Created February 25, 2021 21:10
Convert Mediawiki Page to Markdown
#!/bin/bash
# On Ubuntu 20.04 or equivalent
# Install pandoc: sudo apt-get install pandoc
pandoc -f mediawiki -o output-file.md input-file.mediawiki
@abhijit86k
abhijit86k / calibre.service
Created April 14, 2020 05:22 — forked from jbeley/calibre.service
Avahi service file for calibre e-book server
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!-- See avahi.service(5) for more information about this configuration file -->
<!-- See https://code.google.com/archive/p/openpub/wikis/DeprecatedOPDSSpecification.wiki for OPDS spec -->
<service-group>
<name>Calibre</name>
<service>
<type>_opds._tcp</type>
<port>8080</port>
<host-name>myhostname.local</host-name>
@abhijit86k
abhijit86k / darktable_installer_A6400.sh
Last active September 5, 2019 14:29
Install script for building latest Darktable on Ubuntu 18.04
#!/bin/bash
### Notice and Usage information
echo "This script is provided only as a list of reference commands and is not intended to be executed as is."
echo " "
echo "Please open this script with a text editor, then read and execute the commands line by line as appropriate"
echo " "
echo "Exiting now"
exit
@abhijit86k
abhijit86k / 4 Pin Xtal CB3LV
Created November 25, 2016 15:54
gSCHEM Symbol for 4 pin Crystal Osc
v 20130925 2
P 1100 500 1400 500 1 0 1
{
T 1150 550 5 8 1 1 0 0 1
pinnumber=3
T -50 450 5 8 0 0 0 0 1
pinseq=3
T 750 450 5 8 1 1 0 0 1
pinlabel=OUT
T -50 450 5 8 0 1 0 0 1
@abhijit86k
abhijit86k / Instructions
Last active August 29, 2015 14:01
Automatic Stock Quote fetch using gnucash and Perl F::Q
Read this carefully and completely before you run the commands!
1. First, tell crontab to run the update script periodically. Run crontab -e as user (not root!) and add this line: (replace your username, naturally)
0 9,11,13,15 * * 1,2,3,4,5 /home/username/bin/gnucashstockupdate /path/to/gnucash-accounts/file.gnucash >> /path/to/gnucash-accounts/file/PriceUpdate.log
2. Copy the accompanying script gnucashstockupdate to ~/bin and make it executable
3. Copy the accompanying script gnucashgetquotes to ~/bin and make it executable
4. Done! The crontab entry I have given will attempt to fetch updates on all weekdays at 9, 11, 1, 3 o'clock - which fits the tmings of our exchange. For international quotes change as desired.