- ldd
lddb executable_file
In some circumstances, some versions of ldd may attempt to obtain the dependency information by directly executing the program.
DEFAULT_GRPC_ENDPOINT="localhost:50051" | |
# First generate a file filled with gRPC request payload | |
python -c "import helloworld_pb2; open('/tmp/test.grpc.payload', 'wb').write(helloworld_pb2.HelloRequest(name='Python').SerializeToString())" | |
echo -e "Payload file has been generated.\n" | |
if [[ -z $GRPC_ENDPOINT ]]; then | |
GRPC_ENDPOINT=$DEFAULT_GRPC_ENDPOINT |
# List top ten output memory redis clients | |
redis-cli -h $REDIS_HOST -p $REDIS_PORT -a $REDIS_PSW client list|awk '{split($2, addr, "="); split($16, omem, "="); print addr[2], omem[2], $0}'|awk '$2 > 0'|sort -nr -k 2|head -10 | |
# List redis client processes | |
ss -p '( sport == $REDIS_ADDR ) and ( dport == 6379 )'|awk '{split($NF, a, "pid="); split(a[2], b, ",fd"); if(b[1]) {if(pids) pids=b[1]","pids; else pids=b[1]}} END {print "-p "pids" -o pid,ppid,pgid,sid,cmd"}'|xargs ps |
1000B
list
import asyncio | |
import threading | |
from tornado.ioloop import IOLoop | |
def non_main_thread_task(g_io_loop): | |
assert IOLoop.current(False) is None, "invalid current thread's ioloop object." | |
assert IOLoop.current() is g_io_loop, "invalid current thread's ioloop object." | |
io_loop = IOLoop() |
drop table if exists s_test_adding_column_with_default_value; | |
create table s_test_adding_column_with_default_value (id int primary key, value int); | |
insert into s_test_adding_column_with_default_value select id, random() * 100 from generate_series(1, 500) as id; | |
select ctid, * from s_test_adding_column_with_default_value where id = 1 or id = 500; | |
alter table s_test_adding_column_with_default_value add column score1 float; |