Skip to content

Instantly share code, notes, and snippets.

#EXTM3U
#EXTINF:0,kexp320.mp3
https://kexp.streamguys1.com/kexp320.mp3
#EXTINF:0,kexp128.mp3
https://kexp.streamguys1.com/kexp128.mp3
#EXTINF:0,kexp160.aac
https://kexp.streamguys1.com/kexp160.aac
#EXTINF:0,kexp64.aac
https://kexp.streamguys1.com/kexp64.aac
@jamesliu96
jamesliu96 / bambient.user.js
Last active April 11, 2024 06:38
Bilibili Ambient Mode
// ==UserScript==
// @name BAMBIENT
// @version 1.1.3
// @description Bilibili Ambient Mode
// @author jamesliu96
// @license MIT
// @namespace https://jamesliu.info/
// @homepage https://gist.github.com/jamesliu96/03775eba64ff6b26efd6ee2676354f52
// @match https://*.bilibili.com/*
// @icon https://www.bilibili.com/favicon.ico
@jamesliu96
jamesliu96 / badtag.user.js
Last active January 18, 2024 08:28
Bilibili AD TAGging - tagging ad videos by analyzing danmaku stats
// ==UserScript==
// @name BADTAG
// @version 1.2.5
// @description Bilibili AD TAGging - tagging ad videos by analyzing danmaku stats
// @author jamesliu96
// @license MIT
// @namespace https://jamesliu.info/
// @homepage https://gist.github.com/jamesliu96/aeef912d74bdd184cbb6781f1f3939b1
// @match https://*.bilibili.com/*
// @icon https://www.bilibili.com/favicon.ico
options:
parameters:
author: jamesliu96
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: jamesliu96
description: ''
gen_cmake: 'On'
#EXTM3U x-tvg-url="https://pcalpha.coding.net/p/android/d/epg/git/raw/master/epg_cntv.xml"
#EXTINF:-1 tvg-name="CCTV1" group-title="央视频道" tvg-logo="https://pcalpha.coding.net/p/android/d/playlist/git/raw/master/logo/CCTV1.png" ,CCTV1
http://iptv.tvfix.org/hls/cctv1hd.m3u8
#https://pcalpha.coding.net/p/android/d/playlist/git/raw/master/cmcc/channels/CCTV1.m3u8
#EXTINF:-1 tvg-name="CCTV2" group-title="央视频道" tvg-logo="https://pcalpha.coding.net/p/android/d/playlist/git/raw/master/logo/CCTV2.png" ,CCTV2
http://iptv.tvfix.org/hls/cctv2hd.m3u8
#https://pcalpha.coding.net/p/android/d/playlist/git/raw/master/cmcc/channels/CCTV2.m3u8
#EXTINF:-1 tvg-name="CCTV3" group-title="央视频道" tvg-logo="https://pcalpha.coding.net/p/android/d/playlist/git/raw/master/logo/CCTV3.png" ,CCTV3
http://iptv.tvfix.org/hls/cctv3hd.m3u8
#https://pcalpha.coding.net/p/android/d/playlist/git/raw/master/cmcc/channels/CCTV3.m3u8
class BlobReader {
public static toBytes = (ab: ArrayBuffer) => new Uint8Array(ab);
public static EOF = new Error('EOF');
public static LOCK = new Error('LOCK');
private _remain!: Blob;
private _offset = 0;
private _end = false;
@jamesliu96
jamesliu96 / dc.js
Last active January 2, 2023 17:38
Bilibili Live Danmaku Client for Node.js
function exitWithErr(...args) {
console.error('error:', ...args);
process.exit(-1);
}
let roomId = process.argv[2];
if (!roomId) exitWithErr('please provide roomId');
const DEBUG = false;
/** Brainfuck VM */
class BFVM {
static ParseError = class extends Error {
constructor() {
super('parse error');
}
};
static PtrOutOfRangeError = class extends Error {
constructor() {
@jboone
jboone / morse_synth.py
Last active June 7, 2022 16:32
Morse code baseband file synthesizer for HackRF.
#!/usr/bin/env python
# Copyright (C) 2015 Jared Boone, ShareBrained Technology
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,