Make clan war be a turned-based tower defense minigame. Towers and tower upgrades have an escalating cost so larger clans don't have an advantage. Each player gets one clan attack a day if they are participating and can attack either a random clan for material rewards or a specific clan for bragging rights points (similar to PvP).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fqdn "FQDN" | |
postgresql['external'] = true | |
postgresql['vip'] = 'EXTERNAL_PG_IP' | |
postgresql['db_superuser'] = 'DB_SUPERUSER' | |
postgresql['db_superuser_password'] = 'DB_SUPERUSER_PASSWORD' | |
opscode_solr4['external'] = true | |
opscode_solr4['external_url'] = 'http://EXTERNAL_ES_IP:9200' | |
opscode_erchef['search_provider'] = 'elasticsearch' | |
opscode_erchef['search_queue_mode'] = 'batch' | |
bookshelf['storage_type'] = :sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyUnicorn | |
# Subclass the resource. | |
class Resource < PoiseApplicationRuby::Resources::Unicorn::Resource | |
# Give it a new name so we can find it. | |
provides(:my_unicorn) | |
# Add a new property. Could do more here. | |
property(:listen) | |
end | |
# Subclass the provider. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
from __future__ import print_function | |
import argparse | |
import re | |
import sys | |
import attr | |
import cv2 | |
import numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remote file or directory proxy object. | |
# | |
# @since 1.0.0 | |
class File | |
# Create a proxy object. All data is lazy-loaded so this does very little. | |
# | |
# @param connection [Airlift::Connection] Connection object to use for | |
# operations. | |
# @param path [String] File or directory path. | |
# @param follow_symlink [Boolean] Follow symlinks when getting file info. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'openssl' | |
require 'tempfile' | |
require 'fog' | |
BUCKET = 'something' | |
ROOT = File.expand_path('..', __FILE__) | |
UNIVERSE = {} |
I hereby claim:
- I am coderanger on github.
- I am coderanger (https://keybase.io/coderanger) on keybase.
- I have a public key whose fingerprint is AF25 8FBF 2D56 96D9 5764 0543 445B 6255 C512 B26E
To claim this, I am signing this object:
Learning to write high-quality Chef cookbooks can be a daunting prospect. There are few resources and little documentation. Let's dive in to the best practices to build usable, maintainable, and delightful Chef cookbooks. We'll cover the structure of great cookbooks for new and experienced Chefs alike.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chef/knife' | |
module Poise | |
class Travis < Chef::Knife | |
include Chef::Mixin::ShellOut | |
deps do | |
require 'yaml' | |
require 'kitchen' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEMORY = '<memory>' | |
class FuckItEncoder(json.JSONEncoder): | |
def default(self, obj): | |
try: | |
return json.JSONEncoder.default(self, obj) | |
except RuntimeError: | |
return '<recur>' | |
except MemoryError: | |
return MEMORY | |
except TypeError: |