Skip to content

Instantly share code, notes, and snippets.

@upuxaa
upuxaa / how-to-ssh-into-windows.md
Created July 14, 2025 11:32 — forked from teocci/how-to-ssh-into-windows.md
How to SSH into Windows 10 or 11?

How to SSH into Windows 10 or 11?

The latest builds of Windows 10 and Windows 11 include a build-in SSH server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, like Linux distros. Let's see how to configure OpenSSH on Windows 10 and Windows 11, and connect to it using Putty or any other SSH client.

OpenSSH is an open-source, cross-platform version of Secure Shell (SSH) that is used by Linux users for a long time. This project is currently ported to Windows and can be used as an SSH server on almost any version of Windows. In the latest versions of Windows Server 2022/2019 and Windows 11, OpenSSH is built-in to the operating system image.

@upuxaa
upuxaa / StickyPicker.tsx
Created November 25, 2022 03:37
ReactJS Sticky Picker
import React, { useEffect, useRef, useState } from "react";
import { useDoubleTap } from "use-double-tap";
function useOnScreen(ref: any, n: number) {
const [isIntersecting, setIntersecting] = useState(false);
const observer = new IntersectionObserver(([entry]) => {
setIntersecting(entry.isIntersecting);
});
useEffect(() => {
@upuxaa
upuxaa / readandwrite.js
Created September 26, 2019 20:49
nodejs read and write json file
JSON.parse(fs.readFileSync('output.json').toString())
fs.writeFileSync("output.json", JSON.stringify(accounts, null, 2), function (err) {
if (err) {
console.log('Error writing to file output.json')
return console.log(err);
}
});