I hereby claim:
- I am hosh on github.
- I am hosh (https://keybase.io/hosh) on keybase.
- I have a public key whose fingerprint is 4F16 11A6 0573 ACDB 6695 A803 C33D 336C 2601 19B8
To claim this, I am signing this object:
| # Simplest use of Pod AntiAffinity rules, to spread out pods that matches the same labels | |
| # and to not allow them to schedule on the same node | |
| module SpreadPods | |
| extend ActiveSupport::Concern | |
| included do | |
| let(:pod_anti_affinity) { fail NotImplementedError, 'define let(:pod_anti_affinity) required' } | |
| let(:schedule_one_per_node) { required_during_scheduling(other_pods_of_type_in_node) } | |
| let(:schedule_one_per_zone) { required_during_scheduling(other_pods_of_type_in_zone) } |
| { | |
| description = "Elixir development environment"; | |
| inputs = { | |
| nixpkgs = { | |
| url = "github:NixOS/nixpkgs/nixos-25.05"; # Or a specific stable channel like "nixos-24.05" | |
| }; | |
| flake-utils = { | |
| url = "github:numtide/flake-utils"; | |
| }; |
| 'use strict'; | |
| /* This module handles shutdown procedures to ensure a graceful shutdown | |
| - Function to register a shutdown callbacks | |
| - Call shutdown callbacks on uncaught promise rejections and signals | |
| - Call the exported setup() at the top of the bootup, usually in main.ts | |
| */ | |
| // import your logging code here | |
| const log = (level, message) => { |
| defmodule Legalio.Plug.ConvertToPost do | |
| @moduledoc """ | |
| A Plug to convert a list of methods to POST so | |
| that body_params can be populated | |
| """ | |
| @behaviour Elixir.Plug | |
| alias Elixir.Plug.Conn |
| # Matsuri.define will generate a custom class and registers it | |
| # Because it is a Ruby class, you can create mixins by creating a Ruby | |
| # module and `include` it in. | |
| # Everything is broken down into smaller `let()`. If you are not familiar | |
| # with it, it is taken from Rspec, and defines a memoized method. We can | |
| # then customize functionality by overriding any of the lets. In this case, | |
| # the base class of the pod definition defines the manifests: | |
| # https://github.com/matsuri-rb/matsuri/blob/master/lib/matsuri/kubernetes/pod.rb#L10 | |
| # Notice how I am overriding just enough to create a pod. However, I can override |
| # Disable delay in escape so that spacemacs will work under here | |
| set -s escape-time 0 | |
| # utf-8 support | |
| setw -g utf8 on | |
| set -g status-utf8 on | |
| set -g default-terminal "screen-256color" | |
| set -g prefix C-z | |
| unbind-key C-b |
I hereby claim:
To claim this, I am signing this object:
| require 'rlet/functional' | |
| module SomeApi | |
| module API | |
| class V1_0 < Intermodal::API | |
| using RLet::Functional | |
| self.default_per_page = 25 | |
| map_data do |
| Failures: | |
| 1) Search API endpoint /search/node POST targeted toward many nodes with body of {"possibly_nested"=>["top", "middle", "bottom"], "the_name"=>["name"], "not_found"=>["foo", "bar", "baz", "totally_not | |
| _a_real_field"], "empty"=>[]} should succeed, and return multiple nodes | |
| Failure/Error: r.should look_like search_success_response | |
| Expected a full match of the result | |
| {"total"=>4, | |
| "start"=>0, |
| -- Copyright 2013 Opscode, Inc. All Rights Reserved. | |
| -- | |
| -- This file is provided to you under the Apache License, | |
| -- Version 2.0 (the "License"); you may not use this file | |
| -- except in compliance with the License. You may obtain | |
| -- a copy of the License at | |
| -- | |
| -- http://www.apache.org/licenses/LICENSE-2.0 | |
| -- | |
| -- Unless required by applicable law or agreed to in writing, |