Skip to content

Instantly share code, notes, and snippets.

View akutz's full-sized avatar

Andrew Kutz akutz

View GitHub Profile
vagrant@node1:~$ .libstorage/var/lib/libstorage/lsx-linux virtualbox localDevices deep && echo
virtualbox=4428fa30::/dev/sda1
vagrant@node1:~$
@akutz
akutz / rexray_vagrant_up.sh
Last active June 20, 2016 20:37
REX-Ray Vagrant Environment
$ vagrant up
starting virtualbox web server
Oracle VM VirtualBox web service Version 5.0.22
(C) 2007-2016 Oracle Corporation
All rights reserved.
VirtualBox web service 5.0.22 r108108 darwin.amd64 (Jun 16 2016 13:56:49) release log
00:00:00.000165 main Log opened 2016-06-20T20:31:23.752609000Z
00:00:00.000167 main Build Type: release
00:00:00.000181 main OS Product: Darwin
00:00:00.000187 main OS Release: 15.5.0
$ make
make deps
make[1]: Nothing to be done for 'deps'.
make build
make gometalinter
/Users/akutz/Projects/go/bin/gometalinter --vendor --fast --tests --deadline=15s --enable=gofmt --enable=goimports --enable=misspell --enable=lll --disable=gotype --severity=gofmt:error --severity=goimports:error ./core/... ./daemon/... ./rexray/... ./util/... .
daemon/module/admin/admin-html.go:9::warning: line is 120 characters (lll)
daemon/module/admin/admin-html.go:11::warning: line is 81 characters (lll)
daemon/module/admin/admin-html.go:41::warning: line is 84 characters (lll)
daemon/module/admin/admin-html.go:42::warning: line is 87 characters (lll)
[vagrant@mdm2 ~]$ sudo rexray volume rm --volumeid=12345
DEBU[0000] updated log level logLevel=debug
DEBU[0000] os.args time=1470072385832 val=[rexray volume rm --volumeid=12345]
DEBU[0000] activating libStorage cmd=remove time=1470072385832
INFO[0000] libStorage auto service mode enabled driver=isilon time=1470072385832
DEBU[0000] starting embedded libStorage server time=1470072385832
DEBU[0000] created scoped scope new=libstorage.server parentScopes=rexray,
INFO[0000] configured logging libstorage.logging.level=debug server=star-horse-lr time=1470072385841
INFO[0000] initializing server server=star-horse-lr time=1470072385842
INFO[0000] initializing default endpoint autoEndpointMode=unix server=star-horse-lr time=1470072385842
Using worker: worker-linux-docker-a9b73651.prod.travis-ci.org:travis-linux-3
travis_fold:start:system_info
Build system information
Build language: go
Build group: stable
Build dist: precise
Build id: 147508274
Job id: 147508277
travis-build version: ad83e8722
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
@akutz
akutz / 00-print_10_to_the_4th_power.md
Last active August 12, 2016 19:04
No Man's Sky Explained

No Man's Sky Explained

When my brother asked How does No Man's Sky, this is how I explained it. Below there are two files. The first file is a small command, using Ruby, to print the numbers 1 through 10^4. The second file is the result of that command. Notice the difference in the size of the two files. The first file is 60 bytes in size, the second is 51000 bytes. That means the math used to produce the result is 850 times smaller than the result.

And that is how No Man's Sky ultimately works. The disc on the store at Gamestop or the bits downloaded through Steam or PSN do not include the entire catalogue of graphics assets that make up every piece of the universe that is presented in No Man's Sky. That disc would have to be larger than any portable storage capacity medium that exists today.

Instead, what is on that disc is the math to construct the universe. That disc doesn't store the numbers 10^4. No, the disc stores ruby -e '1.upto(10**4){|i|print"%05d#{i%10==0&&"\n"||""}"%i}'.

And that is

travis_fold:start:worker_info
Worker information
hostname: worker-jupiter-brain:8d1835dc-6ac9-463a-bc26-79d918c1256a
version: v2.3.1-14-g9243e3b https://github.com/travis-ci/worker/tree/9243e3b08741eb25a197b267e5397812cc14baeb
instance: 7f23b837-415e-4f4e-8cbe-d7fb81b02a51:travis-osx10.9-sauce-xcode61-20150528
startup: 1m21.241494659s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
{
"type": "object",
"properties": {
"exports": {
"items": {
"type": "object",
"description": "Specifies configuration values for NFS exports.",
"properties": {
"encoding": {
"type": "string",
----- Today August 24th, 2016 -----
akutz [12:12 PM]
Hi John, I'm about to eat lunch, but I can answer some questions if you have any.
jameyers14 [12:38 PM]
Sure. Still on?
akutz [12:40 PM]
Yep.