Skip to content

Instantly share code, notes, and snippets.

View sagarr's full-sized avatar
👨‍💻
% no comment %

Sagar Rohankar sagarr

👨‍💻
% no comment %
View GitHub Profile
@sagarr
sagarr / read-access.sql
Created October 5, 2018 09:49 — forked from oinopion/read-access.sql
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;
@sagarr
sagarr / howto_gis_ubuntu.md
Created August 25, 2018 10:12 — forked from ansell/howto_gis_ubuntu.md
Ubuntu-16.04/Mint-18 GIS hackery

Add ubuntugis PPA:

$ sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

Add POSTGIS repository:

$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
@sagarr
sagarr / cuda-dl-setup.sh
Last active January 11, 2018 08:45 — forked from payshangjj/waya-dl-setup.sh
Install CUDA Toolkit v8.0 and cuDNN v6.0 on Ubuntu 16.04
#!/bin/bash
# install CUDA Toolkit v8.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network))
CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb"
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-get update
sudo apt-get install cuda-8-0