Skip to content

Instantly share code, notes, and snippets.

View mkeen's full-sized avatar
🇺🇲
build first, sell later / hr’s most wanted

Mike Keen mkeen

🇺🇲
build first, sell later / hr’s most wanted
  • Florida
  • 21:42 (UTC -05:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mkeen on github.
  • I am mkeen (https://keybase.io/mkeen) on keybase.
  • I have a public key ASB9HLggDsnu7f3ZM0Su1hGHEMcDYJuGZYDNUSsI7WgviAo

To claim this, I am signing this object:

GENERATED_TALLIES1 = lambda {{ # total, max
diamond: [0, 1],
gold: [0, 2],
silver: [0, 3],
bronze: [0, 4],
white: [0, 5],
black: [0, 5],
green: [0, 6],
blue: [0, 6],
yellow: [0, 6],
{:moneybag=>
{:generate=>
#<Proc:0x000055c830d32d38 /home/mkeen/Code/belvedere/nfts/cardopoly/sbin/generate-assets.rb:8 (lambda)>,
:tally=>
{:diamond=>[1, 1],
:gold=>[2, 2],
:silver=>[3, 3],
:bronze=>[4, 4],
:white=>[5, 5],
:black=>[5, 5],
@mkeen
mkeen / metadata.json
Last active December 29, 2021 12:46
Cardopoly Mint
{"valueParameterInfo":[["Price",{"valueParameterFormat":{"contents":[6,"₳"],"tag":"DecimalFormat"},"valueParameterDescription":"The price of the item."}]],"slotParameterDescriptions":[["Payment deadline","The _**buyer**_ must pay the _price_ of the item by this time, otherwise the contract is cancelled."],["Complaint deadline","The _**buyer**_ can only complain until this deadline, otherwise the contract will assume the transaction went smoothly and pay the _**seller**_."],["Complaint response deadline","If the _**buyer**_ complained, the _**seller**_ must respond before this deadline, otherwise the contract will assume there was a problem with the transaction and refund the _**buyer**_."],["Mediation deadline","If the _**buyer**_ and the _**seller**_ disagree, the _**mediator**_ must weigh in before this deadline, otherwise the contract will assume there was a problem with the transaction and refund the _**buyer**_."]],"roleDescriptions":[["Buyer","The buyer of the item."],["Mediator","The mediator decides w

Keybase proof

I hereby claim:

  • I am mkeen on github.
  • I am codetrapper (https://keybase.io/codetrapper) on keybase.
  • I have a public key ASArfxAg8HZqAwuGoPa3pzf7ioHjjxDCWbiWam8dayXTvgo

To claim this, I am signing this object:

{% set couchdb_nodes = salt['mine.get']('G@roles:couchdb and not G@roles:haproxy', 'private_ip', tgt_type='compound').items() | sort(attribute=0) %}{% if grains['id'] != 'couchdb-a' %}{% set couch_uuids = salt['mine.get']('roles:couchdb', 'uuid', tgt_type='grain') %}{% if couch_uuids['couchdb-a'] %}[couchdb]
uuid = {{ couch_uuids['couchdb-a'] }}{% endif %}{% endif %}
[couchdb]
database_dir = /mnt/storage
[log]
file = /var/log/couchdb2/couch.log
level = error
writer = file
extend:
/usr/local/etc/filebeat.yml:
file.managed:
- context:
specific_log_files:
- /var/log/couchdb2/couch.log
/usr/local/etc/salt/minion.d/mine.conf:
file.managed:
- source: salt:///files/salt/mine.couchdb.jinja.conf
begin
self.work
rescue
self.toke
retry
end
def display_name(name.capitalize)
puts name
end
Socket.ip_address_list.detect(&:ipv4_private?).try(:ip_address)