uname -a
dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }'
| // Place your key bindings in this file to override the defaults | |
| [ | |
| { | |
| "key": "alt+backspace", | |
| "command": "workbench.action.terminal.sendSequence", | |
| "args": { "text": "\u001b\u007f" }, // delete word left to first non-word character | |
| // = escape+delete | |
| "when": "terminalFocus && isMac" | |
| } | |
| ] |
| # normal .bashrc content here... | |
| # CUSTOMIZATIONS | |
| # Switch to ZSH shell | |
| if test -t 1; then | |
| exec zsh | |
| fi |
| { | |
| "Badge Text" : "\\(user.tag)", | |
| "ASCII Ligatures" : true, | |
| "Working Directory" : "\/Users\/jclosure", | |
| "Prompt Before Closing 2" : false, | |
| "Selected Text Color" : { | |
| "Green Component" : 0, | |
| "Red Component" : 0, | |
| "Blue Component" : 0 | |
| }, |
| var ACCESS_KEY_ID = "mykey_id"; | |
| var SECRET_ACCESS_KEY = "mykey_secret"; | |
| var REGION = 'us-east-1'; | |
| var ENDPOINT = 'http://127.0.0.1:9000'; | |
| import { S3 } from '@aws-sdk/client-s3'; | |
| import * as fs from 'fs'; | |
| class FileClient { | |
| constructor(bucket) { |
| #!/bin/bash | |
| # Example: | |
| # for minio: in k9s, forward ports 9000 and 9001 to localhost | |
| # ./curl_object_downloader.sh localhost:9000 mykey_id mykey_secret \ | |
| # mybucket mypath/myobj.bin ./myobj.bin | |
| # User Minio Vars | |
| URL=$1 | |
| USERNAME=$2 |
| # install converter | |
| npm install -g obj2gltf | |
| # convert .obj to .gltf | |
| obj2gltf -i mesh.obj --separate | |
| # install web gltf viewer | |
| git clone https://github.com/donmccurdy/three-gltf-viewer.git | |
| cd three-gltf-viewer | |
| npm install |
| import os | |
| from omegaconf import OmegaConf | |
| os.environ.pop("PASSWORD", None) | |
| os.environ.pop("PORT", None) | |
| os.environ["PASSWORD"] = "foo" | |
| os.environ["PORT"] = '666' | |
| file_cfg = OmegaConf.create("inference_worker: {user: Ohad, password: secret, port: 123}") |