Skip to content

Instantly share code, notes, and snippets.

# 字体设置
font-family = BlexMono Nerd Font Mono
font-size = 16
# 主题和样式
theme = GruvboxDarkHard
cursor-style = block
adjust-cell-height = 35%
@Micro-sheep
Micro-sheep / 监控涨停股.md
Last active October 13, 2024 15:06
使用 Python 监控 A 股涨停股
  • Python 版本 3.7 以及以上
  • 安装依赖的库
pip install efinance>=0.4.2
  • 监控代码如下
import requests
<script type="text/javascript">
let res = [
{pid: null, id: 1, name: '部门A'},
{pid: null, id: 2, name: '部门B'},
{pid: null, id: 3, name: '部门C'},
{pid: 1, id: 4, name: '部门A'},
{pid: 4, id: 5, name: '部门A'},
{pid: 7, id: 6, name: '部门A'},
{pid: 1, id: 7, name: '部门A'},
{pid: 3, id: 8, name: '部门A'},
@Restry
Restry / easymock-docker-compose.yml
Created April 25, 2020 10:54
docker compose 文件。 可视化快速生成模拟数据的持久化服务,官方站点:https://easy-mock.com
version: '3'
services:
mongodb:
image: mongo:3.4.1
volumes:
# ./data/db 数据库文件存放地址,根据需要修改为本地地址
- './data/db:/data/db'
networks:
- easy-mock
@liu246542
liu246542 / gangao.dpl
Last active July 30, 2024 22:37
各种直播源
DAUMPLAYLIST
1*file*http://cloud-play.hhalloy.com/live/cf4d66edc142b2f0cc8c71bca56b2268.m3u8
1*title*中视新闻[HD]
2*file*http://cloud-play.hhalloy.com/live/a4aa25e01a432729323f4d0778605887.m3u8
2*title*DWTV
3*file*http://cloud-play.hhalloy.com/live/1aab6cf57296bdefc6f4bea94702782a.m3u8
3*title*新加坡亚洲新闻台
4*file*http://cloud-play.hhalloy.com/live/4677cf6625ce01b236bbb58f99094d51.m3u8
4*title*寰宇新闻[HD]
5*file*http://cloud-play.hhalloy.com/live/7c52797bf1ca2da52c212bdead1d607c.m3u8
@InJeCTrL
InJeCTrL / download_index.py
Last active October 19, 2024 11:50
MindGo下载股票指数数据
//JS获取table列
var str = null;
var obj = document.getElementById(123)
var len = obj.rows.length
for (var i = 1;i<len;i++)
{
str += "\"";
str += obj.rows.item(i).cells.item(0).innerHTML;
str += "\",";
}
@LiteCoder
LiteCoder / CCTV5
Created June 29, 2018 14:17
CCTV5直播源
★ 代表个人推荐度————海外人士首选,来自huarenTV——————
★★★★★★CCTV5 http://lcok.net/live/tao.m3u8
★★★★★★CCTV5 http://lcok.net/live/tao2.m3u8
★★★★★★CCTV 5+http://lcok.net/live/jia.m3u8
★★★★★★CCTV 5+http://lcok.net/live/jia2.m3u8
———————只能用播放器,如遇无法打开,依次继续用下面的链接,6月29日更新:下面链接随时会挂,不定时恢复———————————
★★★★★★CCTV5 蓝光 (四川电信,延迟10秒,所有浏览器&#10008;,海外党√,Windows 用 potplayer,Mac和安卓用 MPV)
rtsp://118.123.56.56:554/PLTV/88888893/224/3221227219/10000100000000060000000001366244_0.smil
rtsp://118.123.56.55:554/PLTV/88888893/224/3221227219/10000100000000060000000001366244_0.smil
rtsp://118.123.56.54:554/PLTV/88888893/224/3221227219/10000100000000060000000001366244_0.smil
@steven2358
steven2358 / ffmpeg.md
Last active May 5, 2025 07:54
FFmpeg cheat sheet
@yorickshan
yorickshan / Regular_Expression
Last active June 13, 2024 03:03
[Frequently-Used Regular Expression] 常用正则表达式总结 #regex
[正则表达式](http://www.runoob.com/regexp/regexp-intro.html)
一、校验数字的表达式
1 数字:^[0-9]*$
2 n位的数字:^\d{n}$
3 至少n位的数字:^\d{n,}$
@baymaxium
baymaxium / content.md
Created October 18, 2017 13:01
线上服务内存OOM问题定位三板斧

原文:架构师之路

相信大家都有感触,线上服务内存OOM的问题,是最难定位的问题,不过归根结底,最常见的原因:

本身资源不够

申请的太多

资源耗尽