Skip to content

Instantly share code, notes, and snippets.

View rohitfarmer's full-sized avatar

Rohit Farmer rohitfarmer

View GitHub Profile
@rohitfarmer
rohitfarmer / nvim-singularity-demo.md
Last active April 25, 2024 22:29
Neovim in Singularity Container

How to run Neovim/VIM & Jupyter inside a Singularity Container for R Programming

Video tutorial at: https://youtu.be/j63OKiLpUec

Build a Singularity Container

To build a Singularity container copy the lines below to a Singularity.def recipe/definition text file and then execute sudo singularity build container.sif Singularity.def. For more information on how to build a Singularity containers follow the instructions in the README of https://github.com/rohitfarmer/singularity-defs or check out the documentation at https://sylabs.io/.

BootStrap: docker
From: debian:buster
@rohitfarmer
rohitfarmer / nvimr-demo.md
Last active June 13, 2025 14:37
Nvim-R Demo

How to use Neovim or VIM Editor as an IDE for R

Note: This tutorial is written for Linux based systems.

Requirements

R >= 3.0.0

To install the latest version of R please flollow the download and install instructions at https://cloud.r-project.org/

Neovim >= 0.2.0

Neovim (nvim) is the continuation and extension of Vim editor with the aim to keep the good parts of Vim and add more features. In this tutorial I will be using Neovim (nvim), however, most of the steps are equally applicable to Vim also. Please follow download and installation instructions on nvim's GitHub wiki https://github.com/neovim/neovim/wiki/Installing-Neovim.

@rohitfarmer
rohitfarmer / gcp.md
Created May 21, 2019 01:04
Google Cloud Platform
@rohitfarmer
rohitfarmer / tree.html
Created April 25, 2019 16:26 — forked from mitchellrj/tree.html
HTML & CSS vertical tree layout
<html>
<head>
<title>HTML &amp; CSS tree</title>
<!-- tree -->
<style type="text/css">
ul.tree {
overflow-x: auto;
white-space: nowrap;
}
@rohitfarmer
rohitfarmer / .bash_profile
Created April 11, 2019 17:52 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@rohitfarmer
rohitfarmer / ssh.md
Last active June 28, 2023 19:22
SSH

My SSH Cookbook

To generate an SSH key.

ssh-keygen

To transfer an SSH key to the remote computer.

ssh-copy-id -i ~/.ssh/mykey user@host

Add key to ssh agent.

For error:

@rohitfarmer
rohitfarmer / mac.md
Created April 10, 2019 15:05
Dealing with Mac OS X

Cut, copy, and paste

cmd + c # Copy
cmd + v # Paste
cmd + option + v # Move i.e. cut and paste

Inline CSS

<p style="text-align: justify; font-style: italic; font-weight: bold;">

Hyperlink

Open in a new tab <a href="url" target="_blank">Text</a>

@rohitfarmer
rohitfarmer / imagemagick.md
Last active March 14, 2019 21:43
Imagemagick

Stack Pictures Vertically
convert png_print/Accuracy_print.png png_print/AdaBoost_print.png -resize '1024x682^' -bordercolor black -border 2 -gravity center -append test.png

@rohitfarmer
rohitfarmer / gromacs.md
Created February 5, 2019 01:30
Gromacs

Gromacs 2019 installation on Dell (14 7000)

tar xfz gromacs-2019.tar.gz
cd gromacs-2019
mkdir build
cd build
cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_GPU=ON -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda -DCMAKE_INSTALL_PREFIX=/home/rohit/bin/gromacs/gromacs-2019
make
make check