Skip to content

Instantly share code, notes, and snippets.

View binary4cat's full-sized avatar
🤑
I may be slow to respond.

cat binary4cat

🤑
I may be slow to respond.
View GitHub Profile
@binary4cat
binary4cat / stock_bkqd.json
Last active June 17, 2025 07:10
数据库
[{"date": "2025-05-19", "sectors": ["并购重组", "ST板块", "化工", "地产链", "机器人概念", "军工", "港口", "核电", "保健品", "宠物经济"]}, {"date": "2025-05-20", "sectors": ["并购重组", "ST板块", "医药", "文创产品", "芯片", "宠物经济", "一季报增长", "汽车零部件", "北交所", "业绩增长"]}, {"date": "2025-05-21", "sectors": ["ST板块", "并购重组", "锂电池", "医药", "化工", "智能驾驶", "保健品", "基础建设", "人工智能", "黄金"]}, {"date": "2025-05-22", "sectors": ["军工", "并购重组", "机器人概念", "人工智能", "核电", "ST板块", "银行", "医药", "芯片", "端侧AI"]}, {"date": "2025-05-23", "sectors": ["化工", "医药", "核电", "机器人概念", "锂电池", "次新股", "并购重组", "保健品", "实控人变更", "股权转让"]}, {"date": "2025-05-26", "sectors": ["核电", "ST板块", "化工", "无人物流车", "并购重组", "人工智能", "北交所", "酿酒", "机器人概念", "中科系"]}, {"date": "2025-05-28", "sectors": ["智能驾驶", "核电", "ST板块", "文创产品", "无人物流车", "黄金", "食品饮料", "农业", "环保", "海洋经济"]}, {"date": "2025-05-29", "sectors": ["智能驾驶", "数字经济", "医药", "核电", "机器人概念", "跨境支付", "环保", "金融概念", "芯片", "北交所"]}, {"date": "2025-05-30", "sectors": ["医药", "数字经济", "ST板块", "物流", "多胎概念", "银行", "地产链", "并购重组", "金融概念", "体育产业"]}, {"date": "2025-06-03", "sectors":
@binary4cat
binary4cat / xuangubao-dingpan.js
Created March 15, 2025 12:28
选股宝盯盘页面增强
// ==UserScript==
// @name 选股通盯盘增强
// @author binary4cat
// @namespace http://tampermonkey.net/
// @version 1.2
// @description 优化xuangutong.com.cn/dingpan页面体验
// @license Proprietary; All rights reserved. Redistribution or modification prohibited.
// @copyright 2025 binary4cat. Unauthorized copying or distribution is strictly forbidden.
// @match https://xuangutong.com.cn/dingpan
// @run-at document-end
@binary4cat
binary4cat / mwan3_interface.sh
Last active May 28, 2022 02:46
mwan3 interface auto restart
#!/bin/sh
mwan3 interfaces | awk '{if($4 != "online" && NR > 1) print $2}' | while read line; do
if [[ "$line" == "WAN" ]]; then
echo "------ eth1"
ip link set eth1 down
ip link set eth1 up
elif [[ "$line" == "WAN1" ]];then
echo "---- veth11"
ip link set veth11 down
@binary4cat
binary4cat / compress.go
Created January 14, 2022 07:42 — forked from bussiere/compress.go
compress uncompress a string in golang
package main
import (
"bytes"
"compress/gzip"
"fmt"
"encoding/base64"
"io/ioutil"
)
--[[
lvim is the global options object
Linters should be
filled in as strings with either
a global executable or a path to
an executable
]]
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
@binary4cat
binary4cat / Howto_Zsh5-6-2_Centos7.md
Created March 31, 2021 07:14 — forked from Semo/Howto_Zsh5-6-2_Centos7.md
How to install Zsh version 5.6.2 into CentOS 7

How to install Zsh version 5.6.2 into CentOS 7

Given that you have a clean installation of CentOS 7 which was already updated, by you, then you still have some dependencies to install make and install the external Zsh from the source. You must be root to get the stuff done.

Install GCC Development Tools

yum groupinstall "Development tools"

Check if it's working

@binary4cat
binary4cat / sse.go
Created April 7, 2020 06:59 — forked from ismasan/sse.go
Example SSE server in Golang
// Copyright (c) 2017 Ismael Celis
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
@binary4cat
binary4cat / use_fingerprint2.js
Created March 25, 2020 02:12
fingerprint2 demo
<script src="https://cdn.staticfile.org/fingerprintjs2/2.1.0/fingerprint2.min.js"></script>
<script>
function start() {
const start = new Date().getTime();
let view = document.querySelector('#view');
view.innerHTML = '';
let excludes = {};
if (!document.querySelector('#userAgent').checked) {
excludes.userAgent = true;
}
@binary4cat
binary4cat / DictionaryExtend.cs
Created January 31, 2019 09:00
c# Dictionary 相关扩展
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
namespace iCTR.WeiXin.Common.Extensions
{
/// <summary>
/// 字典类扩展
/// </summary>
public static class DictionaryExtend
@binary4cat
binary4cat / System.Dynamic.ExpandoObject_create.cs
Last active January 29, 2019 01:30
动态创建c#类,以及在Csvhelper中创建动态的数据对象
// my pretend dataset
List<string> fields = new List<string>();
// my 'columns'
fields.Add("this_thing");
fields.Add("that_thing");
fields.Add("the_other");
dynamic exo = new System.Dynamic.ExpandoObject();
foreach (string field in fields)