There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.
The stack:
- emacs
- offlineimap
- mu
- mu4e
| import java.net.{Inet4Address, Inet6Address, InetAddress} | |
| import scala.util.Try | |
| sealed trait IPAddressException { | |
| self: Throwable => val message: String | |
| } | |
| case class IPAddressParseException(message: String) extends Exception(message) with IPAddressException | |
| trait IPAddress { |
| import sys | |
| from twisted.internet import defer, endpoints, protocol, reactor, task | |
| from twisted.python import log | |
| from twisted.words.protocols import irc | |
| class MyFirstIRCProtocol(irc.IRCClient): | |
| nickname = 'MyFirstIrcBot' |
| git clone --single-branch --depth=1 https://github.com/emacs-mirror/emacs.git | |
| cd emacs/ | |
| sudo apt install -y autoconf make gcc texinfo libxpm-dev \ | |
| libjpeg-dev libgif-dev libtiff-dev libpng-dev libgnutls28-dev \ | |
| libncurses5-dev libjansson-dev libharfbuzz-dev | |
| ./autogen.sh | |
| ./configure --with-json --with-modules --with-harfbuzz --with-compress-install \ | |
| --with-threads --with-included-regex --with-zlib --with-cairo --without-rsvg\ | |
| --without-sound --without-imagemagick --without-toolkit-scroll-bars \ | |
| --without-gpm --without-dbus --without-makeinfo --without-pop \ |
| #define KBUILD_MODNAME "load_balancer" | |
| #include <uapi/linux/bpf.h> | |
| #include <linux/in.h> | |
| #include <linux/if_ether.h> | |
| #include <linux/if_packet.h> | |
| #include <linux/if_vlan.h> | |
| #include <linux/ip.h> | |
| #include <linux/ipv6.h> | |
| BPF_HASH(counter, uint32_t, long); |
Three functions from the OpenFaaS store have been packaged as "knative serving" definitions. No change to the container or code is needed.
| from datetime import datetime, timedelta | |
| import functools | |
| def timed_cache(**timedelta_kwargs): | |
| def _wrapper(f): | |
| update_delta = timedelta(**timedelta_kwargs) | |
| next_update = datetime.utcnow() + update_delta | |
| # Apply @lru_cache to f with no cache size limit |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb