Skip to content

Instantly share code, notes, and snippets.

View rejohnst's full-sized avatar

Rob Johnston rejohnst

  • Northern California
View GitHub Profile
@rejohnst
rejohnst / linux-notes.txt
Created November 13, 2020 18:04
Random Linux Notes
===============
Expand swapfile
===============
# swapoff -a
# dd if=/dev/zero of=/swapfile bs=1M count=<NEW-SZ-IN-MB>
# chmod 0600 /swapfile
# mkswap /swapfile
# sudo swapon -a
@rejohnst
rejohnst / git-notes.txt
Created September 10, 2020 21:22
Git notes
===============================
List modified files in a commit
===============================
% git diff-tree --no-commit-id --name-only -r <REV>
======================================
Generate a patch for a specific commit
======================================
% git format-patch <REV> -1
@rejohnst
rejohnst / gist:223c7f04cdc451106482ccdd3f9d37dc
Created April 8, 2020 21:14
node-manta test results for MANTA-5148
rejohnst@robj-linux-ws:~/ws/mantav2/node-manta$ export MANTA_USER=muskie_test_user
rejohnst@robj-linux-ws:~/ws/mantav2/node-manta$ make test
test/integration/buckets-client-basic.test.js ....... 35/35
test/integration/buckets-client-condreq.test.js ..... 12/12 3s
test/integration/buckets-client-validation.test.js .. 78/78
test/integration/client-mpu.test.js ................. 43/43
test/integration/client.test.js ..................... 75/79
Skipped: 4
ln this Manta does not support SnapLinks (mantav2)
info (link) this Manta does not support SnapLinks (mantav2)
rejohnst@robj-linux-ws:~/ws/mantav2/node-manta/bin$ git branch
* buckets
master
$ LOG_LEVEL=trace ./mmpu commit 69407942-51b0-4593-8d4c-b4fcf55206d3
{"name":"mmpu","hostname":"robj-linux-ws","pid":27991,"component":"MantaClient","path":"/rejohnst/uploads/69407942-51b0-4593-8d4c-b4fcf55206d3","req_id":"42edb90f-9271-4614-923a-c1b9a1a4aed7","level":20,"msg":"_uploadURL: entered","time":"2020-04-03T20:49:10.373Z","v":0}
{"name":"mmpu","hostname":"robj-linux-ws","pid":27991,"component":"MantaClient","level":10,"client_req":{"method":"HEAD","url":"/rejohnst/uploads/69407942-51b0-4593-8d4c-b4fcf55206d3","address":"172.26.20.164","port":null,"headers":{"accept":"*/*","x-request-id":"42edb90f-9271-4614-923a-c1b9a1a4aed7","date":"Fri, 03 Apr 2020 20:49:10 GMT","authorization":"Signature keyId=\"/rejohnst/keys/53:6d:34:e0:20:c7:b8:21:1b:58:f2:f5:69:52:9c:5a\",algorithm=\"rsa-sha256\",headers=\"date\",signature=\"En/7MdjkYBpURcIfUdVBh5/R43rdQLXSvYYMxBAgyR+oZMFkEuTMcwWMkUaErHFFdoJHs59ujEr25lDamC/ME1Vs3C8tULsXIs3Zkr8gR
@rejohnst
rejohnst / sastopo-upstream
Last active March 2, 2020 19:17
SAS Topology upstreaming notes
=======
Commits
=======
commit 5b83194605bd809a032ea5cade033b2e2df80c5a (HEAD -> master)
Author: Kody Kantor <kody.kantor@joyent.com>
Date: Tue Feb 25 17:47:58 2020 -0800
12331 Add SAS topology enumeration to libtopo
Portions contributed by: Rob Johnston <rob.johnston@joyent.com>
@rejohnst
rejohnst / bugs-to-file.txt
Created December 9, 2019 21:35
Bugs to file
TRITON
------
Attempting to provision an instance via SAPI that uses an image who's minimum required
platform version is greater than all of the available CNs results in the
following less-than-helpful error message.
{
"code": "NoAllocatableServersError",
"message": "No compute resources available"
}
@rejohnst
rejohnst / manta-picker-todo.txt
Last active November 10, 2019 17:01
manta-picker notes
Short Term To Do
----------------
Replace README template with manta-picker content [DONE]
API polishing
- Implement pagination for /poll response
- MANTA-4644
- Version the API
- will use header-based versioning
@rejohnst
rejohnst / fwflash-notes.txt
Last active November 10, 2019 17:00
fwflash notes
=====================
Illumos fwflash notes
=====================
main
----
- parse command line arguments
- flash_load_plugin()
- open each plugin in /usr/lib/fwflash/identity
===
FFI
===
cbindgen
- automatically builds C header file from rust crate
bindgen
- automatically build rust bindings from C headers
- requires libclang
- can install clang pkg from pkgsrc
@rejohnst
rejohnst / illumos-ioctl-notes.txt
Last active November 10, 2019 17:02
Illumos ioctl notes
===================
Illumos ioctl notes
===================
ioctl
=====
ioctl()
|
--> VOP_IOCTL()
|