https://wiki.smartos.org/display/DOC/Creating+a+SmartOS+Bootable+USB+Key
https://wiki.smartos.org/display/DOC/Download+SmartOS
Use ethcher or dd.
| chmod u=rx file (Give the owner rx permissions, not w) | |
| chmod go-rwx file (Deny rwx permission for group, others) | |
| chmod g+w file (Give write permission to the group) | |
| chmod a+x file1 file2 (Give execute permission to everybody) | |
| chmod g+rx,o+x file (OK to combine like this with a comma) |
| # Force Build | |
| Jenkins->FDK->build_all, Build With Parameters, after=ønsket git-commit, ref=refs/heads/develop (eller annen branch) | |
| # cJenkins (terminal) | |
| python cjenkins -u <username> -p <password> -l <jenkins 1 address> .. <jenkins n address> | |
| # POST w/ token | |
| curl -H "Authorization: bearer $TOKEN" -H "Content-Type: application/json" -X POST -d ' | |
| { "invoice": | |
| { | |
| "matter": "5bc9a264da9a42bee9c9cf48", | |
| "unitPrice": 10200 | |
| } | |
| }' http://localhost:4000/api/invoices | |
| # POST |
| file-icons |
| # Recompose | |
| A recompose stack is something like this: | |
| import * as R from "recompose"; | |
| const enhance = R.compose( | |
| R.withProps({text: "Click Me"}), | |
| R.withStateHandler({ active: false }, { | |
| onClick: ({ active }) => event => ({ | |
| active: !active, | |
| }), |
| tree -I "node_modules|bower_components" -L 3 | |
https://www.youtube.com/watch?v=rA0pcmqpRx4&t=3s
{
"brand": "bhyve",
"alias": "bionic-k8-master",
"ram": "2048",
| # git reset (n: number of commits) | |
| git reset HEAD~n | |
| # Rename branch | |
| git branch -m <oldname> <newname> | |
| git push -f | |
| No upstream branch... | |
| git push origin HEAD |