Skip to content

Instantly share code, notes, and snippets.

View AetherUnbound's full-sized avatar
🏳️‍🌈
Queer-coding data

Madison Swain-Bowden AetherUnbound

🏳️‍🌈
Queer-coding data
View GitHub Profile
@opnchaudhary
opnchaudhary / phash_install.sh
Last active September 27, 2017 07:06
installing pHash
wget https://github.com/sdepold/pHash/archive/master.zip
unzip master.zip
cd pHash-master
./configure --enable-video-hash=no --enable-audio-hash=no
make
make install
cd bindings/php
./configure --disable-video_hash --disable-audio_hash
#!/bin/bash
set -e -u
wget -q http://packages.leonerd.org.uk/pool/main/x/xseticon/xseticon_0.1-0leo1_amd64.deb
mkdir tmp
dpkg -x xseticon_0.1-0leo1_amd64.deb tmp
mkdir -p ~/.local/bin
@oinopion
oinopion / read-access.sql
Created October 5, 2016 13:00
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;