Discover gists
#include <cstddef> // size_t | |
#if defined (__linux__) | |
# include <sys/sysinfo.h> | |
#elif defined (__APPLE__) | |
# include <mach/mach.h> | |
# include <mach/mach_host.h> | |
#elif defined (_WIN32) | |
# include <windows.h> | |
#endif |
출처: https://training.linuxfoundation.org/certification/certified-kubernetes-administrator-cka/
CKA(Certified Kubernetes Administrator)을 취득하였다.
CKA는 Linux Foundation과 CNCF(Cloud Native Computing Foundation)에서 Kubernetes 에코시스템 개발을 지원하기 위한 지속적인 노력의 일환으로 만들었습니다. CKA는 Kubernetes를 실행하는 명령줄에서 여러 작업을 해결해야 하는 감독이 있는 온라인 성능 기반 테스트입니다.
"인용: https://training.linuxfoundation.org/certification/certified-kubernetes-administrator-cka/"
import os | |
import requests | |
from bs4 import BeautifulSoup | |
import time | |
import re | |
import io | |
from zipfile import ZipFile | |
EXTENSION_LIST = [ |
## Pre-requisite: You have to know your last commit message from your deleted branch. | |
git reflog | |
# Search for message in the list | |
# a901eda HEAD@{18}: commit: <last commit message> | |
# Now you have two options, either checkout revision or HEAD | |
git checkout a901eda | |
# Or | |
git checkout HEAD@{18} |
go mod edit -replace github.com/tendermint/tm-db=github.com/baabeetaa/tm-db@pebble | |
go mod tidy -go=1.19 | |
go mod edit -replace github.com/tendermint/tendermint=github.com/notional-labs/mev-tendermint@0db69e64a2e87bb29b4417780da30630df97cadd | |
go mod tidy | |
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -X github.com/tendermint/tm-db.ForceSync=1' -tags pebbledb ./... |
title | description | date | updated | uuid | categories | permalink | |
---|---|---|---|---|---|---|---|
How to Rip Blu-Rays with a LibreDrive |
In short, get the LG WH16NS40 + Unitek Y-1099NEW + WH16NS40-SVC50 v1.0.5 (via SDFTool) combo. It'll work. |
2021-06-29 5:33:34 pm |
2021-07-09 10:33:00 am |
4276bef0-c857-47b0-8c86-1e83701d89d9 |
|
/articles/how-to-rip-blurays-with-a-libredrive/ |
Syncing an Ethereum node is largely reliant on IOPS, I/O Per Second. Budget SSDs will struggle to an extent, and some won't be able to sync at all.
This document aims to snapshot some known good and known bad models.
For size, 4TB comes recommended as of mid 2024. The smaller 2TB drive should last an Ethereum full node until early 2025 or thereabouts, with crystal ball uncertainty. Remy wrote a migration guide to 4TB.
High-level, QLC and DRAMless are far slower than "mainstream" SSDs. QLC has lower endurance as well. Any savings will be gone when the drive fails early and needs to be replaced.
def top_k_top_p_filtering(logits, top_k=0, top_p=0.0, filter_value=-float('Inf')): | |
""" Filter a distribution of logits using top-k and/or nucleus (top-p) filtering | |
Args: | |
logits: logits distribution shape (vocabulary size) | |
top_k >0: keep only top k tokens with highest probability (top-k filtering). | |
top_p >0.0: keep the top tokens with cumulative probability >= top_p (nucleus filtering). | |
Nucleus filtering is described in Holtzman et al. (http://arxiv.org/abs/1904.09751) | |
""" | |
assert logits.dim() == 1 # batch size 1 for now - could be updated for more but the code would be less clear | |
top_k = min(top_k, logits.size(-1)) # Safety check |
The natural way to start with CUDA if you plan to be self taught is:
-
CUDA by Example: An Introduction to General-Purpose GPU Programming by Jason Sanders and Edward Kandrot Nice introduction. It is more like playing with your GPU and admire its capabilities.
-
Programming Massively Parallel Processors, Second Edition: A Hands-on Approach by David B. Kirk and Wen-mei W. Hwu It explains a lot of things in GPU Programming. You simply can't go without it.