Skip to content

Instantly share code, notes, and snippets.

View mster429's full-sized avatar
🏠
Working from home

Mahendra Bandara mster429

🏠
Working from home
  • Rhino Partners Pvt Ltd
  • Sri Lanka
  • 02:54 (UTC +05:30)
View GitHub Profile
#!/bin/bash
sudo apt-get install build-essential libssl-dev
version=3.20.1
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$version/cmake-$version.tar.gz
tar -xzvf cmake-$version.tar.gz
cd cmake-$version/
./bootstrap
make
#!/bin/bash
sudo apt install build-essential git cmake pkg-config \
libbz2-dev libxml2-dev libzip-dev libboost-all-dev \
lua5.2 liblua5.2-dev libtbb-dev
OSRM_VERSION="5.24"
git clone https://github.com/Project-OSRM/osrm-backend.git
cd osrm-backend
git checkout ${OSRM_VERSION}
mkdir -p build
cd build
@mster429
mster429 / osrm-centos-7.sh
Last active October 1, 2023 08:12
Shell script to install osrm service is centos 7
#!/bin/bash
OSRM_VERSION="5.24"
#Colours
GREEN='\e[32m'
YELLOW='\e[33m'
NC='\033[0m' # No Color
#Install dependencies
@mster429
mster429 / net_usage.sh
Last active May 19, 2024 17:51
Get data usage on linux top bar
#!/bin/bash
wget https://humdi.net/vnstat/vnstat-latest.tar.gz
tar zxvf vnstat-latest.tar.gz
sudo apt install build-essential libgd-dev check pkg-config autotools-dev libsqlite3-dev
sudo ./configure --prefix=/usr --sysconfdir=/etc && sudo make
sudo make install
sudo cp -v examples/systemd/vnstat.service /etc/systemd/system/
sudo systemctl enable vnstat
sudo systemctl start vnstat