uname -a
dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }'
| 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}") |
| # cd <repo_dir> | |
| git ls-tree -r master --name-only | xargs -I {} git --no-pager blame master -- {} | awk '{print $1, $2, $3, $4}' | sed 's/(//g' |
| #!/bin/bash | |
| ## usage: just run script (relative file paths to project adjusted) | |
| # $ count_commits.sh | |
| ## array of project dirs | |
| declare -a project_dirs=("./foo" "./bar" "./qux") | |
| # ignore files with these extensions | |
| excludes="':!*.ipynb' ':!*.json' ':!*.log' ':!*.pb' ':!*.fb' ':!*.bin'" |