Skip to content

Instantly share code, notes, and snippets.

View able8's full-sized avatar

Able Lv able8

View GitHub Profile
/* styletag_3.css by styleurl */
body {
margin: 10px 0px;
}
#app, div.input-area {
height: 650px;
}
@able8
able8 / test.md
Last active April 27, 2024 15:08
1test
@able8
able8 / stylish-export.json
Created January 26, 2019 09:01
my stylish css
{
"data": [
{
"id": "1500857865640",
"json": {
"enabled": true,
"name": "zhihu.com",
"url": "",
"updateUrl": "",
"sections": [
/* inspector-stylesheet.css */
.container_box {
top: 0 !important;
}
/* wedocsui.min3dccb1.css */
.sub_nav_box {
display: none !important;
@able8
able8 / my-sVimrc
Last active February 18, 2019 06:03
let blacklists = ["*://r.com/*", "*://*.freecodecamp.org/*"]
let scrollstep = 400
let nextpagetextpatterns = ["Next", "下一页(>)?"]
"Shortcuts
map "q" nextTab
map "a" previousTab
map "d" scrollFullPageDown
map "s" goBack
map "f" createForegroundHint
@able8
able8 / ipfs-hosts.md
Created December 1, 2018 04:20
修改 hosts 文件 解决 ipfs 官网 ipfs.io 打不开 无法访问 的问题

dig ipfs.io @114.114.114.114 解析出ip不一样,说明 ipfs.io 官网被 dns 污染。

在电脑 hosts 文件 添加如下配置,可以正常访问

209.94.78.78 ipfs.io
209.94.90.1 ipfs.io 
@able8
able8 / gist-hosts.md
Last active March 8, 2020 10:06
修改 hosts 文件,解决 gist.github.com 被墙无法访问的问题,可以快速打开啦

在家可以访问 GitHub,但 gist.github.com 打不开,应该是被DNS污染。

解决办法是修改 hosts 文件,按大家说的改成如下确实可以访问,但速度很慢。

192.30.253.118 gist.github.com 
192.30.253.119 gist.github.com

我查了下github.com的IP,让后都换成解析出的3个IP地址,然后速度很快啦!

@able8
able8 / h2m.sh
Last active November 2, 2018 10:41
q
#!/bin/bash
BookUrl="http://cw.hubwiz.com/card/c/54ee8d2de564e519b8f8dad3/1/1/1/"
curl -s "${BookUrl}" | grep '" $' | awk -F '"' '{print "http://cw.hubwiz.com"$2}' > url.txt
MdFileName='js.md'
for url in $(cat url.txt)
do
echo $url
@able8
able8 / you-get-retry.sh
Last active April 2, 2023 03:42
下载出错,就重新执行下载。在bilibili下载时,经常会出错下载中断,需要重新运行命令才行。该脚本可以自动重试下载,直到下载完成后结束。
#!/bin/bash
url='https://www.bilibili.com/video/av17981530'
# 一行写法
while true; do you-get $url && { echo ok完成; break; } || { echo err出错,重试; sleep 5; }; done
while true; do you-get $url --playlist && { echo ok完成; break; } || { echo err出错,重试; sleep 5; }; done
{
// 打开全局自动补全
// "editor.quickSuggestions": true,
// markdownlint
"markdownlint.config": {
"default": true,
"MD009": false,
"MD007": { "indent": 4 },
"no-hard-tabs": false