This file contains hidden or 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 characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from 'react'; | |
import { Excalidraw } from "@excalidraw/excalidraw"; | |
import type { ExcalidrawImperativeAPI } from '@excalidraw/excalidraw/types/types'; | |
import Example from './Example'; | |
import { ExcalidrawAPIProvider } from './hooks/useExcalidrawAPI'; | |
function App() { | |
const [excalidrawAPI, setExcalidrawAPI] = useState<ExcalidrawImperativeAPI | null>(null); | |
return ( |
This file contains hidden or 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 characters.
Learn more about bidirectional Unicode characters
# Configure ssh forwarding | |
export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock | |
# Use pgrep to check if the process is running | |
pgrep -f "npiperelay -ei -s //./pipe/openssh-ssh-agent" > /dev/null | |
IS_ALREADY_RUNNING=$? | |
if [[ $IS_ALREADY_RUNNING -ne 0 ]]; then | |
if [[ -S $SSH_AUTH_SOCK ]]; then | |
# Not expecting the socket to exist as the forwarding command isn't running |