Skip to content

Instantly share code, notes, and snippets.

View dougluce's full-sized avatar

Doug Luce dougluce

View GitHub Profile
@dougluce
dougluce / crypto-prince.txt
Created December 14, 2024 05:10
New take on ancient scam
Date: Thu, 12 Dec 2024 16:43:32
From: Bekzath H <admin@amarket.cryptolendify.com>
Reply-To: bekzath@andalfinance.com
To: doug@arin.con.com
Subject: For your attention 12-12-2024
I am  Prof. Bekzath H, an investment consultant with a Wealth Growth Solution Company in Asia.
I have some old Chinese business clients who have about one hundred Million USDT ETHEREUM  stored in their platform. Because China is under crypto ban, they they are unable to
@dougluce
dougluce / download_nvd.zsh
Last active September 3, 2024 15:10
ZSH script to download CVE data from https://nvd.nist.gov/ using the 2.0 API
#!/usr/bin/env zsh
#
# Available from:
# https://gist.github.com/dougluce/e59109adaf027d1b622039a79921e96f
#
# Copyright 2024 Douglas Allen Luce
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
Date: Wed, 30 Aug 2023 14:31:59
From: The International Society of Explosives Engineers <Isee@isee.org>
To: nick@hoover.con.com
Subject: Important Notice Regarding Unauthorized Housing Companies
It has come to our attention that unauthorized housing companies have been reaching out to ISEE exhibitors,
sponsors, and prospective attendees.
@dougluce
dougluce / tiny.pdf
Last active January 8, 2023 20:44
Tiny hand-composed PDF for unit tests.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dougluce
dougluce / index.html
Created November 28, 2022 18:57
Markdown web page -- text in a hidden div, convert witha little script...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://unpkg.com/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://unpkg.com/showdown/dist/showdown.min.js" crossorigin></script>
</head>
<body>
@dougluce
dougluce / gist:a21e46d9a389f4d7c2e3fce17df6ad7b
Created November 19, 2021 00:19
Peertube upload 429 error
[vid.local:443] 2021-11-18 15:10:39.905 info: Video with name Soil Presentation (Nov 2021) and uuid 0026a5f1-a919-46cc-8140-b18522ca9e54 created.
[vid.local:443] 2021-11-18 15:10:40.194 info: 127.0.0.1 - - [18/Nov/2021:23:10:40 +0000] "POST /api/v1/videos/upload HTTP/1.0" 200 102 "-" "-"
[vid.local:443] 2021-11-18 15:10:41.094 info: 127.0.0.1 - - [18/Nov/2021:23:10:41 +0000] "GET /api/v1/videos/0026a5f1-a919-46cc-8140-b18522ca9e54 HTTP/1.0" 200 2910 "-" "-"
[vid.local:443] 2021-11-18 15:10:41.165 info: 127.0.0.1 - - [18/Nov/2021:23:10:41 +0000] "GET /api/v1/videos/0026a5f1-a919-46cc-8140-b18522ca9e54 HTTP/1.0" 200 2910 "-" "-"
[vid.local:443] 2021-11-18 15:10:41.232 info: 127.0.0.1 - - [18/Nov/2021:23:10:41 +0000] "GET /api/v1/videos/0026a5f1-a919-46cc-8140-b18522ca9e54 HTTP/1.0" 200 2910 "-" "-"
[vid.local:443] 2021-11-18 15:10:41.300 info: 127.0.0.1 - - [18/Nov/2021:23:10:41 +0000] "GET /api/v1/videos/0026a5f1-a919-46cc-8140-b18522ca9e54 HTTP/1.0" 200 2910 "-" "-"
[vid.local:443] 2021-11-18 15:10:41.375 inf
@dougluce
dougluce / Semipseudocode
Last active October 22, 2021 22:58
Two downloads at a time from a big list of downloads
import java.util.concurrent.Semaphore
// ...
const CONCURRENT_DOWNLOADS = 2
val queue = Sempahore(CONCURRENT_DOWNLOADS)
fun download(url: URL) {
// .. do the download
queue.release()
}
@dougluce
dougluce / index.html
Last active August 27, 2021 20:36
First web-only React app
<script src="https://unpkg.com/react@17/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js" crossorigin></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script type="text/babel">
const schedule = [
['Friday, Aug 27th', [
['3pm', 'Leave home'],
['', 'Arrive REI, pick up items'],
['', 'Arrive Mountaineers, pick up maps'],
['6pm', "Arrive Olympic Nat'l Park Visitor Center"],
@dougluce
dougluce / Original
Created November 25, 2020 10:05
Received scam email
Return-Path: <srs0=5idq=e5=bol.com.br=christianmoreno1964@toma.horph.com>
X-Original-To: doug@toma.horph.com
Delivered-To: doug@toma.horph.com
Received: by toma.horph.com (Postfix, from userid 1008)
id B3F0112CCC8; Sun, 22 Nov 2020 17:16:37 -0800 (PST)
Authentication-Results: toma.horph.com;
dkim=pass (1024-bit key; unprotected) header.d=bol.com.br header.i=@bol.com.br header.b=dJpeH7A5
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on toma.horph.com
X-Spam-Level: **
X-Spam-Status: No, score=2.2 required=4.0 tests=BAYES_00,BITCOIN_EXTORT_01,