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
## 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 <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
#!/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
## 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
### 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
setEPS() | |
postscript("example.eps") | |
nm=c(98.45, 97.58, 98.75, 96.92, 99.41) | |
bag=c(56.23, 72.14, 72.73, 85.78, 87.10) | |
coat=c(16.93, 45.45, 41.50, 68.11, 55.13) | |
data=matrix(c(nm,bag,coat), ncol=3) | |
colnames(data)=c("normal", "bag", "coat") | |
rownames(data)=c("GEI+PCA", "SPAE", "GaitGAN", "PTSN", "Proposed") |
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
### command: sl (Steam Locomotive) :-) :-) | |
sudo apt-get install sl | |
# This command works even when you type โLSโ and not โlsโ. | |
#### CMatrix is a simple program that shows the cool matrix scrolling lines in the terminal. | |
sudo apt-get install cmatrix | |
# for running cmatrix type | |
#cmatrix |
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 contains commands used in my everyday life | |
### compressing a file | |
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file | |
# -c: create an archive. | |
# -z: compress the archive with gzip. | |
# -v: verbosity | |
# -f: allows you to specify the filename of the archive |
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 | |
# Instructions for installing necessary packages for running machine learning projects in Ubuntu machine | |
# first update and upgrade your system | |
sudo apt-get update | |
sudo apt-get install build-essential cmake g++ gfortran git pkg-config python-dev python3-tk software-properties-common wget | |
# install pip3 for working on python 3 | |
sudo apt-get install python3-pip | |
pip3 install --upgrade pip |