Skip to content

Instantly share code, notes, and snippets.

View dougluce's full-sized avatar

Doug Luce dougluce

View GitHub Profile
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.
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,
@dougluce
dougluce / job.txt
Last active August 14, 2020 21:08
AOSP Engineer at Promethean
* Who is Promethean?
We're an education technology company serving K-12 classrooms. We were
founded a little over two decades ago. Our product line evolved from
projector whiteboards to the large-format interactive touch displays
that are our flagship products today.
At the heart of Promethean is a team of education strategists,
designers, and technologists dedicated to empowering teachers and
students around the world. Our goal is to bring the benefits of
otlu% gmake
Scanning dependencies of target skypeweb
[ 14%] Building C object CMakeFiles/skypeweb.dir/skypeweb_connection.c.o
[ 28%] Building C object CMakeFiles/skypeweb.dir/skypeweb_contacts.c.o
[ 42%] Building C object CMakeFiles/skypeweb.dir/skypeweb_login.c.o
[ 57%] Building C object CMakeFiles/skypeweb.dir/skypeweb_messages.c.o
[ 71%] Building C object CMakeFiles/skypeweb.dir/skypeweb_util.c.o
[ 85%] Building C object CMakeFiles/skypeweb.dir/libskypeweb.c.o
[100%] Linking C shared library libskypeweb.so
/usr/bin/ld: cannot find -lpurple