Skip to content

Instantly share code, notes, and snippets.

View hiraksarkar's full-sized avatar

Hirak Sarkar hiraksarkar

View GitHub Profile
#!/bin/bash
## This gist contains instructions about cuda v11.2 and cudnn8.1 installation in Ubuntu 20.04 for Pytorch 1.8 & Tensorflow 2.7.0
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
@hiraksarkar
hiraksarkar / spacemacs-keybindings
Created June 12, 2019 03:00 — forked from adham90/spacemacs-keybindings
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@hiraksarkar
hiraksarkar / spacemacs-cheshe.md
Last active October 1, 2018 16:20 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC f e d - open .spacemacs file
  • SPC f e R - reload .spacemacs file
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
@hiraksarkar
hiraksarkar / bamfilter_oneliners.md
Created May 30, 2018 14:40 — forked from davfre/bamfilter_oneliners.md
SAM and BAM filtering oneliners
@hiraksarkar
hiraksarkar / ncbi_url.py
Created January 12, 2018 19:56 — forked from apfejes/gist:95405620abb347e1abc87d5708dbc003
A script for NCBI SRA downloads.
import argparse
default_prefix = "ftp.sra.ebi.ac.uk/vol1/fastq/"
ascp_prefix = "ftp.sra.ebi.ac.uk:/vol1/fastq/"
default_protocol = "ftp://"
default_suffix = "*.fastq.gz"
default_ascp_line = "ascp -QT -l 300m -i ~/.ssh/asperaweb_id_dsa.openssh [email protected]:{} {}"
def prepare_url(srr_name, prefix):
a = [1,4,5,10]
cache = {}
for i in a:
cache[i] = 1
counter = 0
#okay khub bhalo code hoyeche
def coin(x):
if not x in cache: