humungus - gruss

i am gravely disappointed

there has been too much violence

overview - files - changes - downloads

71ae5ed29c59 on 2019-03-19 22:59:02 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

icon

da9b96906233 on 2019-03-19 22:58:33 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

flatten a function

ef345946bb05 on 2019-03-16 17:11:16 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

Added tag v0.9.5 for changeset 4304b9086204

4304b9086204 on 2019-03-16 17:08:29 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

remove noise from css link

b497b9d1d750 on 2019-03-16 17:04:44 -0400 EDT by Ted Unangst <tedu@tedunangst.com>

logout csrf

be0074495628 on 2019-03-09 00:30:16 -0500 EST by Ted Unangst <tedu@tedunangst.com>

magic reflection sauce for login userinfo

dde13d9927ca on 2019-03-08 13:52:40 -0500 EST by Ted Unangst <tedu@tedunangst.com>

tie csrf to auth cookie

5efc3034bfda on 2019-03-07 19:58:57 -0500 EST by Ted Unangst <tedu@tedunangst.com>

close div, not open

f8460423f2dc on 2019-03-07 11:58:31 -0500 EST by Ted Unangst <tedu@tedunangst.com>

only call getconfig in init

7319f322a570 on 2019-03-07 11:26:48 -0500 EST by Ted Unangst <tedu@tedunangst.com>

longer cache time for css

5d6e39065d6b on 2019-03-06 23:59:14 -0500 EST by Ted Unangst <tedu@tedunangst.com>

avoid redundant login wrapper layers

676bb47ab801 on 2019-03-06 23:22:26 -0500 EST by Ted Unangst <tedu@tedunangst.com>

go fmt doesn't belong in build

69745b297eab on 2019-03-06 02:09:26 -0500 EST by Ted Unangst <tedu@tedunangst.com>

don't need opendatabase in main anymore

6869dd461747 on 2019-03-05 14:17:26 -0500 EST by Ted Unangst <tedu@tedunangst.com>

use queryrow where useful

b29e830f5652 on 2019-03-05 13:58:56 -0500 EST by Ted Unangst <tedu@tedunangst.com>

use queryrow for single row

a9703f7cd848 on 2019-03-05 13:54:09 -0500 EST by Ted Unangst <tedu@tedunangst.com>

touch up userinfo

48d1051a6569 on 2019-03-05 13:52:48 -0500 EST by Ted Unangst <tedu@tedunangst.com>

simplify csrf code a bit

f1a483c96dc8 on 2019-03-05 03:35:32 -0500 EST by Ted Unangst <tedu@tedunangst.com>

ratelimit password guessing

68c66fc9b084 on 2019-03-05 02:52:22 -0500 EST by Ted Unangst <tedu@tedunangst.com>

cleanup login

03cc7c284382 on 2019-03-05 01:45:13 -0500 EST by Ted Unangst <tedu@tedunangst.com>

cleaner more reliable init

48a8c09391dd on 2019-03-05 01:37:45 -0500 EST by Ted Unangst <tedu@tedunangst.com>

init csrfkey

1e6a14fb98df on 2019-03-05 01:28:36 -0500 EST by Ted Unangst <tedu@tedunangst.com>

csrf protection

4252bbe6f027 on 2019-03-05 00:54:40 -0500 EST by Ted Unangst <tedu@tedunangst.com>

getinfo function for consistent templates

fb1978b0e4c9 on 2019-03-05 00:52:00 -0500 EST by Ted Unangst <tedu@tedunangst.com>

make login more like other pages

f7e82edc669b on 2019-03-05 00:48:06 -0500 EST by Ted Unangst <tedu@tedunangst.com>

rework the login wrapping code

412ebfcd7889 on 2019-03-01 12:05:07 -0500 EST by Ted Unangst <tedu@tedunangst.com>

Added tag v0.9.4 for changeset a06f63eb8e2f

a06f63eb8e2f on 2019-02-28 17:17:19 -0500 EST by Ted Unangst <tedu@tedunangst.com>

prefer // comments

623b6453a0a5 on 2019-02-28 17:05:54 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add init command. rework cmd interface.

d3f6063bc3e9 on 2019-02-28 01:29:48 -0500 EST by Ted Unangst <tedu@tedunangst.com>

allow listening on unix sockets

aeb2c6fa35a0 on 2019-02-25 11:25:32 -0500 EST by Ted Unangst <tedu@tedunangst.com>

default to secure cookies

4f935e465470 on 2019-02-24 20:52:26 -0500 EST by Ted Unangst <tedu@tedunangst.com>

don't need to log about feedburner

2f1f3ad126d3 on 2019-02-24 20:48:33 -0500 EST by Ted Unangst <tedu@tedunangst.com>

no need to parse duration for constants

7127f8a4516a on 2019-02-24 20:43:30 -0500 EST by Ted Unangst <tedu@tedunangst.com>

the lastunread counter can become unsynced by various means.
just update it once per day, that's good enough.

59f42f7aa556 on 2019-02-24 20:42:32 -0500 EST by Ted Unangst <tedu@tedunangst.com>

alas, using a long slow transaction blocks other database access.
auto commit is good enough.

7de4c35325dc on 2019-02-24 19:25:31 -0500 EST by Ted Unangst <tedu@tedunangst.com>

combine if/else

d3b75f2fa3a2 on 2019-02-23 21:05:34 -0500 EST by Ted Unangst <tedu@tedunangst.com>

one shot operation for feed only

7637da5d0353 on 2019-02-23 20:55:19 -0500 EST by Ted Unangst <tedu@tedunangst.com>

finish converting feeder to statements and transactions

b600032574a1 on 2019-02-23 20:32:30 -0500 EST by Ted Unangst <tedu@tedunangst.com>

convert feeder to statements

0886f9ea4376 on 2019-02-23 20:19:37 -0500 EST by Ted Unangst <tedu@tedunangst.com>

convert most of reader to statements

7b49ecc67658 on 2019-02-23 20:06:54 -0500 EST by Ted Unangst <tedu@tedunangst.com>

more database shuffling about

0efb7def0b51 on 2019-02-23 19:44:04 -0500 EST by Ted Unangst <tedu@tedunangst.com>

start using statements for database queries.
hide the global db behind a function.

00396f6b21f9 on 2019-02-22 02:25:49 -0500 EST by Ted Unangst <tedu@tedunangst.com>

dig around to find feedburner links

445d56ca9ccf on 2019-02-19 13:48:47 -0500 EST by Ted Unangst <tedu@tedunangst.com>

term: search box that mostly works

eddeafdf2d2d on 2019-02-19 03:15:26 -0500 EST by Ted Unangst <tedu@tedunangst.com>

term: update the textview after a bit of a delay, but remain responsive.
reduces writes when fast scrolling.

c71f70fcbbef on 2019-02-19 02:31:14 -0500 EST by Ted Unangst <tedu@tedunangst.com>

termreader: add open browser command

37d6f30aa8df on 2019-02-19 02:02:41 -0500 EST by Ted Unangst <tedu@tedunangst.com>

termreader: add markread and refresh

42db70a6c76c on 2019-02-19 01:41:20 -0500 EST by Ted Unangst <tedu@tedunangst.com>

tview wordwrap is a bit slow, and introduces too much lag.
a less perfect line breaker is much faster.

d2d47c56849e on 2019-02-19 01:18:21 -0500 EST by Ted Unangst <tedu@tedunangst.com>

reduce the amount of processing done on body content per view

c31b708545fe on 2019-02-19 01:08:37 -0500 EST by Ted Unangst <tedu@tedunangst.com>

blank boxes work a little better for spacing

e585831f3131 on 2019-02-18 14:43:27 -0500 EST by Ted Unangst <tedu@tedunangst.com>

check listen and serve for errors

2ff094e12a37 on 2019-02-18 14:41:21 -0500 EST by Ted Unangst <tedu@tedunangst.com>

make building the term reader optional

e3e931c7ba64 on 2019-02-18 14:35:12 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add a hash param to style.css

c94c165d5d85 on 2019-02-18 13:36:56 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add a bit of styling so login looks like other pages

41b72f6d4adf on 2019-02-17 20:25:38 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add an incomplete terminal reader too

85fe9a72e0cb on 2019-02-16 16:02:21 -0500 EST by Ted Unangst <tedu@tedunangst.com>

avoid race reloading templates

beef9021dbd7 on 2019-02-16 04:00:10 -0500 EST by Ted Unangst <tedu@tedunangst.com>

replace writestring(sprintf) with fprintf

e18a032ee4db on 2019-02-16 03:15:07 -0500 EST by Ted Unangst <tedu@tedunangst.com>

listenaddr should be configurable

7057e051b7e5 on 2019-02-16 03:09:11 -0500 EST by Ted Unangst <tedu@tedunangst.com>

Added tag v0.9.3 for changeset b22f07c62d64

b22f07c62d64 on 2019-02-16 03:08:23 -0500 EST by Ted Unangst <tedu@tedunangst.com>

always put a p after link text, so the button doesn't get lost

d82053b871d9 on 2019-02-16 03:07:55 -0500 EST by Ted Unangst <tedu@tedunangst.com>

allow runtime debugging of templates

9080967e4fbb on 2019-02-15 20:54:41 -0500 EST by Ted Unangst <tedu@tedunangst.com>

udpates and changes to make bannedimg list a config option

b82ca5401de3 on 2019-02-14 00:54:30 -0500 EST by Ted Unangst <tedu@tedunangst.com>

Added tag v0.9.2 for changeset ee93b07ec105

ee93b07ec105 on 2019-02-14 00:54:20 -0500 EST by Ted Unangst <tedu@tedunangst.com>

i guess search is a feature.

e2b76ab326b2 on 2019-02-14 00:39:05 -0500 EST by Ted Unangst <tedu@tedunangst.com>

no slashes after requirement paths

cdaa0d3b1385 on 2019-02-13 23:20:19 -0500 EST by Ted Unangst <tedu@tedunangst.com>

fill out readme a bit more

bb97de720ac6 on 2019-02-13 23:10:07 -0500 EST by Ted Unangst <tedu@tedunangst.com>

too much whitespace in readme

a73fde3fade2 on 2019-02-12 12:29:42 -0500 EST by Ted Unangst <tedu@tedunangst.com>

make iframe link a link

e047113ca358 on 2019-02-12 12:17:52 -0500 EST by Ted Unangst <tedu@tedunangst.com>

don't reset img height, the tag has attrs now

92f0df40b3a4 on 2019-02-06 18:03:14 -0500 EST by Ted Unangst <tedu@tedunangst.com>

copyright

e85123064f73 on 2019-02-06 17:27:44 -0500 EST by Ted Unangst <tedu@tedunangst.com>

more consistent logging

ad8567792c87 on 2019-02-06 17:08:55 -0500 EST by Ted Unangst <tedu@tedunangst.com>

Added tag v0.9.1 for changeset 6013bb02023e

6013bb02023e on 2019-02-06 16:56:32 -0500 EST by Ted Unangst <tedu@tedunangst.com>

convert to using fulltext search

591d0bf7abd2 on 2019-02-06 14:04:55 -0500 EST by Ted Unangst <tedu@tedunangst.com>

Added tag v0.9.0 for changeset 17e0e587fb75

17e0e587fb75 on 2019-02-05 22:02:03 -0500 EST by Ted Unangst <tedu@tedunangst.com>

string builder claims to be more efficient than bytes buffer

7db22f42a10b on 2019-02-05 21:59:36 -0500 EST by Ted Unangst <tedu@tedunangst.com>

remember to close resp.body

5bcbfd4fd105 on 2019-02-05 21:56:36 -0500 EST by Ted Unangst <tedu@tedunangst.com>

use a pointer for the gzcloser type

f727a2eacde6 on 2019-02-05 21:53:48 -0500 EST by Ted Unangst <tedu@tedunangst.com>

check templates for error just in case

6681e0f3b10b on 2019-02-05 21:47:52 -0500 EST by Ted Unangst <tedu@tedunangst.com>

can use rawbytes to save a copy

0f623b5e70ab on 2019-02-05 21:23:41 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add lastunread to user to prevent full scans of userlinks

17c14050c066 on 2019-02-05 20:24:42 -0500 EST by Ted Unangst <tedu@tedunangst.com>

eliminate useless logging

e84f9a143047 on 2019-02-05 20:21:26 -0500 EST by Ted Unangst <tedu@tedunangst.com>

include iframe in html

79bab9c7d741 on 2019-02-02 23:06:56 -0500 EST by Ted Unangst <tedu@tedunangst.com>

actually, just leave it. maybe useful.

44cc7cf5b07d on 2019-02-02 22:51:06 -0500 EST by Ted Unangst <tedu@tedunangst.com>

shouldn't need this anymore

8ee54e0783ef on 2019-02-02 16:25:06 -0500 EST by Ted Unangst <tedu@tedunangst.com>

don't like feedpress much either

13ddfd81860c on 2019-02-02 16:17:37 -0500 EST by Ted Unangst <tedu@tedunangst.com>

less jumping if imgs have to be rescaled

2ad78336dd50 on 2019-02-02 16:05:06 -0500 EST by Ted Unangst <tedu@tedunangst.com>

12h is an ok default checkinterval

1353e85a5cf9 on 2019-02-02 15:51:37 -0500 EST by Ted Unangst <tedu@tedunangst.com>

check for errors loading links

723b97f5eb4a on 2019-02-02 15:49:58 -0500 EST by Ted Unangst <tedu@tedunangst.com>

don't overescape titles. many are already escaeped.
just don't let any new tags through.

7a13f5d925fa on 2019-01-29 15:18:46 -0500 EST by Ted Unangst <tedu@tedunangst.com>

use a new type for gz to close without copying upfront

67fe40bf4bc7 on 2019-01-29 15:17:47 -0500 EST by Ted Unangst <tedu@tedunangst.com>

fix format string

09dd23145020 on 2019-01-29 14:31:05 -0500 EST by Ted Unangst <tedu@tedunangst.com>

sort feeds by name

2b1405c40985 on 2019-01-29 14:21:40 -0500 EST by Ted Unangst <tedu@tedunangst.com>

rescale img height if too wide

02e2f90fac98 on 2019-01-29 13:48:58 -0500 EST by Ted Unangst <tedu@tedunangst.com>

absolute urls in html

9cce84877846 on 2019-01-29 13:48:15 -0500 EST by Ted Unangst <tedu@tedunangst.com>

fix timer stop logic

c6b0b71a1b3b on 2019-01-27 16:12:45 -0500 EST by Ted Unangst <tedu@tedunangst.com>

rename dbconn to db. easier.

d65aedd4ecd6 on 2019-01-23 05:21:14 -0500 EST by Ted Unangst <tedu@tedunangst.com>

improve check interval and sleep loop

1fab34eaca1e on 2019-01-21 00:40:58 -0500 EST by Ted Unangst <tedu@tedunangst.com>

log the next check time

ecd6260f6b0b on 2019-01-19 03:34:36 -0500 EST by Ted Unangst <tedu@tedunangst.com>

rm some debug stuff that doesn't really belong here

0b210da94c8d on 2019-01-19 03:09:21 -0500 EST by Ted Unangst <tedu@tedunangst.com>

fix save feed sql

9c0fb89430b8 on 2019-01-19 03:07:39 -0500 EST by Ted Unangst <tedu@tedunangst.com>

error checking for saving feeds

be3913b74613 on 2019-01-18 19:56:01 -0500 EST by Ted Unangst <tedu@tedunangst.com>

i suck. print the img attrs in the right place.

69131556a658 on 2019-01-17 00:03:22 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add w, h to img

71f0e74ade37 on 2019-01-15 22:14:12 -0500 EST by Ted Unangst <tedu@tedunangst.com>

common.go not needed after combining reader and feeder

dc4ea55dd92a on 2019-01-15 22:10:34 -0500 EST by Ted Unangst <tedu@tedunangst.com>

always wake feeder after a save

1c01738d2af5 on 2019-01-15 19:24:20 -0500 EST by Ted Unangst <tedu@tedunangst.com>

allow varying the checkinterval, or disabling entirely

02194d17fc7f on 2019-01-13 02:43:08 -0500 EST by Ted Unangst <tedu@tedunangst.com>

we can handle 30 links now

1f11df55b5f5 on 2019-01-12 05:29:56 -0500 EST by Ted Unangst <tedu@tedunangst.com>

just stick with text emoji, thank you very much

8dca8b38e34e on 2019-01-11 05:46:43 -0500 EST by Ted Unangst <tedu@tedunangst.com>

resort imports

ece2d3a02557 on 2019-01-11 05:24:07 -0500 EST by Ted Unangst <tedu@tedunangst.com>

go fmt

d33b525bfff9 on 2019-01-10 23:05:06 -0500 EST by Ted Unangst <tedu@tedunangst.com>

header can run across on narrow screens

cc15837531a2 on 2019-01-08 00:34:54 -0500 EST by Ted Unangst <tedu@tedunangst.com>

update schema

e88400015b05 on 2019-01-08 00:26:46 -0500 EST by Ted Unangst <tedu@tedunangst.com>

belatedly add gruss.go

e54522a55713 on 2019-01-08 00:22:23 -0500 EST by Ted Unangst <tedu@tedunangst.com>

support multiple users...

c230425a8739 on 2019-01-07 23:24:26 -0500 EST by Ted Unangst <tedu@tedunangst.com>

split out the link getting function

d2a032c7884b on 2019-01-04 12:54:18 -0500 EST by Ted Unangst <tedu@tedunangst.com>

combine reader and feeder, check new feeds as added

a9297810323e on 2019-01-04 12:30:51 -0500 EST by Ted Unangst <tedu@tedunangst.com>

templates are pretty steady now

915297bfe6f3 on 2019-01-04 12:27:29 -0500 EST by Ted Unangst <tedu@tedunangst.com>

it's easier to understand tweets when not reversed

85dd41693d01 on 2019-01-03 14:53:28 -0500 EST by Ted Unangst <tedu@tedunangst.com>

switch to humungus sqlite

d93a867c7648 on 2019-01-02 22:37:27 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add an input for search

269a1ec2acff on 2019-01-02 21:36:18 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add search

4de40256682c on 2019-01-02 12:31:09 -0500 EST by Ted Unangst <tedu@tedunangst.com>

rename sqlite from lite

8539dcc7a73f on 2019-01-01 17:42:02 -0500 EST by Ted Unangst <tedu@tedunangst.com>

sup

d8f5e21a90cb on 2019-01-01 15:18:34 -0500 EST by Ted Unangst <tedu@tedunangst.com>

more complete img replacer, supports data: and title now.

012515b5713d on 2019-01-01 14:36:17 -0500 EST by Ted Unangst <tedu@tedunangst.com>

improve quoted tweets

b9817b1b18b2 on 2018-12-31 21:21:55 -0500 EST by Ted Unangst <tedu@tedunangst.com>

fiddle with style a bit

5431f83c8b77 on 2018-12-31 21:21:30 -0500 EST by Ted Unangst <tedu@tedunangst.com>

stop img loader propagating clicks

d15cd3796c79 on 2018-12-31 18:32:06 -0500 EST by Ted Unangst <tedu@tedunangst.com>

width and height got reversed

93dccb15978e on 2018-12-31 15:32:07 -0500 EST by Ted Unangst <tedu@tedunangst.com>

use guid as link for feedburner

8e832e7e6431 on 2018-12-31 15:28:50 -0500 EST by Ted Unangst <tedu@tedunangst.com>

be careful not to hide errors

6398c3a2f0aa on 2018-12-31 15:20:40 -0500 EST by Ted Unangst <tedu@tedunangst.com>

allow bulk marking for a feed

c62e211c6405 on 2018-12-31 14:51:08 -0500 EST by Ted Unangst <tedu@tedunangst.com>

allow h4-h6 tags

c039e580ef94 on 2018-12-31 14:43:15 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add some banned img hosts

3c779f4cc49e on 2018-12-31 14:30:51 -0500 EST by Ted Unangst <tedu@tedunangst.com>

fix check for existing img

914678a201be on 2018-12-31 14:23:51 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add a title

f52a11bed7a1 on 2018-12-31 14:19:40 -0500 EST by Ted Unangst <tedu@tedunangst.com>

add rel=noreffer

ab806fdf8652 on 2018-12-31 14:02:49 -0500 EST by Ted Unangst <tedu@tedunangst.com>

move add feed form to top

eec7252e815b on 2018-12-31 13:38:44 -0500 EST by Ted Unangst <tedu@tedunangst.com>

never stop feeding...

fd64dd1bc01d on 2018-12-31 13:23:57 -0500 EST by Ted Unangst <tedu@tedunangst.com>

switch back to localhost only binding

177a9386d5a3 on 2018-12-31 13:19:20 -0500 EST by Ted Unangst <tedu@tedunangst.com>

initial commit of something basically working