Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
Check this out on Dev.to
To embed the contents of an SVG file into your site using NextJS with the new Rust-based compiler (Turbopack), perform the following steps:
@svg/webpack:$ npm install --save-dev @svgr/webpacknext.config.js with the following options. This will remove the width and height from the SVG but keep the viewBox for correct scaling.| diff --git a/node_modules/react-native/React/Views/RCTModalHostView.h b/node_modules/react-native/React/Views/RCTModalHostView.h | |
| index c54c1c6..a5c49d1 100644 | |
| --- a/node_modules/react-native/React/Views/RCTModalHostView.h | |
| +++ b/node_modules/react-native/React/Views/RCTModalHostView.h | |
| @@ -16,7 +16,7 @@ | |
| @protocol RCTModalHostViewInteractor; | |
| -@interface RCTModalHostView : UIView <RCTInvalidating> | |
| +@interface RCTModalHostView : UIView <RCTInvalidating, UIAdaptivePresentationControllerDelegate> |
| diff --git a/node_modules/react-native/React/Views/RCTModalHostView.h b/node_modules/react-native/React/Views/RCTModalHostView.h | |
| index e16dd22..97f24a6 100644 | |
| --- a/node_modules/react-native/React/Views/RCTModalHostView.h | |
| +++ b/node_modules/react-native/React/Views/RCTModalHostView.h | |
| @@ -17,7 +17,7 @@ | |
| @protocol RCTModalHostViewInteractor; | |
| -@interface RCTModalHostView : UIView <RCTInvalidating> | |
| +@interface RCTModalHostView : UIView <RCTInvalidating, UIAdaptivePresentationControllerDelegate> |
| // web/webpack.config.js | |
| const path = require('path'); | |
| const webpack = require('webpack'); | |
| const appDirectory = path.resolve(__dirname, '../'); | |
| // This is needed for webpack to compile JavaScript. | |
| // Many OSS React Native packages are not compiled to ES5 before being | |
| // published. If you depend on uncompiled packages they may cause webpack build |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft