Over-ear headphones

Notes for buying new headphones in 2018 Requirements Over-ear headphones Good (great?) sound Possible to wear daily for 6-8 hours Wireless (Nice-to-have) Noice canceling Potential purchases Sony WH-1000XM2 / rting Weight: 275 g Battery Life: 30h Has 3.5mm: Yes Price range: 3.2-4k SEK Wireless: Yes Noice canceling: Yes Sennheiser PXC 550 / rting Weight: 227 g Battery Life: 30h Has 3.5mm: Yes Price range: 2.8-3.9k SEK Wireless: Yes Noice canceling: Yes Bose QuietComfort 35 / rting Weight: 236 g Battery Life: 20h Has 3.5mm: Yes Price range: 3.7-4k SEK Wireless: Yes Noice canceling: Yes Bang & Olufsen Beoplay H9 / rting Weight: 295 g Battery Life: 21h Has 3.5mm: Yes Price range: 3.9-4.8k SEK Wireless: Yes Noice canceling: Yes

February 18, 2018  | 

Django2 (python3) framework documentation collection

Some collected documentation for building a generic page in Django2 (python3) Python language Python3 libraries Framework Django documentation Django documentation - topics Deployment Django and nginx Django and uWSGI Security in Django Performance and Optimization in Django Deployment checklist Example pairing Django/nginx

February 4, 2018  | 

Create database with user

sudo -u postgres createuser USER sudo -u postgres createdb DB sudo -u postgres psql alter user USER with encrypted password 'PASS'; alter database DB owner to USER;

Rocket (rust) backend documentation collection

Some collected documentation for building an API backend in Rocket (rust) Rust language Rust by Example Framework Rocket Documentation Docker Github Page Libraries Chrono - Time and Date Diesel - ORM

Luminous (clojure) backend documentation collection

Some collected documentation for developing in luminous. Clojure docs. Language. Luminous web. Framework. Sweet/Compojure API. Luminous building block for API. Compojure. Building block for Sweet. Swagger. Building block for Sweet. Ring. Building block for Compojure. Schema. Data types and validation. Libraries Buddy-hashers. For hashing, mostly passwords. Guides Restful Clojure

TODO - Writing rsyslogd to database and viewing with modern tools

When I get some spare time I would like to make rsyslogd write its contents to database, and parse it through a web interface. In the meantime I’ll just collect some guides here. Writing syslog messages to MySQL, PostgreSQL or any other supported Database Handling a massive syslog database insert rate with Rsyslog Elasticsearch Elasticsearch - Logstash Elasticsearch - Kibana

December 9, 2017  | 

Fonts

FiraCode Supports iTerm2 & IntelliJ Has ligatures

November 18, 2017  | 

Test color support in bash

for i in {0..255} ; do printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i" if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then printf "\n"; fi done

November 18, 2017  |  🏷️Bash

Adding subdomain to Let's encrypt

Extending the certificate to also cover www.iix.se sudo certbot certonly --standalone -d iix.se,www.iix.se,monit.iix.se,test.iix.se Sat Nov 04 11:14 W44 Saving debug log to /var/log/letsencrypt/letsencrypt.log Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org ------------------------------------------------------------------------------- You have an existing certificate that contains a portion of the domains you requested (ref: /etc/letsencrypt/renewal/iix.se.conf) It contains these names: iix.se, monit.iix.se, test.iix.se You requested these names for the new certificate: iix.se, www.iix.se, monit.iix.se, test.iix.se. Do you want to expand and replace this existing certificate with the new certificate? ------------------------------------------------------------------------------- (E)xpand/(C)ancel: e Renewing an existing certificate Performing the following challenges: tls-sni-01 challenge for iix.se tls-sni-01 challenge for www.iix.se tls-sni-01 challenge for monit.iix.se tls-sni-01 challenge for test.iix.se /usr/lib/python2.7/dist-packages/OpenSSL/rand.py:58: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct) result_code = _lib.RAND_bytes(result_buffer, num_bytes) Waiting for verification... Cleaning up challenges Generating key (2048 bits): /etc/letsencrypt/keys/0009_key-certbot.pem Creating CSR: /etc/letsencrypt/csr/0009_csr-certbot.pem IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/iix.se/fullchain.pem. Your cert will expire on 2018-02-02. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew" - If you like Certbot, please consider supporting our work by: Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le

New equipment for home LAN

This is basically scratch-space for my plans (or dreams) of buying new home equipment. I have some smaller problems with my current equipment, and it would be nice to upgrade to something more modern. Current issues Router (which also is modem and access-point) is not wall-mountable and is currently placed in an awkward position. Switch does not support link aggregation (IEEE 802.3ad), which my storage supports. Current plans I have no real need for a new router, as I can just as well run pfsense on a KVM instead. For that reason I can just buy a nice, wall-mountable AP. Likely with PoE. Since my current switch does not support PoE either, that needs to be a requirement for it. Since I would like to be a bit future proof, PoE+ would be nice, if not too expensive. As I currently have 5 slots, which are all filled, I would need at least 8 slots on it. Since I’m thinking of future-proofing with PoE+, I might want an SFP slot, since I might have some use for it later. ...

October 21, 2017  |