Skip to content

Instantly share code, notes, and snippets.

@wxguy
wxguy / perfect-desktop-debian-9.txt
Last active May 25, 2019 19:38
My perfect desktop - Debian 9 (Streach)
My perfect desktop - Debian 9 (Streach)
#######################################
Installation image:
-------------------
Download non-free version of debian ISO file from below link. Don't download version 9.0.0 as it contain bug which won't allow you to install on a disk. I choose to download LXDE desktop as it consumens less memory, responsive and perfectly OK for me.
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/
Enable sudo and root user account and password:
-----------------------------------------------
@wxguy
wxguy / centos-pygrib
Created August 5, 2017 17:49
Installing pygrib on Cent OS 7/ Redhat 7
Cent OS does not ship with pygrib module by default. The only way to install is to run from source or using distributions such as
conda. I succeed installing pygrib using pip and here is the documentation for future reference.
# Install all required libraries.
sudo yum install grib_api-* *jasper* libpng *zlib* *gfortran* libpng-* python-pip pyproj jpeg python-grib_api
# Install pygrin using pip
sudo pip install pygrib
Please remember that if you get some xxxxxx.h is missing error, then you have install xxxxxx-devel package.
@wxguy
wxguy / metutils.py
Created June 4, 2020 17:36 — forked from VincentLoy/metutils.py
some weather utilities functions
#!/usr/bin/env python
"""
Tropical Cyclone Risk Model (TCRM) - Version 1.0 (beta release)
Copyright (C) 2011 Geoscience Australia
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@wxguy
wxguy / taylorDiagram.py
Created September 19, 2021 12:11 — forked from ycopin/taylorDiagram.py
Taylor diagram for python/matplotlib.
#!/usr/bin/env python
# Copyright: This document has been placed in the public domain.
"""
Taylor diagram (Taylor, 2001) implementation.
Note: If you have found these software useful for your research, I would
appreciate an acknowledgment.
"""
@wxguy
wxguy / wgrib2_auto_compile_script.sh
Last active March 1, 2024 18:45
A small bash script to compile wgrib2 from source on Ubuntu OS...
#!/bin/bash
# License for this script is GNU 2
# A small bash script to download, compile and install latest wgrib2 from source.
# I have written this script so that I can automate the proceedure whenever I change Linux OS
# Make it executable before running the script using'chmod +x ./wgrib2_auto_compile_script.sh'
# Ensure to run the script with sudo (sudo ./wgrib2_auto_compile_script.sh) or under root environment