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 April 30, 2025 08:16
数据库
[{"date": "2025-04-25", "sectors": ["一季报增长", "电力", "机器人概念", "家电", "ST板块", "年报增长", "物流", "新型工业化", "并购重组", "旅游"]}, {"date": "2025-04-24", "sectors": ["一季报增长", "医药", "化工", "外贸", "电力", "宠物经济", "新材料概念", "两轮车", "ST摘帽", "银行"]}, {"date": "2025-04-23", "sectors": ["机器人概念", "汽车零部件", "外贸", "跨境支付", "ST板块", "年报增长", "一季报增长", "化工", "消费电子", "低空经济"]}, {"date": "2025-04-22", "sectors": ["物流", "外贸", "化工", "跨境支付", "医药", "一季报增长", "农业", "食品饮料", "多胎概念", "芯片"]}, {"date": "2025-04-21", "sectors": ["化工", "黄金", "食品饮料", "医药", "人工智能", "外贸", "大飞机", "ST板块", "机器人概念", "芯片"]}, {"date": "2025-04-18", "sectors": ["通信", "地产链", "北交所", "一季报增长", "钠电池", "海洋经济", "智能驾驶", "基础建设", "消费电子", "股权转让"]}, {"date": "2025-04-17", "sectors": ["芯片", "化工", "地产链", "外贸", "ST板块", "平台经济", "食品饮料", "医药", "大飞机", "人工智能"]}, {"date": "2025-04-28", "sectors": ["一季报增长", "化工", "电力", "影石概念", "文创产品", "股权转让", "就业概念", "实控人变更", "年报增长", "家电"]}, {"date": "2025-04-29", "sectors": ["一季报增长", "化工", "机器人概念", "新材料概念", "算力", "汽车零部件", "零售", "ST板块", "实控人变更", "多胎概念"]}, {"date": "2025-04-30", "s
@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)