Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@CoolCold
CoolCold / asdf python dev packages dependencies on Ubuntu.md
Last active July 11, 2022 17:54
building python on Ubuntu 22.04 (for older/newer may need a bit of adaption) - usage pattern with asdf (building manually should be fine too)

Problem definition

so, you are using asdf for multiple Python versions and when building it (i.e. asdf install python 3.8.13 ), it gives you warnings:

WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python curses extension was not compiled. Missing the ncurses lib?
WARNING: The Python ctypes extension was not compiled. Missing the libffi lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
WARNING: The Python lzma extension was not compiled. Missing the lzma lib?
@CoolCold
CoolCold / elasticsearch-cheatsheet.txt
Created July 1, 2020 16:07 — forked from stephen-puiszis/elasticsearch-cheatsheet.txt
Elasticsearch Cheatsheet - An Overview of Commonly Used Elasticsearch API Endpoints and What They Do
# Elasticsearch Cheatsheet - an overview of commonly used Elasticsearch API commands
# cat paths
/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/indices
/_cat/indices/{index}
top
top - 05:55:30 up 4 min, 1 user, load average: 1.70, 0.64, 0.24
Tasks: 636 total, 2 running, 634 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 3.8 sy, 0.0 ni, 96.1 id, 0.0 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 13191929+total, 13082048+free, 642052 used, 456764 buff/cache
KiB Swap: 9764860 total, 9764860 free, 0 used. 13038808+avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1444 root 20 0 0 0 0 R 100.0 0.0 1:15.48 md1_raid10
11914 root 20 0 0 0 0 D 42.9 0.0 0:33.65 md1_resync
top
top - 13:39:55 up 6:26, 2 users, load average: 1.93, 1.89, 1.87
Tasks: 488 total, 2 running, 486 sleeping, 0 stopped, 0 zombie
%Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu4 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu5 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st