This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias docker='sudo docker' | |
alias compose='sudo docker compose' | |
alias caddy='sudo caddy' | |
alias caddyfile='sudo nano /etc/caddy/Caddyfile' | |
alias ll='ls -alh' | |
alias lll='ls -hl' | |
alias start='sudo systemctl start' | |
alias stop='sudo systemctl stop' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl -L lifeni.life/hello | |
# 你好,我对 Web 开发比较感兴趣, | |
# 喜欢一些好看的设计, | |
# 我的个人网站在 https://lifeni.life, | |
# 欢迎来看看。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 阻止教资报名网站跳转 ieNote | |
// @namespace https://github.com/Lifeni | |
// @version 0.1 | |
// @description 假装存在 ActiveXObject,从而阻止页面跳转 | |
// @author Lifeni | |
// @match http://ntcebm4.neea.edu.cn/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget --mirror --convert-links example.com | |
# 下载/保存一个网站, | |
# 包括网站下静态资源,不包括外链内容, | |
# 也就是只保存同一域名下的内容 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 移除百度百科默认的宋体字体 | |
// @namespace https://github.com/Lifeni | |
// @version 0.0.2 | |
// @description 百度百科网页内容字体用的宋体,在低分辨率的屏幕下实现效果非常不好,替换成默认字体(顺便去了一点广告) | |
// @author Lifeni | |
// @match https://baike.baidu.com/item/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 解决哈工程查成绩网站在现代浏览器上显示不出来具体成绩对话框的问题 | |
// @namespace https://github.com/Lifeni | |
// @version 0.0.2 | |
// @description 只是一个 `window.showModalDialog()` 和 `<dialog>` 的 Polyfill | |
// @author Lifeni | |
// @match http*://*.hrbeu.edu.cn/* | |
// @require https://unpkg.com/dialog-polyfill@0.5.6/dist/dialog-polyfill.js | |
// @license MIT | |
// @grant none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const name = `Lifeni`; | |
fetch(`https://api.github.com/users/${name}`) | |
.then((res) => res.json()) | |
.then((user) => console.log(user)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Copy link in markdown format | |
// @description Copy the links on the page into a format supported by markdown, like this: [title](url) | |
// @author Lifeni | |
// @namespace https://github.com/Lifeni | |
// @include http*://* | |
// @version 0.1.2 | |
// @license MIT | |
// ==/UserScript== |