TCP echo server for Node.js
Usage
- Make sure you have a modern-ish version of Node.js installed.
- Type
npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3
- Connect to it from a client, e.g.
netcat
or similar:nc localhost 9000
npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3
netcat
or similar: nc localhost 9000
这里是由 Moeyua 搜集、整理、维护的、个人自用的收藏列表。
一些在线的工具,可能是日常会用到的工具,也可能是开发相关的工具
👋 Hi,我是三咲智子,00 后,目前大二在读(写于 2022 年),开源爱好者,Vue、VueUse、Element Plus 开源社区团队成员。这篇文章受 Anthony Fu 的播客视频的启发,主要介绍我的编程经历。以时间线为顺序,也是自我回忆和整理下我这些年都干了些什么。部分回忆可能存在时间错误,但事情都是实际发生过的。
我从小学就开始接触编程和其他技术相关的东西了。
Thanks to @jogerj and @PrimeCicada for the method! Original script: https://gist.github.com/jogerj/0339e61a92e0de2e360c5212a94854e8
Thanks to @SleepingPanda for 3.8 change info
Open powershell, then copy paste this script:
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.
Update system packages in Termux:
$ pkg update -y
Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
sudo add-apt-repository ppa:mc3man/trusty-media | |
sudo apt-get update | |
sudo apt-get dist-upgrade | |
sudo apt-get install ffmpeg |
#!/usr/bin/env node | |
console.log('yay gist') |
var readline = require('readline'); | |
readline.emitKeypressEvents(process.stdin); | |
if (process.stdin.isTTY) | |
process.stdin.setRawMode(true); | |
process.stdin.on('keypress', (chunk, key) => { | |
if (key && key.name == 'q') | |
process.exit(); |