Skip to content

Instantly share code, notes, and snippets.

View lordcirth's full-sized avatar
🏠
Working from home

Nathan Fish lordcirth

🏠
Working from home
  • University of Waterloo, CSCF
View GitHub Profile
-- run a full game turn, ie pre-turn, player turn, enemy turn, post-turn.
-- Currently, only the player exists.
fullGameTurn :: (Action) -> GameState -> GameState
fullGameTurn action gs
-- Player hasn't spent turn - free action or invalid
| not (result^.costsTurn) = result^.gameState
-- Player has spent turn - normal action completed
-- TODO: this is where to run enemy turns, etc
[WARNING ] 'quiet' is deprecated. Please migrate to --quiet
Exception occurred in runner virt.migrate: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/client/mixins.py", line 395, in _low
data['return'] = self.functions[fun](*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/runners/virt.py", line 481, in migrate
origin_host = list(origin_data.keys())[0]
KeyError: 0
[DEBUG ] LazyLoaded archive.extracted
[INFO ] Running state [/srv/tftp] at time 20:01:38.958265
[INFO ] Executing state archive.extracted for /srv/tftp
[DEBUG ] http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/netboot.tar.gz is not in cache, downloading it
[WARNING ] /usr/lib/python2.7/dist-packages/salt/states/file.py:1557: DeprecationWarning: Parameter 'env' has been detected in the argument list. This parameter is no longer used and has been replaced by 'saltenv' as of Salt 2016.11.0. This warning will be removed in Salt Oxygen.
[DEBUG ] Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 1836, in managed
**kwargs
File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 3748, in get_managed
master: {{pillar['common']['salt_master']}}
hash_type: sha256
# Salt Mine - retrieves data from minions to master
mine_functions:
ssh.host_keys:
# Only send pubkeys - very important!
private: False
No instance for (Functor f0) arising from a use of ‘creatures’
The type variable ‘f0’ is ambiguous
Relevant bindings include
player :: (Creature -> f0 Creature) -> GameState -> f0 GameState
(bound at src/GameState.hs:76:1)
Note: there are several potential instances:
instance Functor Data.Complex.Complex
-- Defined in ‘base-orphans-0.5.4:Data.Orphans’
instance Functor Identity -- Defined in ‘Data.Functor.Identity’
instance Functor f => Functor (Data.Monoid.Alt f)
No instance for (Functor f0) arising from a use of ‘creatures’
The type variable ‘f0’ is ambiguous
Relevant bindings include
player :: (Creature -> f0 Creature) -> GameState -> f0 GameState
(bound at src/GameState.hs:75:1)
Note: there are several potential instances:
instance Functor (Const m) -- Defined in ‘Control.Applicative’
instance Control.Arrow.Arrow a =>
Functor (Control.Applicative.WrappedArrow a b)
-- Defined in ‘Control.Applicative’
# -*- coding: utf-8 -*-
'''
Management of NFS exports
===============================================
.. code-block:: yaml
To ensure an NFS export exists:
add_export:
[LOG 20:10:22.795] [HighLogic]: =========================== Scene Change : From FLIGHT to FLIGHT =====================
[LOG 20:10:22.818] Camera Mode: AUTO
[LOG 20:10:23.362] KbApp.OnDestroy Vessel Info
[LOG 20:10:23.362] [Dynamic Battery Storage]: Refreshing data from Vessel event
[LOG 20:10:23.362] [Dynamic Battery Storage]: Trying to clear buffer storage
[LOG 20:10:23.363] [Dynamic Battery Storage]: Located storage on mk1pod with 100 inital EC
[LOG 20:10:23.363] [Dynamic Battery Storage]: Summary:
vessel mk1pod (loaded state True)
- 4 stock power producers
- 1 stock power consumers
# Packages that are installed on all hosts and require no setup
common_install_utils:
pkg.installed:
- pkgs:
- openssh-server
# Needed for apt-add-repository, etc
- python-software-properties
- python-pycurl
- python-apt
@lordcirth
lordcirth / ceph.conf
Created September 13, 2017 19:30
Ceph config to use ZFS > 0.7 xattrs
[osd]
filestore_max_inline_xattrs = 10
filestore_max_inline_xattr_size = 65536
filestore_max_xattr_value_size = 65536
osd_journal_size = 30720