-
Go to https://cachedview.com/
-
Navigate to the deleted repo, e.g. https://webcache.googleusercontent.com/search?q=cache:https://github.com/apcera/termtables
-
Copy latest known commit sha1 signature
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
<script lang="ts" setup> | |
import { ref, onMounted } from 'vue' | |
import * as zrender from 'zrender' | |
import { ElMessage } from 'element-plus' | |
const renderRef = ref<HTMLDivElement>() | |
const start = () => { | |
if (!renderRef.value) return | |
const zr = zrender.init(renderRef.value, { |
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
import path from 'node:path' | |
import { URL, fileURLToPath } from 'node:url' | |
import { $ } from 'execa' | |
const __dirname = fileURLToPath(new URL('.', import.meta.url)) | |
const rootPath = path.resolve(__dirname, '..') | |
const $$ = $({ cwd: rootPath, stdio: 'inherit' }) | |
;(async () => { | |
await $$`prettier --write .` |
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
;(async () => { | |
const getSpaceMid = () => location.pathname.split('/').at(1) | |
const spaceName = document.querySelector('#h-name').textContent | |
const style = `background: #42b883; color: #fff; font-size: 16px; padding: 10px 15px; border-radius: 4px; font-weight: 600;` | |
const mid = window._bili_space_mid ?? getSpaceMid() | |
let res = await fetch(`https://api.bilibili.com/x/space/acc/relation?mid=${mid}`, { | |
credentials: 'include', | |
}) | |
res = await res.json() | |
const mtime = res?.data?.relation?.mtime |
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
// https://github.com/sass/sass/issues/659#issuecomment-71759457 | |
@mixin variable-icon-font($icon-code) { | |
content: #{'\"\\'}#{$icon-code + '\"'}; | |
} | |
.icon { | |
@include variable-icon-font(e603); | |
} |
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 RE_MOBLE_DEVICE = /(iPhone|iPad|iPod|iOS|android)/i | |
const QQ_NUMBER = 123456 | |
if (RE_MOBLE_DEVICE.test(navigator.userAgent)) { | |
window.open( | |
`mqqwpa://im/chat?chat_type=wpa&uin=${QQ_NUMBER}&version=1&src_type=web&web_src=http://wpa.b.qq.com` | |
) | |
} else { | |
window.open( | |
`http://wpa.qq.com/msgrd?v=3&uin=${QQ_NUMBER}&site=在线客服&menu=yes` |
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
Vue.js 11 hrs 1 min ███████████▌░░░░░░░░░ 55.2% | |
TypeScript 3 hrs 46 mins ███▉░░░░░░░░░░░░░░░░░ 18.9% | |
JavaScript 2 hrs 9 mins ██▎░░░░░░░░░░░░░░░░░░ 10.8% | |
JSON 1 hr 34 mins █▋░░░░░░░░░░░░░░░░░░░ 7.8% | |
Markdown 27 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.3% |
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
$ brew install python | |
$ export PATH="/usr/local/opt/python/libexec/bin:$PATH" |
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 cache = (() => { | |
const store = {} | |
return ({ | |
set (key, value) { | |
store[key] = value | |
}, | |
has (key) { |
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
# Prodution no root login via ssh | |
vi /etc/ssh/sshd_config | |
PermitRootLogin no # change yes to no | |
service sshd restart |
NewerOlder