Saturday, 30 August 2025

TermRecord

TermRecord is a simple terminal session recorder with easy-to-share self-contained HTML output!

TermRecord -o /tmp/session.html

Sunday, 24 August 2025

tmux

tmux - terminal multiplexer

ctrl + b prefix key
 - prefix key followed by % will split pane vertically 
 - prefix key followed by " will split pane horizontally
 - prefix key followed by arrow key will allow to move between panes
 - prefix key followed by [ will allow to scroll with up/down & page up/down keys
 - prefix key followed by x will kill the active pane

Resize pane using the resize-pane command:
 - Press your tmux prefix key (default is Ctrl + B).
 
- D to resize downwards.
 - Press the colon key (:). This opens a command prompt at the bottom of your screen.
 - Type resize-pane followed by a direction and an optional number of cells to resize by.
    - U to resize upwards.
       
- L to resize left.
    - R to resize right.
Example: resize-pane -D 5 will resize the current pane downwards by 5 cells. 

Saturday, 23 August 2025

awscli

AWS_SHARED_CREDENTIALS_FILE=/home/user/aws_cli/.aws/credentials
export AWS_SHARED_CREDENTIALS_FILE
AWS_CONFIG_FILE=/home/user/aws_cli/.aws/config
export AWS_CONFIG_FILE
aws configure
aws configure list
aws s3 ls
# get size
aws s3 ls s3://bucketname/Photos/  --recursive --human-readable --summarize
# download file
aws s3 cp s3://bucketname/Photos/holidays_2025.7z  /tmp

 

 

cat  /home/user/aws_cli/.aws/credentials
[default]
aws_access_key_id = <key id>
aws_secret_access_key = <secret access key>
[S3_bucketname]
aws_access_key_id = <key id>
aws_secret_access_key = <secret access key>


cat /home/user/aws_cli/.aws/config
[default]
region = us-east-1 

btop

 a terminal based resource monitor

Tuesday, 19 August 2025

utimer

 command-line "timer" tool which features a timer, a countdown and a stopwatch.

 utimer --countdown=600s;play ~/Music/Gangsta\'s\ Paradise\ -\ Coolio.mp3

Friday, 15 August 2025

ab

apache bench:  Apache HTTP server benchmarking tool

  • ab -n 1000 -c 10 -k -H "Accept-Encoding: gzip, deflate" https://example.com/

Thursday, 14 August 2025

Thursday, 7 August 2025

xrandr

xrandr

xrandr  # current screen configuration

    xrandr --output <output_name> --mode <resolution>

    eg: xrandr --output HDMI-1 --mode 1920x1080

To add an undetected or custom resolution:
  •  cvt <width> <height> <refresh_rate>
  •  eg:     cvt 1920 1080 60
  •  xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
  • xrandr --addmode <output_name> "1920x1080_60.00"
  • xrandr --output <output_name> --mode "1920x1080_60.00"
To add in xorg.conf run xorgsetup as root.  

TermRecord

TermRecord is a simple terminal session recorder with easy-to-share self-contained HTML output! TermRecord -o /tmp/session.html