Skip to content

Instantly share code, notes, and snippets.

@cdriehuys
cdriehuys / Axios Nock and Typescript.md
Last active September 14, 2022 17:07
Typescript definition file to make axios work with nock

Axios, Nock, and Typescript

There is a documented issue describing how axios and nock do not work well together. The workaround described in this comment works.

import axios from 'axios';
import httpAdapter from 'axios/lib/adapters/http';
import nock from 'nock';

axios.defaults.adapter = httpAdapter;
@erichrobinson
erichrobinson / README.md
Last active February 24, 2024 08:32
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable