kubectl get secret secret_name -n namespace --template={{.data.key}} | base64 --decode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Installs s5cmd | |
| if command -v s5cmd &> /dev/null | |
| then | |
| echo "s5cmd is already installed" | |
| exit 0 | |
| fi | |
| START_DIR=$(pwd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import concurrent.futures | |
| from tqdm import tqdm | |
| import random | |
| import time | |
| def run_on_thread_example(packed_args): | |
| arg_one, arg_two = packed_args |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import concurrent.futures | |
| from tqdm import tqdm | |
| def run_multiprocess(func, iterator): | |
| with concurrent.futures.ProcessPoolExecutor() as executor: | |
| results = list(tqdm(executor.map(func, iterator), total=len(iterator))) | |
| return results |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Table t; | |
| int rows = 8; | |
| int cols = 11; | |
| float rowSize; | |
| float colSize; | |
| ArrayList<String> toDisplay = new ArrayList<String>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 3.0) | |
| project(cxxtorch) | |
| find_package(Torch REQUIRED) | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}") | |
| add_executable(cxxtorch main.cxx) | |
| target_link_libraries(cxxtorch "${TORCH_LIBRARIES}") | |
| set_property(TARGET cxxtorch PROPERTY CXX_STANDARD 14) |
Minimal ubuntu server install to machine learning development setup mostly thanks to lambda.
Currently using ubuntu server 20.04.
By no means is this a definitive guide more a list for me to remember what I like to do I definitly recommend looking into each thing individually for up to date instructions on installation.
Gnome3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder