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 / 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 / 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 / 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)
@abhi18av
abhi18av / binary_tree_1.scm
Created January 15, 2020 15:32 — forked from zallarak/binary_tree_1.scm
Binary trees in Scheme
; sets as unordered lists:
; a set for now is defined as as being able
; to undergo the following operations
; 1) element-of-set? checks if x is in set
(define (element-of-set? x set)
(cond ((null? set) false)
((equal? x (car set)) true)
(else (element-of-set? x (cdr set)))))

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

Update 7/28/2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section