Skip to content

Instantly share code, notes, and snippets.

View leotm's full-sized avatar

LeoTM leotm

View GitHub Profile
@leotm
leotm / redux-persist-errors.md
Created December 20, 2023 11:18
2 errors stemming from redux-persist
- `redux-persist/lib/persistReducer.js` (`Promise.then`)...
  - ...`babel-runtime/node_modules/regenerator-runtime/runtime.js`: `GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;` - `TypeError: Cannot assign to read only property 'constructor' of object '[object Object]'` missing stacktrace
  - ...`metro-runtime/src/polyfills/require.js`: `throw e` (multiple)
  - ...`ethjs/lib/index.js`: `var query = new EthQuery(cprovider, self.options.query);`: `TypeError: _$$_REQUIRE(...) is not a constructor` (multiple)
  - ...`metro-runtime/src/polyfills/require.js`: `Requiring module "node_modules/ethjs/node_modules/ethjs-query/lib/index.js", which threw an exception - TypeError: Cannot assign to read only property 'constructor' of object '[object Object]'` (multiple)
  • redux-persist/lib/createPersistoid.js...metamask-mobile/app/store/index.js: TypeError: Cannot read properties of undefined (reading 'tokenList') (multiple)
@leotm
leotm / ruby-build.20230209163523.47447.log
Created February 9, 2023 16:43
/var/folders/rp/gl466qt13wj7d8jdsmvkvjdh0000gn/T/
This file has been truncated, but you can view the full file.
/var/folders/rp/gl466qt13wj7d8jdsmvkvjdh0000gn/T/ruby-build.20230209163523.47447.gQ8Vom ~/Documents/GitHub
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 15151328
Connection: keep-alive
Last-Modified: Tue, 07 Feb 2023 22:36:17 GMT
Accept-Ranges: bytes
Server: AmazonS3
Date: Thu, 09 Feb 2023 00:40:40 GMT
ETag: "2f70fa822d00ba2a669f2d5b68c37835-2"
@leotm
leotm / tsconfig.json
Created June 29, 2022 12:24
tsc --init v4.7.4
{
"compilerOptions": {
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Projects */
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
@leotm
leotm / react-native-0.68.1-nightly-mergeDexRelease.txt
Last active April 25, 2022 11:38
[Log] React Native | mergeDexRelease
./gradlew :app:mergeDexRelease
---
> Task :ReactAndroid:downloadBoost UP-TO-DATE
Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
> Task :ReactAndroid:downloadDoubleConversion UP-TO-DATE
Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz
@leotm
leotm / nvcleanstall
Last active October 26, 2023 02:49
- disable installer telemetry
- unattended, allow auto reboot
- show expert tweaks
- disable driver telemetry
- disable hd audio sleep timer
- enable msg signalled interrupts
- default
- high
- disable hdcp
- rebuilt
@leotm
leotm / Xcode-stable.sh
Last active February 1, 2022 16:33
Switch default Xcode from beta to stable
# bash Xcode-stable.sh
sudo xcode-select --switch /Applications/Xcode.app
@leotm
leotm / Xcode-beta.sh
Last active August 31, 2023 11:48
Switch default Xcode from stable to beta
sudo xcode-select --switch /Applications/Xcode-beta.app
# xcode-select --install
sudo xcodebuild -license accept
xcodebuild -runFirstLaunch
# Manually open and GET iOS 17
@leotm
leotm / langMarkdown.url
Created November 21, 2021 12:15
lang markdown
https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md
@leotm
leotm / logServiceWorkers.ts
Created November 19, 2021 15:20
Log service worker registrations to the console
navigator.serviceWorker.getRegistrations().then((registrations) => {
for (const registration of registrations) {
console.log(registration)
}
})
@leotm
leotm / symlink.sh
Created November 19, 2021 15:17
Create a hard link or a symbolic link