Skip to content

Instantly share code, notes, and snippets.

View hpmartini's full-sized avatar

Hans-Peter Martini hpmartini

View GitHub Profile
@mjackson
mjackson / redirects-in-react-router-v6.md
Last active November 12, 2023 07:32
Notes on handling redirects in React Router v6, including a detailed explanation of how this improves on what we used to do in v4/5

Redirects in React Router v6

An important part of "routing" is handling redirects. Redirects usually happen when you want to preserve an old link and send all the traffic bound for that destination to some new URL so you don't end up with broken links.

The way we recommend handling redirects has changed in React Router v6. This document explains why.

Background

In React Router v4/5 (they have the same API, you can read about why we had to bump the major version here) we had a <Redirect> component that you could use to tell the router when to automatically redirect to another URL. You might have used it like this:

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@ssplatt
ssplatt / circus.service
Created May 12, 2015 18:04
taiga circus service for systemd
[Unit]
Description=Circus for Taiga
After=syslog.target
After=network.target
[Service]
Type=simple
User=taiga
Group=taiga
ExecStart=/usr/bin/circusd /home/taiga/circus.ini