Skip to content

Instantly share code, notes, and snippets.

Robin Skahjem-Eriksen ironhouzi

  • Norway
Block or report user

Report or block ironhouzi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:044bdf68dd5297bcfb91
authorizedkeys:
image: 'tutum/authorizedkeys:latest'
autodestroy: always
deployment_strategy: every_node
environment:
- 'AUTHORIZED_KEYS=ssh_keys_go_here
tags:
- estage_manager
- staging
volumes:
View Makefile
LOCAL_DOCKER_IP = 192.168.99.100
STAGING_IP = xx.xxx.xxx.xxx
PRODUCTION_IP = xx.xxx.xxx.xxx
STAGING_DB_ID = $(shell ssh root@xx.xxx.xxx.xxx "docker ps | grep database" | awk '{print $$1}')
PRODUCTION_DB_ID = $(shell ssh root@xx.xxx.xxx.xxx "docker ps | grep database" | awk '{print $$1}')
download_production_db:
psql -h $(LOCAL_DOCKER_IP) -p 5432 -U postgres -c 'drop database estage_manager'
psql -h $(LOCAL_DOCKER_IP) -p 5432 -U postgres -c 'create database estage_manager'
View ultisnips_py_console
global !p
import string, vim
import textwrap
_snips_fns = {}
def py(*args):
import re
old_a = vim.eval('@a')
You can’t perform that action at this time.