about summary refs log tree commit diff
path: root/fun (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-10-20 r/1853 fix(tvl-ebooks): Update code to bring up to date with realityBen Cartwright-Cox1-16/+66
Fixes include: 1) users can now opt out of being mkov'd, instead their messages will be ascii blocked out. 2) highlights are avoided, by learning names from the main tvl channel and adding a dot after the first char, for example: > 21:31:35 <•eta-eb> m.ulti: bas1l we quickly connect controller is mostly agreed 3) highlight avoidance is now stored in redis, to avoid restarts from destroying the map and causing a bunch of highlights upon restart Change-Id: I1055992aab3a06aa1f4ba937fc3ef45f2f78cedc Reviewed-on: https://cl.tvl.fyi/c/depot/+/2054 Tested-by: BuildkiteCI Reviewed-by: cynthia <cynthia@tvl.fyi> Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: ben <tvl@benjojo.co.uk>
2020-09-27 r/1826 fix(tvl-ebooks): Fix bug where Cynthia was not correctly supressedBen Cartwright-Cox1-3/+3
Change-Id: Ic94d69e5e9dbe33a29dc00a3f0d9e848952dd1a0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2011 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
2020-09-27 r/1824 chore(tvl-ebooks): Add Nix derivationVincent Ambo1-0/+7
Welcome to CI! Change-Id: I8fae7b06c9867c60380cc237861ea29817045117 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2009 Tested-by: BuildkiteCI Reviewed-by: ben <tvl@benjojo.co.uk>
2020-09-27 r/1822 feat(ebooks): Add tvl-ebooks codeBen Cartwright-Cox8-0/+687
Change-Id: If519e789a91fbf427373daa383c6ae00ba5e0b6c Reviewed-on: https://cl.tvl.fyi/c/depot/+/2007 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
2020-09-27 r/1818 chore(paroxysm): Reduce quote upload timeout to 2 hoursVincent Ambo1-1/+1
I think 24 hours is more generous than we'd like these to be. Change-Id: Ie56822f98942ab74048d908ab821a404dc841e4a Reviewed-on: https://cl.tvl.fyi/c/depot/+/2003 Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: eta <eta@theta.eu.org> Tested-by: BuildkiteCI
2020-08-28 r/1733 feat(paroxysm): upload queries for all quotes to eta's pastebineta5-12/+116
- Currently, asking for all your quotes either stalls the bot, or doesn't result in you getting all your quotes, or both. This aims to resolve this oversight by shoving them all in a pastebin. - This uses the lovely `crimp` library by tazjin, which is really good at just doing HTTP stuff with minimal fuss. Amazing! (although we should probably actually use the depot version) - Everything is hard coded for now, but we probably don't care. - Stuff expires after 24 hours, for privacy reasons? - We also had to add a function to format entries without colours, and took the opportunity to clean up the format!() a bit. Change-Id: I6e75968c7da48a51fff327355b8fa2c025d0db75 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1872 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-08-26 r/1715 chore(tazjin/dt): Move project into user folderVincent Ambo4-120/+0
... missed this when going multi-user. Change-Id: If2c9f24555f82e944e3cebb45b2a13801cc1f35e Reviewed-on: https://cl.tvl.fyi/c/depot/+/1844 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-04 r/1580 chore: simplify buildGo expressionsedef1-1/+1
This removes redundant `map (p: p.gopkg)` expressions. Change-Id: If25d603c27d63ae011f396caf5d26cdfdb8c28d5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1625 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
2020-08-02 r/1551 style(paroxysm): Apply rustfmtVincent Ambo4-18/+18
Change-Id: I959b6a1008f1b0ef632c0194adc0f680e7c27d62 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1561 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-02 r/1546 refactor(paroxysm): Move lazy_static regex definitions to the topVincent Ambo1-15/+18
Change-Id: If04cc7ee72230f6b5163d33ef683bcb90bd9bc26 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1554 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-02 r/1545 chore(paroxysm): Bump minimum versions of some dependenciesVincent Ambo2-8/+8
Most of these had already been updated due to how dep constraints are solved, but it can't hurt to make it explicit. Change-Id: I1928f5e43a360505e9205f98d007674f6eaf9830 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1553 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-02 r/1544 chore(paroxysm): Remove no-op minor version constraintsVincent Ambo1-10/+10
... these don't do anything anyways. Change-Id: Id0b21443eda10361bfb384e876bbbf8fa2e97e15 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1551 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-02 r/1543 refactor(paroxysm): Use derive macros from serde crateVincent Ambo3-4/+5
serde_derive is deprecated, the macros have moved behind a feature-gate in serde itself. Change-Id: Ib42e7463a81006e23a4fe8a0e48f494610dc8e4c Reviewed-on: https://cl.tvl.fyi/c/depot/+/1550 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-02 r/1542 refactor(paroxysm): Explicitly macro imports, no more 'extern crate'Vincent Ambo5-19/+16
Removes all but one occurence of `extern crate`, to conform with Rust 2018. The last one is necessary because Diesel is a giant jungle of complicated macros re-exported from private crates, and the current version makes it hard to import those directly instead. Change-Id: Id14165a456d5c3ce6f7a4e0222c611640113eb11 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1549 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-02 r/1541 chore(paroxysm): Bump Cargo dependencies within constraintVincent Ambo1-665/+519
This is just a `cargo update` call. Change-Id: I3b780cd76d97bf69b793a4c573eb3b9c1d59f88b Reviewed-on: https://cl.tvl.fyi/c/depot/+/1548 Tested-by: BuildkiteCI Reviewed-by: kanepyork <rikingcoding@gmail.com>
2020-08-01 r/1520 chore(tazjin): Move wallpapers into my user folderVincent Ambo22-0/+0
Change-Id: I30901967ff0d65ae4a12a5b74c3baec9a6406971 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1511 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
2020-07-27 r/1496 chore: Move //fun/tvldb -> //fun/paroxysmVincent Ambo17-8/+8
Say ~my~ its name! Change-Id: I7890318aef984af0f6bc011de32282f16e01cbb3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1483 Tested-by: BuildkiteCI Reviewed-by: eta <eta@theta.eu.org>
2020-07-14 r/1292 fix(tvldb): unbreak quote grabbingeta1-3/+4
Change-Id: Ib03561bbcc154aeee50a592332a2763ff784bb1d Reviewed-on: https://cl.tvl.fyi/c/depot/+/1165 Tested-by: BuildkiteCI Reviewed-by: eta <eta@theta.eu.org> Reviewed-by: glittershark <grfn@gws.fyi>
2020-07-13 r/1269 feat(tvldb): parse CTCP ACTIONs properly, allow use of aliases in ??! syntaxeta1-2/+10
Change-Id: I3cc0e88a94ea0edc470ff9e0da203f1193d40f9f Reviewed-on: https://cl.tvl.fyi/c/depot/+/1128 Tested-by: BuildkiteCI Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: glittershark <grfn@gws.fyi>
2020-07-02 r/1173 feat(tvldb): prohibit infinite recursioneta1-2/+19
Change-Id: I63b54e937f4c4fdb823f2e2e91a5a5d8af071a42 Reviewed-on: https://cl.tvl.fyi/c/depot/+/855 Tested-by: BuildkiteCI Reviewed-by: eta <eta@theta.eu.org> Reviewed-by: isomer <isomer@tvl.fyi> Reviewed-by: BuildkiteCI
2020-07-02 r/1161 fix(clbot): s/submitted/applied/isomer1-1/+1
By vote of the IRC channel. Change-Id: I5ea965d45a7d73b0bdcae817d16eaa17e47adcbc Reviewed-on: https://cl.tvl.fyi/c/depot/+/861 Reviewed-by: isomer <isomer@tvl.fyi> Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: BuildkiteCI Tested-by: BuildkiteCI
2020-07-01 r/1145 style(tvldb): Add blank lines between itemsVincent Ambo3-0/+23
This makes the code slightly more readable. For users that use editors without semantic navigation, this also makes it easier to jump around between items in the files. I looked into whether a rustfmt setting exists for this, but unfortunately the answer is currently no. Change-Id: I37b19fa6ab038c71b924c45dbc12b298e660e8cf Reviewed-on: https://cl.tvl.fyi/c/depot/+/827 Reviewed-by: BuildkiteCI Reviewed-by: eta <eta@theta.eu.org> Tested-by: BuildkiteCI
2020-06-24 r/1075 feat(clbot): allow specifying branch and repo to look at on command lineLuke Granger-Brown1-2/+26
Change-Id: Ib2e37275d770a1e98a526481018514a564a4f73b Reviewed-on: https://cl.tvl.fyi/c/depot/+/569 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/1001 fix(clbot): actually display people's usernames properlyLuke Granger-Brown1-1/+2
Change-Id: Idcbb6ffbb3127520141596cea7883cd137a1ea56 Reviewed-on: https://cl.tvl.fyi/c/depot/+/441 Reviewed-by: eta <eta@theta.eu.org> Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-16 r/993 feat(tvldb): Import the tvldb/paroxysm source, add a Nix derivationeta16-0/+2314
- This imports the tvldb (actually a thing called 'paroxysm') code from https://git.theta.eu.org/eta/paroxysm into the monorepo. - Additionally, I did a nix thing, yay! \o/ (well, with tazjin's help) - 3p/default.nix needed modifying to whitelist pgsql. Change-Id: Icdf13ca221650dde376f632bd2dd8a087af451bf Reviewed-on: https://cl.tvl.fyi/c/depot/+/389 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/992 feat(clbot): insert Unicode ZWS to avoid pinging userseta1-4/+12
Change-Id: I732bf6daa01f5b2099c4f4cbdd21a2ceedc79cb1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/385 Reviewed-by: q3k <q3k@q3k.org> Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 r/990 feat(clbot): Add IRC support to the IRC bot.Luke Granger-Brown4-26/+158
Change-Id: I183488824882750c46e7216b98ab48e1d8f48096 Reviewed-on: https://cl.tvl.fyi/c/depot/+/343 Reviewed-by: eta <eta@theta.eu.org> Reviewed-by: tazjin <mail@tazj.in>
2020-06-15 r/969 feat(fun/uggc): Install desktop handler in Nix derivationVincent Ambo2-13/+18
This actually registers the desktop entry, so xdg-open etc. start working: tazjin@frog /depot> xdg-open 'uggcf://gjvggre.pbz/alnabgrpu/fgnghf/1272363652679524352' Opening in existing browser session. Change-Id: Ia754cb87470fce2f8d3340d1147f3f01b9914858 Reviewed-on: https://cl.tvl.fyi/c/depot/+/387 Reviewed-by: riking <rikingcoding@gmail.com>
2020-06-15 r/968 feat(fun/uggc): create a rot13 url handlerKane York4-0/+82
Example usage: $ /nix/store/9kgpv4n62vhxs971jkvwvvl3msm4wpm8-uggc/bin/uggc 'uggcf://gjvggre.pbz/alnabgrpu/fgnghf/1272363652679524352' Change-Id: I8fd5f77416116ce1a6ab7f96d3f2c726ef663677 Reviewed-on: https://cl.tvl.fyi/c/depot/+/386 Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: eta <eta@theta.eu.org>
2020-06-15 r/963 chore(clbot): Refactor backoff utility into a separate package.Luke Granger-Brown4-28/+60
It'll be reused by the IRC side of things too. Change-Id: I3d84f3fd5fca6a6d948f331143b14f096d10675d Reviewed-on: https://cl.tvl.fyi/c/depot/+/342 Reviewed-by: tazjin <mail@tazj.in>
2020-06-15 r/962 chore(clbot): Add signal handler to make clbot shutdown cleanly on SIGINT.Luke Granger-Brown1-1/+24
Change-Id: I3c6eeeb99f9d81cdbcb10880c9075ac94c4f5d19 Reviewed-on: https://cl.tvl.fyi/c/depot/+/341 Reviewed-by: tazjin <mail@tazj.in>
2020-06-14 r/957 chore(users/tazjin): Move my avatar to my folderVincent Ambo1-0/+0
Change-Id: If05860cd975f20c6d8fec301cabcc80d49d0dcda Reviewed-on: https://cl.tvl.fyi/c/depot/+/344 Reviewed-by: tazjin <mail@tazj.in>
2020-06-14 r/950 feat(clbot): Create Gerrit watcher and basic clbot binary.Luke Granger-Brown11-0/+1201
gerrit.Watcher is a class which watches the Gerrit stream-events SSH connection and produces events. There's a basic CLBot binary as well, to demonstrate driving it to produce messages on the logging output. It doesn't really do anything else. Change-Id: I274fe0a77c8329f79456425405e2fbdc3ca2edf0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/245 Reviewed-by: tazjin <mail@tazj.in>
2020-06-10 r/888 chore(fun/idual): Switch wakeup light to random coloursVincent Ambo1-1/+1
2020-05-22 r/810 chore: Update from Clang 9 to Clang 10 for all projectsVincent Ambo1-1/+1
2020-05-20 r/783 chore(fun/dt): Use vendored copy of AbseilVincent Ambo1-2/+2
2020-05-14 r/716 feat(fun/idual): Change alarm light from 'morning' to 'sun'Vincent Ambo1-1/+1
The latter is much brighter and warmer, this is probably better.
2020-05-11 r/714 chore(fun/dt): Adjust weightsVincent Ambo1-11/+13
2020-05-11 r/713 feat(fun/dt): Support arbitrary word countsVincent Ambo1-26/+47
2020-05-08 r/707 feat(fun/dt): Implement useful utilityVincent Ambo4-0/+97
2020-04-26 r/692 feat(fun/idual): Introduce real CLI that can send all commandsVincent Ambo3-25/+50
Adds an idualctl CLI that can be used to control the lights.
2020-04-26 r/691 feat(fun/idual): Support multiple simultaneous Broadlink devicesVincent Ambo1-7/+12
There are now two devices in this room, and they're being used simultaneously.
2020-04-26 r/688 feat(fun/idual && nixos/camden): Add light alarm systemd unitsVincent Ambo2-3/+10
Adds a systemd unit to run the idual light alarm using a transient timer created by systemd-run.
2020-04-25 r/687 fix(fun/idual): Hardcode the Broadlink thing's local addressVincent Ambo1-1/+1
2020-04-25 r/686 feat(fun/idual): Implement some utilities for controlling lightsVincent Ambo2-5/+36
This program, if build in its executable form, will try to turn the lights on and put them into "morning mode".
2020-04-25 r/685 feat(fun/idual): Move colour codes into a Python scriptVincent Ambo4-31/+75
This will make them easier to consume for the thing I'm actually trying to do here.
2020-04-25 r/683 docs(fun/idual): Document how to capture codesVincent Ambo1-0/+23
2020-04-25 r/682 feat(fun/idual): Check in captured iDual remote codesVincent Ambo2-0/+42
2020-04-21 r/647 chore(fun): //fun/tvl -> //fun/streamTVLVincent Ambo1-0/+0
Otherwise this is confusing because //web/tvl is now a thing.
2020-04-21 r/646 chore(web/tvl): Bootstrap static assets for TVL pageVincent Ambo1-132/+0