Skip to content

Instantly share code, notes, and snippets.

View pranavmishra90's full-sized avatar

Pranav Kumar Mishra pranavmishra90

View GitHub Profile
@pranavmishra90
pranavmishra90 / .gitattributes
Created April 24, 2024 21:38
Datalad gitattributes for git-annex
# Dataset root directory gitattributes file
#------------------------------------------------
* annex.backend=MD5E
**/.git* annex.largefiles=nothing
metadata/aggregate* annex.largefiles=nothing
metadata/objects/** annex.largefile=(anything)
# Directories to exclude from git-annex
#------------------------------------------------
@pranavmishra90
pranavmishra90 / environment.yml
Last active July 16, 2023 05:49
A single-cell RNA sequencing environment in python
name: scRNAseq
channels:
- conda-forge
- bioconda
- nvidia
dependencies:
- python=3.10
- IPython=8.14
- ipykernel=6.23
- ipywidgets=8.0
@pranavmishra90
pranavmishra90 / initialize-gpg.sh
Last active January 26, 2023 07:58
Initializing a new GPG keyring
# Create a new GPG keyring
gpg -K
# Change ownership of the GnuPG directory
sudo chown -R $(whoami) ~/.gnupg/
# Change directory permissions so that only the owner has read/write access to files and enter into the directory
sudo find ~/.gnupg -type f -exec chmod 600 {} \;
sudo find ~/.gnupg -type d -exec chmod 700 {} \;
@pranavmishra90
pranavmishra90 / keybindings.json
Created November 3, 2022 22:05
VSCode Keybindings
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+e",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args":
{"snippet": "<span class='abnormallab'>${TM_SELECTED_TEXT}</span>"}
},
{
@pranavmishra90
pranavmishra90 / zero-out-erase-windows
Created October 26, 2022 22:38
Secure erase (zero out) external drive [Windows Command Prompt]
format D: /fs:FAT32 /p:1
@pranavmishra90
pranavmishra90 / recursively_list_files_and_sort.ps1
Created October 3, 2022 21:48
PowerShell - Recursively list files and sort by date modified
# Use the following snippet of code in a directory to list files, recursively, and then sort them by date modified.
gci -file -recurse | select LastWriteTime, Fullname | sort lastwritetime -Descending