Quantcast
Channel: Recent Gists from badsyntax
Browsing latest articles
Browse All 31 View Live

Super simple Node.js IPC with Unix domain sockets

node-ipc.js 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...

View Article



Next.js Dockerfile

Dockerfile 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...

View Article

nextjs-custom-server.md

nextjs-custom-server.mdSome pain points:HMR is not always practical for server side development. For example HMR interferes with the initialisation of prom-client (and probably other libs), and there's...

View Article

Making Apple Developer certificates on Linux

Making Apple Developer certificates on Linux 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...

View Article

Clearing the Cache of your React Native Project

React Native Clear Cache 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...

View Article


.vimrc

.vimrc 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...

View Article

Apple M1 workarounds

workaround.mdFor npm packages that don't provide arm binaries:npm i --target_arch=x64For gradle packages that don't provide arm binaries:// for apple m1, please add protoc_platform=osx-x86_64 in...

View Article

Clear react native cache

gistfile1.txt 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...

View Article


Image may be NSFW.
Clik here to view.

Some tips to working with react-native 0.64 on an Apple M1 Silicon chip

react-native-apple-m1.mdMy env:cocoapods 1.10.1xcode 12.4macos big sur 11.2.3react-native 0.64iOSThe iOS simulator build won't "just work". If you get errors like ld: library not found for... or swift...

View Article


start an android emulator with screen dimensions (specifically for use in CI)

android_emulator_cli_ci.md# Install AVD files yes |$ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-29;default;x86' yes |$ANDROID_HOME/tools/bin/sdkmanager --licenses # Create...

View Article

portainer docker swarm CD (GitHub Actions)

deploy.yml 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...

View Article

.gitconfig

.gitconfig 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...

View Article

iterm2 prefs

iterm2.plist 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...

View Article


Setup the android emulator on Azure Devops Pipelines

android-emulator-setup.yml 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...

View Article

build-ios.sh

build-ios.sh 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...

View Article


clean.sh

clean.sh 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...

View Article

Generate an S3 ETAG for multipart uploads in Node.js

s3Etag.ts 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...

View Article


Generate an S3 ETAG for a multipart upload file, on MacOS

s3etag.sh 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...

View Article

Storybook webpack 5 typescript ESM

instructions.mdstorybook-webpack5-esm-typescriptThe following instructions are collated from storybookjs/storybook#14877mkdir storybook-esm-react-webpack5cd storybook-esm-react-webpack5npm init -y #...

View Article

react native build benchmarks

build-ios.sh 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...

View Article

Azure pipelines install dotnet on mac mini arm64

azure-pipelines.yml 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...

View Article


Create multiple repositories visualization video using gource and ffmpeg

multiple-gource.sh 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...

View Article


example dotnet 6 code to sign an apple JWT from p8 certificate file

example.cs 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...

View Article

gist:ec21555281411ac13683d597bc10f9a7

gistfile1.txt 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...

View Article

c# predicate builder, useful for constructing linq predicates

ExpressionWhereFinder.cs 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...

View Article


Fast & Flexible TypeScript dot notation key extraction that supports nested...

paths.ts 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...

View Article

React Native, React Query Offline Persisted Queries & Mutations

README.mdThese files demonstrates how to persist queries and mutations to offline state with the following behaviour:Serve from query cache if offlinePersist mutations if offline, and resume mutations...

View Article

react native cloc

cloc.sh 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...

View Article

React Navigation hook to check if the current (nested) route has an ancestor...

useHasAncestorRoute.ts 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...

View Article



remove dotnet bin and obj

gistfile1.txt 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...

View Article
Browsing latest articles
Browse All 31 View Live


Latest Images