Skip to content

Instantly share code, notes, and snippets.

@jdstroy
jdstroy / syncedTabsToBookmarksHTML.js
Created May 6, 2025 00:13 — forked from jscher2000/syncedTabsToBookmarksHTML.js
Export Synced Tabs List to "bookmarks.html" file (Browser Console script)
// Run code in Browser Console after enabling chrome debugging --
// about:config => devtools.chrome.enabled => true
// https://developer.mozilla.org/docs/Tools/Browser_Console
try {
var tabPromise = SyncedTabs._internal.getTabClients();
tabPromise.then((arrDevices) => {
if (arrDevices && arrDevices.length > 0){
// Generate a string with the format of a bookmark export file
var d, e, out = '<!DOCTYPE NETSCAPE-Bookmark-file-1>\n<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">\n<TITLE>Bookmarks</TITLE>\n<H1>Bookmarks Menu</H1>\n<DL><p>\n';
const escapeHtmlEntities = function(aText){return (aText || '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;')};

Keybase proof

I hereby claim:

  • I am jdstroy on github.
  • I am jdstroy (https://keybase.io/jdstroy) on keybase.
  • I have a public key ASDNBsn8LqG0YUjfuHAN9nKfN75lX-q1YVcCqBua4vU05wo

To claim this, I am signing this object:

@jdstroy
jdstroy / Readme.md
Last active May 8, 2024 07:09
Antennas Direct - ClearStream TV Digital Tuner - Info

The Antennas Direct ClearStream TV Digital Tuner is a low-cost single-tuner ATSC digital TV receiver with transcoding support.

Antennas Direct does not manufacture the device, but sells and supports it.

The manufacturer of the device is Geniatech Inc., which acquired the TV streaming assets of Elgato Systems.

The FCC ID of the device is ZJU-1E7D4N.

The device has a UART along the bottom of the baseboard; the pinout for the UART debug port (left to right, coaxial input on right, LEDs face-down, toward you) is

@jdstroy
jdstroy / prairiehome.py
Last active July 31, 2021 18:59
Scrape A Prairie Home Companion website for MP3s.
#!env python3
from bs4 import BeautifulSoup;
import urllib3;
import urllib.parse as urlparse;
import time;
import random;
class Main:
def __init__(self):
@jdstroy
jdstroy / socks-proxy-simple.py
Created March 23, 2020 11:19 — forked from nneonneo/socks-proxy-simple.py
A simple socks server via python - updated for Pythonista (iOS)
#!python2
# -*- coding: utf-8 -*-
# 一个简单的 Socks5 代理服务器 , 只有 server 端 , 而且代码比较乱
# 不是很稳定 , 而且使用多线程并不是 select 模型
# Author : WangYihang <[email protected]>
import socket
import threading
import sys
using System;
using System.IO;
using Microsoft.Win32;
using System.Threading;
using System.Runtime.InteropServices;
namespace TestTun
{
/// <summary>
/// Summary description for Class1.
Hawk (So shall I begin?)
22:37 Lok (yes poleezes!)
22:37 Lok (gets under blankets.)
22:38 Hawk (*tucks Lok in* Now once upon a time lots of drama happened..P)
22:38 Lok (teehee)
22:40 Hawk sucked in a deep breath, and knocked on the door to /her/ room. He tried to relax, but found he couldn't...his stupid arm kept twinging.
22:42 Hawk After his chat with Lok he'd decided to talk with other men...for research purposes of course. Many talks later he finally felt like he had enough information to do this right...now it was just a question of weather he had the nerve.
22:44 Hawk He mentally chided himself, 'I'm the goddamed Bloody Hawk, I've got nerves of steel!'. And yet still his legs quivered as he waited. He knocked again, louder this time.
22:44 Lok (I love seeing this side of hawk xD )
22:45 Hawk
On the way to Cyberdome, our heroes decided to take the opportunity to rest and make camp. As the days events went by, nightfall soon came. Paranoid as ever, Lok volunteered to take first watch.
18:32 Lok Soon, all but Lok had fallen fast asleep. The forest trees whistle softly during the night. Various forest critters can be heard.
18:32 Rocketgirl Shira says, "Stay awake," then goes to curl up in front of Heinrich's tent.
18:32 Rocketgirl (opps)
18:33 *** Rocketgirl is now known as Hawk
18:33 Lok Except Shira.
18:33 Lok Shira was also awake.
18:33 Lok nods, and heads to his post.
18:33 Hawk She falls asleep quickly though, snoring loudly in her dog form.
18:34 Lok An hour passes by. Lok yawns. It seems this tonight will be uneventful.
23:05
*** Lok joined #DW
23:05
Lok
Harro!
23:06
Rocketgirl
Hello. XD
Shira was excited, the lands outside Port Kapul weren't like the forest's of her home. No these woods were smaller and alive with new sights and smells! It felt so good to walk in nature once again.
18:40 Heinrich keeps a few paces behind her, not wanting to disturb anything she might be sneaking up on. It was her idea to come hunting, so he figures she knows what she's after, besides getting to know the land.
18:41 Shira Her child-like joy was contagious, "Heinrich I found another rabbit!" She displays the small creature's corpse to him with pride.
18:41 Shira (Shira joy = killing things XD)
18:42 Shira (brb, need to put whiny pup outside)
18:42 Heinrich (K.)
18:42 Heinrich raises an eyebrow. "You did indeed." It's a good thing that they multiply like... well...
18:43 Heinrich "You're really fast--is it because you can sneak up on them?"
18:46 Shira (back...I want to punt my Mother's stupid little dogs.)
18:46 Lok (back!)