Skip to content

Instantly share code, notes, and snippets.

View jamal919's full-sized avatar
🎯
Focusing

Jamal Uddin Khan jamal919

🎯
Focusing
View GitHub Profile
@jamal919
jamal919 / .minttyrc
Created December 29, 2017 04:03
CYGWIN minttyrc file
BoldAsFont=no
Font=Courier New
FontHeight=12
Rows=30
Term=xterm-256color
ForegroundColour=131,148,150
BackgroundColour=0,43,54
CursorColour=220,50,47
@jamal919
jamal919 / BTM.prj
Created February 18, 2018 08:53
Bangladesh Transverse Mercator Init File
+proj=tmerc +lat_0=0 +lon_0=90 +k=0.9996 +x_0=500000 +y_0=-2000000 +a=6377276.345 +b=6356075.41314024 +towgs84=283.7,735.9,261.1,0,0,0,0 +units=m +no_defs
@jamal919
jamal919 / ArchLinuxInstall.md
Created February 18, 2018 08:55
Arch Linux Installation Guide
			ArchLinux Install
			=================
  1. Disk Management ===================
  2. fdisk -l
  3. cfdisk /dev/sda -> see which drive to select from fdisk -l and create proper partitions.
  4. mkfs.ext4 /dev/sda2
  5. mount /dev/sda2 /mnt
  6. mkswap /dev/sda1
@jamal919
jamal919 / CentOS_After_Install.sh
Last active April 19, 2018 15:15
CentOS After Install Script
#!/bin/bash
yum install epel-release
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum update
yum install ntfs-3g epel-release
grub2-mkconfig -o /etc/grub2.cfg
yum install vlc
yum install gcc gcc-gfortran gcc-c++
yum install nco ncview
yum install netcdf netcdf-devel netcdf-fortran netcdf-fortran-devel hdf hdf-devel hdf5 hdf5-devel
@jamal919
jamal919 / MATLAB.desktop
Created February 18, 2018 09:19
MATLAB .desktop file
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=MATLAB2015a
Comment=Language of Scientific Computing
Exec=/usr/local/MATLAB/MATLAB_Production_Server/R2015a/bin/matlab -desktop
Path=/home/jamal/Documents/MATLAB
Icon=/home/jamal/.local/share/icons/matlab.png
Terminal=false
StartupWMClass=MATLAB
@jamal919
jamal919 / OceanScience.org
Last active April 15, 2022 06:25
Ocean Science Curriculum Booklist

Introduction to weather, climate and air pollution

Ahrens, C. D., Meteorology Today, 11th editions, Cengage, 2015

Data Analysis Method for Atmospheric and Oceanic Science

RudraPratap, Getting started with MATLAB, 1stEdition, Oxford, 2010.  Trauth, M., MATLAB Recipes for Earth Sciences, 3rd Edition, Springer 2010  Trauth, M. and E. Sillman, MATLAB and Design Recipes for Earth Sciences, 1st Edition, Springer, 2012  von Storch, H. and F.W. Zwiers, Statistical Analysis in Climate Research,1st Edition, Cambridge,2003  Wilks D.S., Statistical Methods in the Atmospheric Sciences. 3rd edition, Academic, 2010

@jamal919
jamal919 / google_earth_centos.sh
Created February 22, 2018 17:20
Google Earth Installation Script for CentOS Linux
#!/bin/sh
su
yum localinstall --nogpgcheck google-earth-stable_current_x86_64.rpm
yum install redhat-lsb.i686
rpm -ivh --force google-earth-stable_current_x86_64.rpm
yum reinstall filesystem
@jamal919
jamal919 / build_delft3d_ubuntu.sh
Created April 27, 2018 21:29
Delft3D Ubuntu Build Script
#!/bin/bash
# Tools and Exports
export ACLOCAL=/usr/bin/aclocal
export AUTOMAKE=/usr/bin/automake
export AUTOHEADER=/usr/bin/autoheader
export AUTOCONF=/usr/bin/autoconf
export LIBTOOLIZE=/usr/bin/libtoolize
export MPIFC="/usr/bin/mpif90"
export MPILIBS="-L/usr/lib/x86_64-linux-gnu"
@jamal919
jamal919 / github_ssh_config.md
Created July 29, 2018 09:40
SSH authentication in github

Create a repo and make some file

Generate ssh key:

ssh-keygen -t rsa -C "your_email@example.com"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings. Test SSH key:

ssh -T git@github.com
@jamal919
jamal919 / qgis_python_centos_fix.sh
Created August 18, 2018 04:54
QGIS Python fix on CentOS 7
# Fixing the python issue
cd ~/.qgis2/python/
mkdir QtWebKit Qsci
touch QtWebKit/__init__.py Qsci/__init__.py
echo "from PyQt4.QtWebKit import QWebView" > QtWebKit/QWebView.py
echo "from PyQt4.Qsci import QsciScintilla" > Qsci/qsciscintilla.py
# Fixing the admin/system issue
yum install qca-ossl