This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!usr/bin/env python3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| struct node { | |
| int data; | |
| struct node *leftChild; | |
| struct node *rightChild; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |