Skip to content

Instantly share code, notes, and snippets.

@magicrobotmonkey
magicrobotmonkey / multitouch.sh
Last active January 15, 2017 05:14
How to get some OSX like multi-touch gestures working on Linux Mint with Cinnamon.
#This is how I got some of the window management gestures working on linux mint with the cinnamon frontend:
#install your stuff
sudo apt-get install xorg-xserver-mtrack xbindkeys xdotool
#fix mtrack conf
sudo mv /usr/share/X11/xorg.conf.d/50-mtrack.conf /usr/share/X11/xorg.conf.d/60-mtrack.conf
#configure xbindkeys
(
@magicrobotmonkey
magicrobotmonkey / gist:c05e271c94a6a193afc38ad86f009097
Created December 20, 2017 15:13
use ansible to wait for a pg db to come up and start accepting connections
- name: wait for db to come up
shell: until /usr/bin/pg_isready; do sleep 1; done
args:
executable: /bin/bash
changed_when: false
delegate_to: "{{ database_host }}"
become_user: postgres
run_once: true
@magicrobotmonkey
magicrobotmonkey / gist:268520c8293fc8e53f87fd2f645232c1
Created January 31, 2018 14:45
ansible and postgres starting and stopping
# handy for waiting for postgres to restore/catch up to master
- name: wait for db to come up
shell: until /usr/bin/pg_isready; do sleep 1; done
args:
executable: /bin/bash
changed_when: false
delegate_to: "{{ database_host }}"
become_user: postgres
run_once: true
FROM osgeo/gdal:ubuntu-small-latest
RUN apt-get update && \
apt-get install -y python3-dev python3-pip
RUN pip install --upgrade pip
RUN pip install wheel
RUN pip install mapa
ENTRYPOINT jupyter notebook /usr/local/lib/python3.8/dist-packages/mapa/mapa.ipynb --allow-root --ip 0.0.0.0
# docker run --rm -it -p 8888:8888 mapa