跳到正文

zjm_yycdexiongdi

1333583

人生苦短,何妨一试。||支持壶关,壶关私信||刚上初一的小盆友

在洛谷打开
资料、奖项与版本

资料

编号
1333583
抓取

版本

  1. v2当前
  2. v1

这个家伙不懒,什么都留下了

只是\color{white}只是你\color{white}你没看到\color{white}没看到。\color{white}。

YJL\color{white}YJLs\color{white}sDSG\color{white}DSGys\color{white}ysDSB\color{white}DSB

小便签

pdf

代码
Stop-Service sshd -Force; Get-Process sshd -ErrorAction SilentlyContinue | Stop-Process -Force; sc.exe delete sshd -ErrorAction SilentlyContinue; Remove-Item C:\ProgramData\ssh\sshd_config -Force -ErrorAction SilentlyContinue; @'
Port 22
Protocol 2
HostKey __PROGRAMDATA__/ssh/ssh_host_rsa_key
HostKey __PROGRAMDATA__/ssh/ssh_host_ecdsa_key
HostKey __PROGRAMDATA__/ssh/ssh_host_ed25519_key
PasswordAuthentication yes
PubkeyAuthentication yes
StrictModes no
AuthorizedKeysFile .ssh/authorized_keys
Subsystem sftp sftp-server.exe
'@ | Out-File -FilePath C:\ProgramData\ssh\sshd_config -Encoding utf8; sc.exe create sshd binPath= "C:\Windows\System32\OpenSSH\sshd.exe -d" start= auto displayname= "OpenSSH SSH Server"; Remove-Item C:\Users\admin\.ssh -Recurse -Force -ErrorAction SilentlyContinue; mkdir C:\Users\admin\.ssh -Force; New-Item -ItemType File -Path C:\Users\admin\.ssh\authorized_keys -Force; icacls C:\Users\admin\.ssh /inheritance:r /grant "admin:F" /grant "SYSTEM:F"; icacls C:\Users\admin\.ssh\authorized_keys /inheritance:r /grant "admin:F" /grant "SYSTEM:F"; Start-Service sshd; Get-Service sshd; netstat -an | findstr :22

共 1 篇
  1. 个人记录

    文本编辑器

    该文本描述了一个基于无向链表的文本编辑器实现方法。核心思想是通过无向链表结构(每个节点存储左右邻居下标)实现高效的区间翻转操作,无需修改中间节点。具体实现中使用vector存储节点,每个节点包含字符和邻接关系。通过辅助函数建边/删边、判断光标重叠、查找下一个节点等操作,支持光标左右移动、字符插入删除及区间翻转功能。代码初始化时构建头尾节点并连接字符节点,操作过程中通过调整光标位置和邻接关系实现功能,其中flag变量用于标记左右光标相对位置,避免左光标位于右光标右侧的情况。