- First create a file in
/react/components/{filename}
| // Turn all HTML <a> elements into client side router links, no special framework-specific <Link> component necessary! | |
| // Example using the Next.js App Router. | |
| import { useRouter } from 'next/navigation'; | |
| import { useEffect } from 'react'; | |
| function useLinkHandler() { | |
| let router = useRouter(); | |
| useEffect(() => { | |
| let onClick = e => { |
Vote on Google Sheet
There are some expectations:
- Score column needs to be configured, column A is 1, column B is 2, etc.
- Upvote and downvote columns need to be configured in the same way
- Within your sheet, insert an image into the cells for upvote/downvote. I like to use google image search within the sheets interface to add "up arrow" and "down arrow". You want to use images because you can drag down the corners to autofill the images into new rows as new data is added to the sheet
IDA Bruteforce Guide (written by someone who is totally clueless and just wanted to get stuff working)
- Get IDA Pro from somewhere, in this "guide" I use IDA Pro 7.5
- Install Python 3.5 or newer, in this "guide" I use Python 3.8.5
- Download pySigMaker.py or SigMaker, in this "guide" I use pySigMaker.
- Clone or download latest FFXIVClientStructs
- Copy pySigMaker.py in
IDA Install Directory\Plugins
Note
If you want to use pure WSLg, you can try the new WSLg (XWayland) tutorial or the WSLg (Wayland) tutorial.
In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).
The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc) and tigervnc-standalone-server.
For this setup, I will use Ubuntu (20.04, 22.04 and 24.04 are working), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample
| [wsl2] | |
| kernel=C:\\Users\\JAKA\\vmlinux |
| // ==UserScript== | |
| // @name emuparadise_dc_fix2 | |
| // @version 1.0 | |
| // @description Workaround for downloading Dreamcast roms from Emuparadise.me | |
| // @author ichkommepostal | |
| // @match https://www.emuparadise.me/Sega_Dreamcast_ISOs/*/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.
A number of methods in React are assumed to be "pure".
On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.
| function isValidCPF(value: string) { | |
| if (typeof value !== 'string') { | |
| return false; | |
| } | |
| value = value.replace(/[^\d]+/g, ''); | |
| if (value.length !== 11 || !!value.match(/(\d)\1{10}/)) { | |
| return false; | |
| } |