Skip to content

Instantly share code, notes, and snippets.

View flowstate's full-sized avatar

Eric Hibbs flowstate

View GitHub Profile
///@desc draw inventory menu
var _inventoryRows = 5; //***update to dynamically match inventoryCapacity
var _inventoryCols = 4;
var _inventorySlotSprite = spInventorySlot;
var _highlightedInventorySlotSprite = spInventorySlotHighlighted;
var _inventorySlotWidth = sprite_get_width(_inventorySlotSprite);
var _inventorySlotHeight = sprite_get_height(_inventorySlotSprite)
var _itemsInInventory = ds_list_size(oControllerEntity.player.inventory);
@flowstate
flowstate / MessageStore.js
Created September 14, 2018 01:29
MST / FireStore syncing approach
import { Person } from "./PersonStore";
const Message = t.model("MessageModel", {
id: t.identifier,
author: t.late(() => t.reference(Person)),
body: t.string,
title: t.string,
toPeople: t.array(t.late(() => t.reference(Person))),
read: false
})
{% set target = pillar.get('target', '') %}
{% for svc_name in pillar.get('services') %}
install service {{ svc_name }}:
salt.function:
- name: state.sls
- tgt: {{ target }}
- tgt_type: grain
- arg:
- config.supervised
Ensure myapp-myinstance launch_config exists:
boto_lc.present:
- name: myapp-myinstance-lc
- image_id: ami-d05e75b8
- key_name: trendkite-master-052914
- security_groups:
- myapp
- instance_type: m3.large
- instance_monitoring: false
- profile: myprofile
myrole:
boto_iam_role.present:
- region: us-east-1
- key: GKTADJGHEIQSXMKKRBJ08H
- keyid: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
- policies_from_pillars:
- shared_iam_bootstrap_policy
- policies:
MySQSPolicy:
Statement:
[WARNING ] Stopping the Salt Minion
[WARNING ] Exiting on Ctrl-c
[INFO ] The salt minion is shut down
[root@ip-10-0-10-5 venv]# vim etc/salt/minion
[root@ip-10-0-10-5 venv]# salt-minion -c ./etc/salt -l debug
[DEBUG ] Reading configuration from /vol2/jenkins/jobs/salt-build/venv/etc/salt/minion
[DEBUG ] Configuration file path: /vol2/jenkins/jobs/salt-build/venv/etc/salt/minion
[INFO ] Setting up the Salt Minion "salt-jenkins"
[DEBUG ] Created pidfile: /vol2/jenkins/jobs/salt-build/venv/var/run/salt-minion.pid
[DEBUG ] Reading configuration from /vol2/jenkins/jobs/salt-build/venv/etc/salt/minion
/srv:
salt:
top.sls
tomcat.sls
# directory structure:
/srv/salt:
top.sls
tomcat.sls