Skip to content

Instantly share code, notes, and snippets.

@akhayyat
akhayyat / ansible.cfg
Last active February 25, 2024 22:02
Test Consul Connect and Envoy
[defaults]
interpreter_python = /usr/bin/python3
@akhayyat
akhayyat / gist:4239032
Created December 8, 2012 07:00
CMS Schema
# Base Models
###############
Publishable: # abstract
"""
The most basic entity. If something is not publishable, it has no business
being in this app. A publishable entity does not have to have any content or
address: it can be a link, or a part of a page.
"""
title: CharField
@akhayyat
akhayyat / schema
Created September 18, 2011 19:28
event system
User settings
=============
-- Resource type: most general defaults
-- A resource is an item for which an event can occur
-- The importance attributes assigns general priorities
-- Example resource types: port, cpu, temp sensor
TABLE resource_type:
resource_type_id (PK) , name (string) ,
alert_warning (bool) , alert_critical (bool) ,