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
Zulu
+5
Calista
+5
Shivam Patel
+5
MGA
+5
Carla Walker
+5
Brad Thomas
+5
DJaye
+5
Umesh
+5
Mai0003c
+5
Pc1oad1etter
+5
Loronzo
+5
Vermilions
+5
Ian Goldby
+5
Elenaher
+5
Nerrolken
+5
OiciTrap
+5
RLHanout
+5
Hassaan
+5
JBeez
+5