Skip to content

Instantly share code, notes, and snippets.

View Lifeni's full-sized avatar
🙃
开摆

Liang Fengning Lifeni

🙃
开摆
View GitHub Profile
@Lifeni
Lifeni / .bashrc
Last active November 5, 2023 16:40
Bash 别名备份
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'
@Lifeni
Lifeni / hello.sh
Last active December 3, 2023 15:45
./hello.sh
$ curl -L lifeni.life/hello
# 你好,我对 Web 开发比较感兴趣,
# 喜欢一些好看的设计,
# 我的个人网站在 https://lifeni.life,
# 欢迎来看看。
@Lifeni
Lifeni / dont-open-ienote.user.js
Created February 7, 2022 03:37
阻止教资报名网站跳转 ieNote
// ==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==
@Lifeni
Lifeni / save-site.sh
Last active April 9, 2021 05:30
记录一些常用的命令
wget --mirror --convert-links example.com
# 下载/保存一个网站,
# 包括网站下静态资源,不包括外链内容,
# 也就是只保存同一域名下的内容
@Lifeni
Lifeni / baike-remove-songti.user.js
Last active April 17, 2021 06:50
移除百度百科默认的宋体字体
// ==UserScript==
// @name 移除百度百科默认的宋体字体
// @namespace https://github.com/Lifeni
// @version 0.0.2
// @description 百度百科网页内容字体用的宋体,在低分辨率的屏幕下实现效果非常不好,替换成默认字体(顺便去了一点广告)
// @author Lifeni
// @match https://baike.baidu.com/item/*
// @grant none
// ==/UserScript==
@Lifeni
Lifeni / heu-score-details-polyfill.user.js
Last active January 4, 2022 11:13
解决哈工程查成绩网站在现代浏览器上显示不出来具体成绩对话框的问题
// ==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
@Lifeni
Lifeni / hello.js
Last active April 5, 2023 12:04
Fetch my GitHub profile.
const name = `Lifeni`;
fetch(`https://api.github.com/users/${name}`)
.then((res) => res.json())
.then((user) => console.log(user))
@Lifeni
Lifeni / copy-link-markdown.user.js
Last active January 22, 2021 13:26
Copy link in markdown format. Like this: [title](url).