Skip to content

Instantly share code, notes, and snippets.

@jt6562
jt6562 / deepin.list
Created April 9, 2021 07:38
deepin packages
deb http://packages.deepin.com/deepin/ stable main non-free
# sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 425956BB3E31DF51
# sudo apt install deepin.com.wechat
// ==UserScript==
// @name EnablePIP
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @match https://*/*
// @run-at document-end
// @grant none
@jt6562
jt6562 / readme.md
Created August 31, 2017 08:56
ssh Permission denied (publickey).

今天遇到一个很诡异的事情。使用 ssh 远程登录测试一些脚本,使用的是公钥登录方式。脚本中有一些 apt 安装命令。但在删除安装的包后,无法使用另一个终端进行 ssh 登录。

好在原来的终端还在,否则连调试的机会都没有了。

分析/etc/ssh/sshd_config,没发现问题(本身也不会有问题)。最后看了一下login log /var/log/auth.log,如下:

Aug 31 16:48:11 debug010000002015 sshd[25395]: Server listening on 0.0.0.0 port 22.
Aug 31 16:48:37 debug010000002015 sshd[25407]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key
Aug 31 16:48:37 debug010000002015 sshd[25407]: User root not allowed because shell /usr/bin/zsh does not exist
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@jt6562
jt6562 / default.custom.yaml
Last active June 15, 2016 09:19 — forked from lotem/luna_pinyin.custom.yaml
【朙月拼音】模糊音定製模板
patch:
"key_binder/bindings":
- { when: paging, accept: bracketleft, send: Page_Up }
- { when: has_menu, accept: bracketright, send: Page_Down }
"switcher/hotkeys":
- Control+grave
- Control+Shift+grave
@jt6562
jt6562 / send_hex_with nc.sh
Created October 21, 2015 06:53
Send hex data with netcat, xxs and echo
echo '0006303030304e43' | xxd -r -p |nc 127.0.0.1 6969
@jt6562
jt6562 / gist:5499929
Last active December 16, 2015 21:29 — forked from yyq123/gist:1611143
set ignorecase smartcase " 搜索时忽略大小写,但在有一个或以上大写字母时仍保持对大小写敏感
set nu " 显示行号
set ruler
set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)
set guioptions+=b
set guioptions-=T
set paste
"set clipboard=unnamed " 让Vim和Win共用剪贴板