Skip to content

Instantly share code, notes, and snippets.

@ShinGyeongseon367
ShinGyeongseon367 / CKA.md
Last active May 14, 2024 00:34
CKA 취득 후기 및 팁 (참고, 인용: seongjin)

Welcome to CKA(Certified Kubernetes Administrator)

This is an image 출처: 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/"

@MSAdministrator
MSAdministrator / download_malware_samples.py
Created January 7, 2022 02:33
Download Malicious Files from malware-traffic-analysis.net
import os
import requests
from bs4 import BeautifulSoup
import time
import re
import io
from zipfile import ZipFile
EXTENSION_LIST = [
@umayr
umayr / recover-deleted-branch.sh
Created April 1, 2016 11:41
How to recover a deleted branch
## 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}
@AKBANK28
AKBANK28 / pebble.bash
Created May 14, 2024 00:27 — forked from PinkDiamond1/pebble.bash
use pebbledb and mev-tendermint on any cosmos chain
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 ./...
@coolaj86
coolaj86 / rip-blu-rays-with-libredrive.md
Created July 12, 2021 21:27
Want to rip backups of your blu-rays? In short, get the LG WH16NS40 + Unitek ‎Y-1099NEW + WH16NS40-SVC50 v1.0.5 (via SDFTool) combo. It'll work.
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
Nerdom
/articles/how-to-rip-blurays-with-a-libredrive/
@yorickdowne
yorickdowne / HallOfBlame.md
Last active May 14, 2024 00:21
Great and less great SSDs for Ethereum nodes

Overview

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.

@thomwolf
thomwolf / top-k-top-p.py
Last active May 14, 2024 00:20
Sample the next token from a probability distribution using top-k and/or nucleus (top-p) sampling
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
@diorahman
diorahman / self.md
Last active May 14, 2024 00:20
CUDA Books: Self taught
@nstielau
nstielau / send_metric_to_statsd.sh
Created May 11, 2011 16:41
Send a metric to StatsD from bash
# Send a metric to statsd from bash
#
# Useful for:
# deploy scripts (http://codeascraft.etsy.com/2010/12/08/track-every-release/)
# init scripts
# sending metrics via crontab one-liners
# sprinkling in existing bash scripts.
#
# netcat options:
# -w timeout If a connection and stdin are idle for more than timeout seconds, then the connection is silently closed.
@larry0x
larry0x / settings.json
Created May 11, 2024 18:33
Customize VSCode watermark logo
{
"apc.stylesheet": {
".editor-group-watermark > .letterpress": "background-image: url(https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode.png) !important; width: unset !important; height: 250px; aspect-ratio: 16/9 !important; filter: drop-shadow(5px 5px 5px #222); margin-bottom: 2rem;"
}
}