-
Download the x64 Debian package from Oracle https://www.oracle.com/java/technologies/downloads/
-
Install the .deb package.
sudo apt install ~/Downloads/jdk-20_linux-x64_bin.deb
// Usage: | |
// Replace React.lazy(() => import('x')); | |
// with retryDynamicImport(() => import('x')); | |
import { ComponentType, lazy } from 'react'; | |
const MAX_RETRY_COUNT = 15; | |
const RETRY_DELAY_MS = 500; | |
// Regex to extract the module URL from the import statement |
'use client' | |
import * as React from 'react' | |
import { EyeIcon, EyeOffIcon } from 'lucide-react' | |
import { Button } from '@/components/ui/button' | |
import { Input, type InputProps } from '@/components/ui/input' | |
import { cn } from '@/lib/utils' | |
const PasswordInput = React.forwardRef<HTMLInputElement, InputProps>(({ className, ...props }, ref) => { |
Download the x64 Debian package from Oracle https://www.oracle.com/java/technologies/downloads/
Install the .deb package.
sudo apt install ~/Downloads/jdk-20_linux-x64_bin.deb
First, copy the config plugin from this repo: https://github.com/gaishimo/eas-widget-example
You can reference my PRs there too (which, at the time of writing, aren't merged).
After adding the config plugin (see app.json
) with your dev team ID, as well as a bundle ID, you can edit the widget
folder to edit your code. Then npx expo run:ios
(or npx expo run:android
).
After npx expo run:ios
, open the ios
folder, and open the file that ends in .xcworkspace
in XCode. Make sure you have the latest macOS and XCode versions. If you don't, everything will break.
Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:
Up Arrow
: Will show your last commandDown Arrow
: Will show your next commandTab
: Will auto-complete your commandCtrl + L
: Will clear the screenThese are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.
Create an account at Linode
Click on Create Linode
Choose your server options (OS, region, etc)
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse |
This is a simple guide for myself about how to replicate my current eOS setup if I ever need to. These are my themes, customazations and tweaks to the OS, categorized and clearly written down for future me if he ever needs it.
Always update when installing an new OS.
module.exports = { | |
/** | |
* Print Width | |
* https://prettier.io/docs/en/options.html#print-width | |
* | |
* Specify the line length that the printer will wrap on. | |
* | |
* printWidth: <int> | |
* default: 80 | |
*/ |