- Create a folder at the root of your user home folder
(Example:
C:/Users/uname/
) called.ssh
. - Create the following files if they do not already exist (paths begin from the root of your user home folder):
.ssh/config
import { useRef, useState, memo, useEffect } from 'react'; | |
import PropTypes from 'prop-types'; | |
const noop = () => {}; | |
const DEFAULT_DEBOUNCE_TIMEOUT = 330; // ms | |
const Debounced = ({ children, value, onChange, timeout }) => { | |
const timeoutIdRef = useRef(null); | |
const [innerValue, setInnerValue] = useState(value); |
import Autocomplete from 'react-autocomplete'; | |
import { rankWith, scopeEndsWith } from '@jsonforms/core'; | |
import { JsonForms, withJsonFormsControlProps } from '@jsonforms/react'; | |
import { materialCells, materialRenderers } from '@jsonforms/material-renderers'; | |
import React from "react" | |
const schema = { | |
"type": "object", | |
"title": "The Root Schema", | |
"description": "The root schema comprises the entire JSON document.", |
const fs = require('fs'); | |
const https = require('https'); | |
const querystring = require('querystring'); | |
// All image URLs, in case you want to re-import them to Discourse (this script just links Discourse to the Spectrum images) | |
let images = []; | |
let comments = {}; | |
// Map Spectrum usernames to existing Discourse usernames, in order to post comments as actual users (otherwise this script posts comments as user 'discobot', but mentions the Spectrum username in first line of comment. You can also fix it manually afterwards.) | |
const discourseUsers = { |