Features | Sidekiq | Sidekiq Pro | good_job | solid_queue |
---|---|---|---|---|
Scheduled Jobs | 🟢 | 🟢 | 🟢 | 🟢 |
Batches | 🔴 | 🟢 [1] | 🟢 [1] | ? |
Reliability | 🔴 | 🟢 [1] | 🟢 [1] | 🟢 [1] |
Search in web ui | 🔴 | 🟢 [1] | 🟢 [1] | 🟠 |
Worker Metrics | 🔴 | 🟢 [1] | 🔵 [1] [2] [3] | ? |
E |
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
# frozen_string_literal: true | |
# config/initializers/colorized_logger.rb | |
# This initializer adds color to the Rails logger output. It's a nice way to | |
# visually distinguish log levels. | |
module ColorizedLogger | |
COLOR_CODES = { | |
debug: "\e[36m", # Cyan | |
info: "\e[32m", # Green | |
warn: "\e[33m", # Yellow |
Please comment below to contribute. Thanks!
X11 concept | Wayland concept | Notes |
---|---|---|
"Window" | "Top-level Shell Surface" | An entire window, including window decorations |
X11 (the specfication) | Wayland (the protocols) | Neither X11 nor Wayland are binaries that can be installed |
Xorg, one universally shared default implementation | Multiple competing Wayland compositors | Unfortunately there is no universally used single Wayland compositor; apparently every desktop environment does its own, and as a result what works in one may not work in another |
export DISPLAY=... |
export WAYLAND_DISPLAY=... |
How to know which WAYLAND_DISPLAY one needs to export? The sockets (and their names) should be located in /run/user/* . If WAYLAND_SOCKET is detected, the client will prefer to use the socket provided using that environment variable. |
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
Rails.application.configure do | |
# Add Cloudflare's IPs to the trusted proxy list so they are ignored when | |
# determining the true client IP. | |
# | |
# See https://www.cloudflare.com/ips-v4/ and https://www.cloudflare.com/ips-v6/ | |
config.action_dispatch.trusted_proxies = ActionDispatch::RemoteIp::TRUSTED_PROXIES + %w[ | |
173.245.48.0/20 | |
103.21.244.0/22 | |
103.22.200.0/22 | |
103.31.4.0/22 |
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
https:// { | |
log | |
tls internal { | |
on_demand | |
} | |
reverse_proxy :3000 | |
} |
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
--- | |
include: | |
- ".solargraph_definitions.rb" | |
- "app/**/*.rb" | |
- "config/**/*.rb" | |
- "lib/**/*.rb" | |
exclude: | |
- test/**/* | |
- vendor/**/* | |
- ".bundle/**/*" |
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
# demo gameplay here: https://youtu.be/wQknjYk_-dE | |
# this is the core game class. the game is pretty small so this is the only class that was created | |
class Game | |
# attr_gtk is a ruby class macro (mixin) that adds the .args, .inputs, .outputs, and .state properties to a class | |
attr_gtk | |
# this is the main tick method that will be called every frame the tick method is your standard game loop. | |
# ie initialize game state, process input, perform simulation calculations, then render | |
def tick | |
defaults |
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
# Copyright 2021 Scratchwork Development LLC. All rights reserved. | |
PI = 3.1415926 | |
class Game | |
attr_gtk | |
def tick | |
defaults | |
render |
My answer to: https://www.reddit.com/r/Clojure/comments/pcwypb/us_engineers_love_to_say_the_right_tool_for_the/ which asked to know when and at what is Clojure "the right tool for the job"?
My take is that in general, the right tool for the job actually doesn't matter that much when it comes to programming language.
There are only a few cases where the options of tools that can do a sufficiently good job at the task become limited.
That's why they are called: General-purpose programming languages, because they can be used generally for most use cases without issues.
Let's look at some of the dimensions that make a difference and what I think of Clojure for them:
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
<!-- app/views/embed_imports/_form.html.erb --> | |
<%= form_with(model: [board, embed_import]) do |form| %> | |
<%= form.file_field :upload %> | |
<%= form.submit "Upload Links", class: "inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-lime-600 hover:bg-lime-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-lime-500" %> | |
<% end %> |
NewerOlder