Skip to content

Instantly share code, notes, and snippets.

View anikde's full-sized avatar

Anik De anikde

  • IIT Jodhpur
  • Kailashahar, Tripura, India
  • 09:19 (UTC +05:30)
  • LinkedIn in/anik-de
View GitHub Profile
@anikde
anikde / tif_to_combined_pdf.sh
Last active August 23, 2024 07:45
Shell script to convert tif file to pdf and then combine the list of pdfs to a single pdf
#!/bin/bash
# Check if the correct number of arguments is provided
if [ "$#" -ne 3 ]; then
echo "Usage: $0 <path/to/dir/of/tif/images> <path/to/output_pdf_directory> <path/to/final_combined_pdf>"
exit 1
fi
# Assign arguments to variables
input_dir="$1"
@anikde
anikde / txt
Last active December 3, 2023 10:25
Conda Tensorflow2.8 installation with tfq
#conda env cuda11.2 cudnn8.1.0 tf2.8.0 tfq0.7.2
conda create --name=tf python=3.9
conda activate tf
conda install -c conda-forge cudatoolkit=11.2.2 cudnn=8.1.0
python3 -m pip install tensorflow==2.8.0
mkdir -p $CONDA_PREFIX/etc/conda/activate.d
echo 'export LD_LIBRARY_PATH=$CONDA_PREFIX/lib/:$CUDNN_PATH/lib:$LD_LIBRARY_PATH' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
@anikde
anikde / install-docker.sh
Last active November 28, 2022 16:15
Docker Installation
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
# Put the user in the docker group
sudo usermod -a -G docker $USER
newgrp docker
#!usr/bin/env python3
//Circular Queue Implementation in C using Array !
#include<stdio.h>
#include<stdlib.h> //header file for using return and exit function
#define max 5 //symbolic constant
void insert();
int delete();
void display();
#include <stdio.h>
#include <stdlib.h>
struct node {
int data;
struct node *leftChild;
struct node *rightChild;
};
@anikde
anikde / gist:adff9ddbf9484300a520f676c980b4f0
Created January 8, 2021 19:12
Setting Up Lamp Server
# Reference Article https://ubuntu.com/server/docs/lamp-applications
# LAMP (Linux + Apache + MySQL + PHP/Perl/Python) can used to setup servers in Ubnutu.
# Popular substitutes for MySQL include PostgreSQL and SQLite. Python, Perl, and Ruby are also frequently used instead of PHP.
# While Nginx, Cherokee and Lighttpd can replace Apache.
# The fastest way to get started is to install LAMP using tasksel.
sudo tasksel instal lamp-server
# phpMyAdmin is a LAMP application specifically written for administering MySQL servers.
sudo apt install phpmyadmin