Skip to content

Instantly share code, notes, and snippets.

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

Kurtis Rainbolt-Greene krainboltgreene

🏠
Working from home
View GitHub Profile
version: "3.7"
x-logging-elk: &logging-elk
# driver: json-file
driver: gelf
options:
gelf-address: udp://172.16.0.38:12201
labels: container_group
x-sentry-environment: &sentry-environment
@krainboltgreene
krainboltgreene / forth.rb
Created January 15, 2012 18:45 — forked from perimosocordiae/forth.rb
A pure Ruby interpreter for Forth
#!/usr/bin/env ruby
# Return and remove the last value of the stack array
def pop
$stack.pop || raise(StackUnderflow)
end
# Add a expression to the stack
def push(expression)
$stack << expression
iex --erl -sssdio=128 -S mix
Erlang/OTP 25 [erts-13.0.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]
Generated genie app
[info] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
Your kernel may have been built without NUMA support.
[info] XLA service 0x7fd5907b7b30 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
[info] StreamExecutor device (0): NVIDIA GeForce GTX 1060 6GB, Compute Capability 6.1
[info] Using BFC allocator.
[info] XLA backend allocating 2737831936 bytes on device 0 for BFCAllocator.
@spec as_ast(%{
body: binary,
declaration: bitstring,
documentation: bitstring,
elixir_module: %{documentation: bitstring, slug: bitstring},
elixir_typespec: %{inputs: bitstring, return: bitstring},
guards: binary,
inputs: bitstring,
name: bitstring,
slug: integer,
defmacro example(keys) when is_list(keys) do
quote do
example(unquote(keys), defer_to: __MODULE__, loaded: false)
end
end
defmacro example(keys, defer_to: defer_to) when is_list(keys) do
quote do
example(unquote(keys), defer_to: unquote(defer_to), loaded: false)
end
@krainboltgreene
krainboltgreene / code-of-conduct.md
Last active June 2, 2021 23:33
The code of conduct for nola.slack.com, contact me

Contributor Code of Conduct

As contributors and maintainers of this community, and in the interest of
fostering an open and welcoming community, we pledge to respect all people who
contribute through joining the group, inviting others, talking on channels, or any other activities.

We are committed to making participation in this community a harassment-free
experience for everyone, regardless of level of experience, gender, gender
identity and expression, sexual orientation, disability, personal appearance,

class ApplicationComputed
include ActiveModel::Model
def id
@id ||= SecureRandom.uuid
end
def created_at
@created_at ||= Time.zone.now
end
FROM heroku/heroku:20-build as build
ARG BUNDLE_GEMS__CONTRIBSYS__COM
ENV STACK heroku-20
ENV RACK_ENV production
ENV RAILS_ENV production
ENV PORT 8080
WORKDIR /home/application/
uri = URI.parse("http://localhost:4000")
uri_with_scheme = %URI{scheme: "http", host: "localhost", port: 8080}
uri_without_scheme = %URI{host: "localhost", port: 8080}
URI.merge(uri, uri_with_scheme) %URI{
authority: nil,
fragment: nil,
host: "localhost",
path: nil,
port: 8080,
defmodule ElixirContainerAgentExperiment.Application do
use Application
def start(_type, _args) do
children = [
{
Task.Supervisor,
name: ElixirContainerAgentExperiment.ExampleSupervisor
}
]