I hereby claim:
- I am chetan on github.
- I am chetan (https://keybase.io/chetan) on keybase.
- I have a public key whose fingerprint is 0CC2 6FA5 8102 1C53 1774 A3F4 F585 739B 124A CC0F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| [vagrant@localhost wireguard-0.0.20170421]$ cat /etc/redhat-release | |
| CentOS Linux release 7.3.1611 (Core) | |
| [vagrant@localhost wireguard-0.0.20170421]$ uname -a | |
| Linux localhost.localdomain 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux | |
| [vagrant@localhost wireguard-0.0.20170421]$ sudo dkms build -m wireguard -v 0.0.20170421 |
| #!/usr/bin/env ruby | |
| def run! | |
| ps = [] | |
| `ps -el`.split(/\n/).each do |line| | |
| # UID PID PPID F CPU PRI NI SZ RSS WCHAN S ADDR TTY TIME CMD | |
| l = line.split("\s") | |
| x = { | |
| :uid => l.shift, |
| { | |
| "ui_enabled": true, | |
| "psql_host": "localhost", | |
| "psql_db": "supergiant", | |
| "psql_user": "postgres", | |
| "psql_pass": "postgres", | |
| "publish_host": "<?xml version="1.0" encoding="iso-8859-1"?> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| /var/log/upstart# cat supergiant-server.log | |
| Generating RSA private key, 2048 bit long modulus | |
| ..+++ | |
| .............................................................................+++ | |
| unable to write 'random state' | |
| e is 65537 (0x10001) | |
| unknown option version="1.0" | |
| req [options] <infile >outfile | |
| where options are | |
| -inform arg input format - DER or PEM |
tl;dr: xz offers much better compression but at the expense of far slower (de)compress speed. we should probably switch to gz (or some other codec offering a better balance of compression/decompression speeds), but it's hard to confirm the overall improvement without first rebuilding world.
Reference benchmark
https://www.opencpu.org/posts/brotli-benchmarks/
Tested below packages by running hab pkg install core/<pkg> inside a studio and then tarring up the contents of /hab/pkgs/core/<pkg>
| cd $BUILD_ROOT/habitat | |
| $JENKINS_HOME/tools/habitat/latest/hab pkg build . | |
| hart=$(ls results/*.hart) # make sure build fails | |
| sha256sum $hart | awk \'{print $1}\' > $hart.sha256 | |
| pkg_ident=$(cat results/last_build.env | grep pkg_ident | cut -d= -f2) | |
| # cribbed from components/studio/bin/hab-studio.sh | |
| dir_name="$(pwd | sed -e 's,^/$,root,' -e 's,^/,,' -e 's,/,--,g')" |
| FROM redis:latest | |
| RUN apt-get update && apt-get install -y python |
Side note: all available resource metrics are documented here:
These are used for isolating files on disk from both the host system as well as other running tasks.
| upstream subsonic { | |
| server 127.0.0.1:8089; | |
| } | |
| server { | |
| listen 80; | |
| server_tokens off; | |
| server_name subsonic; |