by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<dir>~/.fonts</dir> | |
<alias> | |
<family>serif</family> | |
<prefer> | |
<family>Source Serif Pro</family> | |
<family>IPAMincho</family> | |
</prefer> |
Please read original blog post for reference: | |
http://blog.process-one.net/embedding-ejabberd-into-an-elixir-phoenix-web-application/ |
"""Demo of streaming requests with Tornado. | |
This script features a client using AsyncHTTPClient's body_producer | |
feature to slowly produce a large request body, and two server | |
handlers to receive this body (one is a proxy that forwards to the | |
other, also using body_producer). | |
It also demonstrates flow control: if --client_delay is smaller than | |
--server_delay, the client will eventually be suspended to allow the | |
server to catch up. You can see this in the logs, as the "client |
#! /usr/local/bin/fish | |
if test -n "$HOME" ; | |
set -xg NIX_LINK "$HOME/.nix-profile" | |
# Set the default profile. | |
if not test -L "$NIX_LINK" ; | |
echo "creating $NIX_LINK" >&2 | |
set -l _NIX_DEF_LINK /nix/var/nix/profiles/default | |
/nix/store/cdybb3hbbxf6k84c165075y7vkv24vm2-coreutils-8.23/bin/ln -s "$_NIX_DEF_LINK" "$NIX_LINK" | |
end |
All about that Spec | |
Yeah, it's pretty clear / I've made an app or two | |
And I can TDD it / Like I'm supposed to do | |
I do that red-green / Refactor most days | |
All the right tests / In all the right places | |
I see them old-timers / Working that FORTRAN shop | |
We know that shit ain't real / C'mon now make it stop | |
If you've got agile methods / Just raise em up |
Mosh (mobile shell) is a gift from the Gods(tm). Anyone with spotty internet or wireless connection has suffered the pain of a lost SSH session. Sure, one can fire up screen
(or tmux
as the kids are using these days), but that's an extra step and you are still using the SSH protocol.
I'm not here to tout the benefits of Mosh, you came here to open it up in your firewall.
/etc/firewalld/services/mosh.xml
firewall-cmd --add-service=mosh --permanent
firewall-cmd --reload
If you tend to have a lot of sessions (not recommended), you can increase the ports, but the default should be fine for most applications.
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.