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
### install latex for writing research paper | |
sudo apt-get update | |
sudo apt-get install texlive | |
# for extra (language) packages type following command instead of above | |
sudo apt-get install texlive-full | |
# Other useful packages (** optional) | |
# don't install if you have one or less space in disk | |
sudo apt-get install ibus |
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
## Upgrading ubuntu from 16.04LTS to 18.04LTS using command line | |
# first update previous version | |
sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt autoremove | |
# update manager core | |
sudo apt install update-manager-core | |
# make prompt=lts if not in following file | |
sudo nano /etc/update-manager/release-upgrades |
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 | |
### steps #### | |
# Verify the system has a cuda-capable gpu | |
# Download and install the nvidia cuda toolkit and cudnn | |
# Setup environmental variables | |
# Verify the installation | |
### | |
### to verify your gpu is cuda enable check |
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> | |
#include <math.h> | |
// function for concatenation | |
char* concat(const char *s1, const char *s2) | |
{ | |
char *result = malloc(strlen(s1) + strlen(s2) + 1); // +1 for the null-terminator | |
strcpy(result, s1); |
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
## This gist contains step by step instructions of installing canon LBP3300 printer driver on ubuntu 18.04 machine | |
## After a couple of months painful trying, i finally got it successfully installed on my 18.04 ubuntu machine. | |
## Here is the requirement | |
# 1) For 64 bit linux version install necessary the libraries | |
# 2) install the official CAPT drivers | |
# 3) register the printer with lpadmin | |
# 4) register the printer with the ccpd daemon | |
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 <stdint.h> | |
#include <string.h> | |
//#include <stdlib.h> | |
int main(int argc, char* argv[]) | |
{ | |
uint32_t lfsr = 0xACE1ACE1u; | |
unsigned period = 0; |
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 | |
# This gist preprocess goa dataset of over 543M samples (~94 GB) to around 170M samples with selected column (~6 GB) for research | |
# removing first 8 lines | |
sed -i '1,8d' goa_uniprot_all.gaf | |
# putting NA to missing values | |
sed -i "s/\t\t/\tNA\t/g" goa_uniprot_all.gaf | |
# making string to one single world | |
sed -i 's/ /-/g' goa_uniprot_all.gaf |
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
""" | |
@Author: Md Mahedi Hasan | |
""" | |
# python modules | |
import re, random | |
import os, glob | |
from skimage import io, util | |
from scipy import ndarray, ndimage | |
from PIL import Image | |
import PIL |
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
# first, install netctl if not already installed. | |
sudo pacman -S netctl | |
# to find out network card name; check | |
ip link | |
### configuring Static IP address | |
# my network card name is enp0s3. Now, copy the sample network card profile | |
sudo cp /etc/netctl/examples/ethernet-static /etc/netctl/enp0s3 |
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 | |
# Openpose required CMake version >= 3.12 | |
# remove previous verison | |
sudo yum remove cmake | |
# set new version | |
version=3.14 | |
build=6 |