Skip to content

Instantly share code, notes, and snippets.

View ilham76c's full-sized avatar
🐈
never give up on your dreams

Moh. Ilham B. ilham76c

🐈
never give up on your dreams
  • YRAV
  • Madura
View GitHub Profile

Network Protocols

ftp 20/21 (${\color{cyan}tcp}$)

  • File Transfer Protocol: Used for transfering files between client and server.

ssh 22 (${\color{cyan}tcp}$)

  • Secure Shell: Secure remote login and command execution.

smtps 587 (${\color{cyan}tcp}$)

@ilham76c
ilham76c / readme.md
Created June 26, 2024 08:35
Using Tmux in WSL to open multiple tabs and split tabs

To open multiple tabs or split tabs in WSL, you can use Tmux. Install Tmux from your WSL terminal, then run the tmux command to use it.

Tmux basics keyboard shortcuts:

  • Ctrl + b and then % -> to split the current pane vertically

  • Ctrl + b and then "  -> to split the current pane horizontally

  • Ctrl + b and then x  -> to close the current pane

  • Ctrl + B and then C  -> To open a new tab

  • Ctrl + b and then n  -> to go to the next tab on the right

Definitions

Look ahead positive (?=)

Find expression A where expression B follows:

A(?=B)

PHP Comments

Functions:

/**
 * Does something interesting
 *
 * @param Place   $where  Where something interesting takes place
 * @param integer $repeat How many times something interesting should happen