Skip to content

Instantly share code, notes, and snippets.

@Airead
Airead / tvbox.json
Last active September 6, 2025 04:12
tvbox
{
"lives": [],
"wallpaper": "https://example.com/path/to/wallpaper.jpg",
"sites": [
{
"key": "HongNiu",
"name": "红牛资源",
"type": 1,
"api": "https://www.hongniuzy2.com/api.php/provide/vod/",
"searchable": 1,
@Airead
Airead / bj-unicom-iptv.m3u
Last active March 27, 2024 11:40
bj-unicom-iptv
#EXTM3U x-tvg-url="http://epg.51zmt.top:8000/e.xml.gz"
#EXTINF:-1 tvg-id="1" tvg-name="CCTV1" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV1.png" group-title="[高清]央视",CCTV-1综合[高清]
http://192.168.50.1:8012/rtp/239.3.1.129:8008
#EXTINF:-1 tvg-id="2" tvg-name="CCTV2" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV2.png" group-title="[高清]央视",CCTV-2财经[高清]
http://192.168.50.1:8012/rtp/239.3.1.60:8084
#EXTINF:-1 tvg-id="3" tvg-name="CCTV3" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV3.png" group-title="[高清]央视",CCTV-3综艺[高清]
http://192.168.50.1:8012/rtp/239.3.1.172:8001
#EXTINF:-1 tvg-id="4" tvg-name="CCTV4" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV4.png" group-title="[高清]央视",CCTV-4中文国际[高清]
http://192.168.50.1:8012/rtp/239.3.1.105:8092
#EXTINF:-1 tvg-id="22" tvg-name="CCTV4EUO" tvg-logo="http://epg.51zmt.top:8000/tb1/CCTV/CCTV4EUO.png" group-title="[高清]央视",CCTV-4 中文国际 欧洲[高清]
@Airead
Airead / rsa_test.py
Created December 21, 2020 10:02
pycryptodome RSA example
#!/usr/bin/env python3
import click, sys
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
from Crypto.Signature import pkcs1_15
RSA_PRIVATE_KEY_PATH="test_rsa"
def generate_rsa_key(file, private_type, public_type, bits=2048):
key = RSA.generate(bits)
@Airead
Airead / README.md
Created June 12, 2020 08:44 — forked from tombigel/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

根据Unicode5.0整理如下:
1)标准CJK文字
http://www.unicode.org/Public/UNIDATA/Unihan.html
2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF
http://www.unicode.org/charts/PDF/UFF00.pdf
3)CJK部首补充:2E80-2EFF
http://www.unicode.org/charts/PDF/U2E80.pdf
@Airead
Airead / break.js
Created April 12, 2017 08:52
破解防盗链
function getImgIframe(url) {
var frameid = 'frameimg' + generateId();
var ifr = document.createElement('iframe');
window[frameid] = [
'<img id="img" src="', url, '?', frameid, '" />',
'<script>',
'window.onload = function() {',
// 'var parentIframe = parent.document.getElementById("', frameid, '");',
'var img = document.getElementById("img");',
@Airead
Airead / detect-private-browsing.js
Created March 24, 2016 06:47 — forked from cou929/detect-private-browsing.js
Detect private browsing mode (InPrivate Browsing or Incognito).
function retry(isDone, next) {
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false;
var id = window.setInterval(
function() {
if (isDone()) {
window.clearInterval(id);
next(is_timeout);
}
if (current_trial++ > max_retry) {
window.clearInterval(id);
@Airead
Airead / xinxiang.html
Created March 3, 2016 03:37
xinxiang.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>test</title>
<style>
body {
position: absolute;
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@Airead
Airead / react-study-gulpfile.js
Last active January 17, 2016 11:00
react study gulpfile.js
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var browser = require('browser-sync');
var browserify = require('browserify');
var shell = require('child_process').execSync;
var glob = require('glob');
var source = require('vinyl-source-stream');
var async = require('async');