Apple Studio Display (5K) on Arch Linux with Hyprland was experiencing intermittent connection issues where:
- Display would not always connect reliably
- System detected the display as two separate devices
- Wrong display connector was sometimes chosen
Apple Studio Display (5K) on Arch Linux with Hyprland was experiencing intermittent connection issues where:
| Begin by enclosing all thoughts within <thinking> tags, exploring multiple angles and approaches. | |
| Break down the solution into clear steps within <step> tags. Start with a 20-step budget, requesting more for complex problems if needed. | |
| Use <count> tags after each step to show the remaining budget. Stop when reaching 0. | |
| Continuously adjust your reasoning based on intermediate results and reflections, adapting your strategy as you progress. | |
| Regularly evaluate progress using <reflection> tags. Be critical and honest about your reasoning process. | |
| Assign a quality score between 0.0 and 1.0 using <reward> tags after each reflection. Use this to guide your approach: | |
| 0.8+: Continue current approach | |
| 0.5-0.7: Consider minor adjustments | |
| Below 0.5: Seriously consider backtracking and trying a different approach |
| # Move erts IO Polling to dedicated threads | |
| # https://github.com/erlang/otp/pull/1552 |
| #!/bin/bash | |
| # | |
| # Check a "few" things to help write more maintainable Go code. | |
| # | |
| # OK, it's fairly comprehensive. So simply remove or comment out | |
| # anything you don't want. | |
| # | |
| # Don't forget to install (go get) each of these tools. | |
| # More info at the URLs provided. | |
| # |
| #!/usr/bin/env ruby | |
| require 'benchmark' | |
| iterations = 1_000_000 | |
| Benchmark.bm do |bm| | |
| # joining an array of strings | |
| bm.report do | |
| iterations.times do | |
| ["The", "current", "time", "is", Time.now].join(" ") |
$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769
Note the running on port for epmd itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:
$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| upstream myapp { | |
| server unix:///myapp/tmp/puma.sock; | |
| } | |
| server { | |
| listen 80; | |
| server_name myapp.com; | |
| # ~2 seconds is often enough for most folks to parse HTML/CSS and | |
| # retrieve needed images/icons/frames, connections are cheap in |
| def set_mobile_agent | |
| page.driver.header('User-Agent', 'iPhone') | |
| end | |
| def js_click(selector) | |
| page.driver.execute_script "$('##{selector}').click()" | |
| end | |
| def screenshot | |
| require 'capybara/util/save_and_open_page' |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |