Skip to content

Instantly share code, notes, and snippets.

View dougluce's full-sized avatar

Doug Luce dougluce

View GitHub Profile
@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
gistup
package main
import (
"encoding/base64"
"fmt"
yaml "gopkg.in/yaml.v2"
"regexp"
)
var fixtureFiles = `
func e(input string) string {
return base64.URLEncoding.EncodeToString([]byte(input))
}
var fixtureFiles = map[string]string{
"digger_static_06-09-16-11:18:48": `josephmaltz 30
josephmaltz 20
robjerfy 50
josephmaltz 10`,
"digger_static_06-09-16-11:19:59": `robjerfy 3
while(<>) {
chomp;
my $len = length($_);
my $steps = int(log($len)/log(10));
for (my $o = $steps; $o >= 0; $o--) {
my $n = 1;
for (my $i = 0; $i < $len-(10**$o)+1; $i+= 10**$o) {
print " " x ((10**$o)-1) . ($n++ % 10);
}
print "\n";
@dougluce
dougluce / keybase.md
Created August 3, 2016 21:54
Keybase proof

Keybase proof [37/2211]

I hereby claim:

  • I am dougluce on github.
  • I am dougluce (https://keybase.io/dougluce) on keybase.
  • I have a public key ASA4wq7OzwGkwHFTryhWIsmodyI1jwEBiNdigTOHRAX2cQo

To claim this, I am signing this object:

@dougluce
dougluce / svelte.txt
Last active July 6, 2016 21:34
Python Got Too Big
from email.header import decode_header
import sys,re
for line in sys.stdin:
if re.match('(From|Subject|To): ', line):
dh = decode_header(line)
print ' '.join([unicode(t[0], t[1] or 'ASCII') for t in dh])
@dougluce
dougluce / gist:1956acf8d35e42aab3f2
Created March 14, 2016 19:39
R script for scraping cloning stats from Github clone graphs.
library(jsonlite)
library(httr)
library(XML)
username <- "allenluce"
repo <- "mmap-object"
password <- "allenluce's password"
# Go to Github
response <- GET ("https://github.com/login")