Skip to content

Instantly share code, notes, and snippets.

View sipatha's full-sized avatar
😌
learning Go.

Sipatha Shoko sipatha

😌
learning Go.
View GitHub Profile
@sipatha
sipatha / install-grafana.md
Created July 17, 2020 23:39
Install grafana
@sipatha
sipatha / install-extra-fonts-erpnext.sh
Last active September 9, 2021 20:05
The default fonts on Ubuntu server are not the best for PDF generation. This gist installs Google & Microsoft fonts and sets a default a better default font.
# some prerequistes
sudo apt-get install -y libxrender1 libfontconfig1 libx11-dev libjpeg62 libxtst6 libglib2.0-bin -y
# only run if you want use libreoffce as well
sudo add-apt-repository ppa:libreoffice/ppa -y
sudo apt install libreoffice -y
# add restricted repositories
sudo add-apt-repository universe
sudo add-apt-repository multiverse
@sipatha
sipatha / keybase.md
Last active June 13, 2020 18:21
Keybase Verification

Keybase proof

I hereby claim:

  • I am sipatha on github.
  • I am sipatha (https://keybase.io/sipatha) on keybase.
  • I have a public key whose fingerprint is CE8D 7EFB 9F3B 6450 05D2 5045 F72A DB74 4AF5 E680

To claim this, I am signing this object:

@sipatha
sipatha / upgrade-erpnext-version11-to-version12.sh
Last active October 20, 2020 05:15
Upgrade ERPNext version 11 to version 12
# ensure all software is installed and upgraded
sudo apt-get install software-properties-common openssl build-essential libssl-dev python3-minimal python3-setuptools python3-dev python3-pip curl wget git git-core libffi-dev fonts-cantarell liblcms2-dev libldap2-dev libwebp-dev redis-server ttf-mscorefonts-installer -y --no-install-suggests --no-install-recommends
# clean software repos
sudo apt-get clean
# upgrade virtualenv package to latest version
pip install --upgrade virtualenv
# upgrade pip package to latest version
@sipatha
sipatha / switch-bench-site.sh
Created March 5, 2019 07:16
Switch frappe site
# this switchs the current to a new site, useful for multisite development
bench use site1.local
@sipatha
sipatha / new_erpnext_install.sh
Last active March 27, 2023 08:11
New ERPNext version 12 Installation on Ubuntu 18.04.4 LTS
# you have isnatlled ubuntu 18.04 LTS (supported until April 2023 at the time of writing 02.02.2020)
# up date server
sudo apt-get update
# upgrade all packages
sudo apt-get upgrade
# ensure python 3, build packages and other required packages are installed
sudo apt-get install software-properties-common openssl build-essential libssl-dev python3-minimal python3-setuptools python3-dev python3-pip curl wget git git-core libffi-dev fonts-cantarell liblcms2-dev libldap2-dev libwebp-dev redis-server -y --no-install-suggests --no-install-recommends