Skip to content

Instantly share code, notes, and snippets.

View abhi18av's full-sized avatar
:octocat:
(to-infinity-and-beyond!)

Abhinav Sharma abhi18av

:octocat:
(to-infinity-and-beyond!)
View GitHub Profile
@abhi18av
abhi18av / example.groovy
Created December 5, 2023 07:07 — forked from jagedn/example.groovy
GroovyScript + Datomic
// Dont know why but it requires java 17 fx
// sdk install 17.0.8.fx-zulu
// sdk use java 17.0.8.fx-zulu
@Grapes([
@Grab(group='org.scalamolecule', module='datomic-client-api-java-scala_2.13', version='1.0.3'),
@Grab(group='com.datomic', module='local', version='1.0.267'),
@Grab(group='com.cognitect', module='http-client', version='1.0.126'),
])
@abhi18av
abhi18av / create-azure-batch-pool-nf.py
Created December 16, 2022 13:08 — forked from wikiselev/create-azure-batch-pool-nf.py
A script to configure (file share and blob container mounting) and create an Azure Batch pool suitable for Nextflow Tower.
from azure.identity import DefaultAzureCredential
from azure.mgmt.batch import BatchManagementClient
import os
from dotenv import load_dotenv
import sys
load_dotenv()
AZURE_SUBSCRIPTION_ID = os.getenv('AZURE_SUBSCRIPTION_ID')
AZURE_BATCH_RESOURCE_GROUP_NAME = os.getenv('AZURE_BATCH_RESOURCE_GROUP_NAME')
@abhi18av
abhi18av / remove-git-lfs.md
Created December 1, 2022 10:34 — forked from everttrollip/remove-git-lfs.md
Removing git lfs from (any) repository

So, it has been an interesting journey, but time to remove git-lfs. Here follows a summary of the approach I used to safely remove git-lfs,

  • commit & push everything
  • create a branch, something like fix/remove-lfs
  • remove hooks git lfs uninstall
  • remove lfs stuff from .gitattributes (open file, delete content - don't delete the file!)
  • list all lfs files, git lfs ls-files
  • run git rm --cached for each file
    • if your list is big, copy the contents into a file.txt
  • make sure you remove the number and asterik on each line, you only want the paths to the files
@abhi18av
abhi18av / curl-command.sh
Created May 9, 2022 11:25
curl-command.sh
curl \
--retry 5 --continue-at - --max-time 1200 \
-L ftp.sra.ebi.ac.uk/vol1/fastq/SRR870/008/SRR8703878/SRR8703878_1.fastq.gz \
-o SRX5499459_SRR8703878_1.fastq.gz
@abhi18av
abhi18av / main.nf
Created July 9, 2021 13:48 — forked from rpetit3/main.nf
bactopia-wrapper-nextflow
#! /usr/bin/env nextflow
import groovy.json.JsonSlurper
import groovy.text.SimpleTemplateEngine
import groovy.util.FileNameByRegexFinder
import java.nio.file.Path
import java.nio.file.Paths
import nextflow.util.SysHelper
PROGRAM_NAME = workflow.manifest.name
VERSION = workflow.manifest.version
@abhi18av
abhi18av / keybase.md
Created October 26, 2020 08:37
keybase.md

Keybase proof

I hereby claim:

  • I am abhi18av on github.
  • I am abhi18av (https://keybase.io/abhi18av) on keybase.
  • I have a public key ASDMWQdFu718vj6Kq7l8j79EkpSrqWXsOgxMZmg7b2FHEgo

To claim this, I am signing this object:

@abhi18av
abhi18av / Genomics_A_Programmers_Guide.md
Created August 22, 2020 14:16 — forked from andy-thomason/Genomics_A_Programmers_Guide.md
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@abhi18av
abhi18av / README.md
Created August 11, 2020 10:04 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack
@abhi18av
abhi18av / otherLanguage.nf
Created June 7, 2020 09:59
otherlanguage in nextflow
#!/usr/bin/env nextflow
/*
################
NEXTFLOW Global Config
################
*/
params.outdir = "results"
@abhi18av
abhi18av / sort.scm
Created January 15, 2020 15:32 — forked from tomonacci/sort.scm
All sorts of sorting algorithms written in Scheme (Gauche)
(use srfi-27)
(use srfi-42)
(define-macro (swap! a b)
(let1 t (gensym)
`(let1 ,t ,a
(set! ,a ,b)
(set! ,b ,t))))
(define (bubble-sort v)