Skip to content

Instantly share code, notes, and snippets.

@bayoishola20
bayoishola20 / troubleshoot.sh
Created November 6, 2019 20:27
VMware workstation Linux wifi troubleshoot
sudo gedit /etc/network/interfaces
# add the below lines to the file
auto ens33
iface ens33 inet dhcp
## add the above
sudo ifup ens33
@bayoishola20
bayoishola20 / setup.sh
Last active October 25, 2019 15:57
Ubuntu on VMWare
# Setting up virtualization - Android development
## power off kernel instance
sudo apt install qemu-kvm`
sudo chown -R bayo:bayo /dev/kvm`
ls -al /dev/kvm` # this lists
@bayoishola20
bayoishola20 / GIS Setup
Last active September 19, 2019 00:31
QGIS 3.4.* ltr, postres/postgis/pgadmin
# QGIS LTR (3.4.*) - Bionic Beaver (18.4.*)
$ wget -O - https://qgis.org/downloads/qgis-2019.gpg.key | gpg --import
$ gpg --fingerprint 51F523511C7028C3
$ gpg --export --armor 51F523511C7028C3 | sudo apt-key add -
$ sudo nano /etc/apt/sources.list # add the next lines in the file
deb https://qgis.org/debian-ltr bionic main
@bayoishola20
bayoishola20 / aws-postgres
Created April 27, 2019 16:04
AWS Postgres Linux
psql \
-f restore.sql \
--host xxx.xxx.us-east-2.rds.amazonaws.com \
--port 5432 \
--username [username] \
--password [password] \
--dbname AWSdb
@bayoishola20
bayoishola20 / node-postgres-heroku.sh
Created April 8, 2018 02:18
Deploying node-postgres app on heroku
## Git initialization
`$ git init`
## Heroku create app
`$ heroku create map-app`
## Assigning remote target
`$ heroku git:remote map-app`
## Confirm
@bayoishola20
bayoishola20 / QGIS 2.* - Ubuntu.sh
Created February 23, 2018 06:44
QGIS installations and issues tricks.
#If you have issues with importing the future package upon starting QGIS, you would most likely need these.
`sudo pip install future`
`sudo pip install urllib3`
`sudo pip install numpy`
`sudo pip install chardet`
# Remove file from git history
$ git rm --cached file.txt
@bayoishola20
bayoishola20 / firefox_developer_installation.sh
Created February 4, 2018 22:11
Firex developer edition installation ubuntu 16.04
# After downloading file from official site for Ubuntu LInux distro, where "firefox-59.0b6.tar.bz2" is file downloaded
$ tar xjf firefox-59.0b6.tar.bz2
# To ensure no firefox directory in opt
$ sudo rm -r /opt/firefox
# Move extracted file in step 1
@bayoishola20
bayoishola20 / geodjango-heroku.sh
Last active June 5, 2021 19:56
geodjango-heroku deploy
## Active virtual environment
`$ source bin/activate`
## Git initialization
`$ git init`
## Heroku create app
`$ heroku create map-app`
## Assigning remote target