What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-10-22 10:18:04
how to get docker stats using shell script
#!/bin/bash # This script is used to complete the output of the docker stats command. # The docker stats command does not compute the total amount of resources (RAM or CPU) # Get the total amount of RAM, assumes there are at least 1024*1024 KiB, therefo... Add solution -
Javascript 2021-10-17 17:17:03
nvm
## Ubuntu curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash ## Set in your .bashrc or .zshrc export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XD... Add solution -
Shell/Bash 2021-10-10 08:03:05
command to transform to asci code
#First way to convert to ascii code printf "\x$(printf %x 65)" #Second way to convert to ascii code set $(printf %x 65) printf "\x$1" #Third way to convert to ascii code awk 'BEGIN{printf "%c", 65}' Add solution -
Shell/Bash 2021-10-02 10:14:02
command to transform to asci code bash
#First way to convert to ascii code printf "\x$(printf %x 65)" #Second way to convert to ascii code set $(printf %x 65) printf "\x$1" #Third way to convert to ascii code awk 'BEGIN{printf "%c", 65}' Add solution -
Shell/Bash 2021-09-25 22:51:03
tcp traffic analysis linux command line mb per second
#!/usr/bin/perl # traffic analysis script using tcpdump use strict; use warnings; use Time::HiRes; my $reporting_interval = 10.0; # seconds my $bytes_this_interval = 0; my $start_time = [Time::HiRes::gettimeofday()]; STDOUT->autoflush(1); while (<... Add solution
Best helpers
Cynthia
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
John Weisz
+5
Rocky DeHart
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5