Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am twish on github.
  • I am tveitan (https://keybase.io/tveitan) on keybase.
  • I have a public key whose fingerprint is 03AD 15F2 F249 0094 0D98 5D53 E6B5 0CDE 4D07 C529

To claim this, I am signing this object:

@twish
twish / RestClient.cs
Created February 19, 2020 15:52
Simple wrapper for HttpClient to do REST requests
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Helpers.Web
{
public class RestClient
{
@twish
twish / reset_display_montaray.md
Created November 15, 2021 15:26
Reset external displays macos monterey

Reset external display configurations in macos Monterey

Background

I had the issue where a display reported a supported resolution that was actually not supported. This caused macos to get stuck in a loop where macos would try to connect to the monitor, succeed. Only to have the monitor disconnect since it did not support the resolution. This made it impossible to manually change the resolution since macos only shows the settings if the display is connected.

After a bunch of googling and trial and error I solved it with the following workaround: