This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <header class="header"> | |
| <a href="" class="logo">CSS Nav</a> | |
| <input class="menu-btn" type="checkbox" id="menu-btn" /> | |
| <label class="menu-icon" for="menu-btn"><span class="navicon"></span></label> | |
| <ul class="menu"> | |
| <li><a href="#work">Our Work</a></li> | |
| <li><a href="#about">About</a></li> | |
| <li><a href="#careers">Careers</a></li> | |
| <li><a href="#contact">Contact</a></li> | |
| </ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mark stale pull requests in Shepherd repo | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 1' # Runs every Monday at midnight | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 |
| Command | Description |
|---|---|
ssh user@hostname |
π Connect to a remote host |
ssh -p 2222 user@hostname |
π’ Connect using a specific port |
ssh -i ~/.ssh/id_rsa user@hostname |
π Connect using a specific identity file |
exit or logout |
π Terminate the SSH session |
| Operator | Description | Example |
|---|---|---|
; |
π Run commands sequentially | echo "Hello"; echo "World" |
&& |
β Run next command only if previous succeeds | mkdir dir && cd dir |
|| |
β Run next command only if previous fails | ping -c1 google.com || echo "Offline" |
| |
πΏ Pipe output of one command to another | ls -l | grep ".txt" |
| Command | Description | Example |
|---|---|---|
parallel echo ::: A B C |
π€ Process items in parallel | Output: A, B, C (in any order) |
parallel echo {} ::: *.txt |
π Use {} as placeholder | Echoes names of all .txt files |
cat file.txt | parallel echo |
π₯ Read input from stdin | Processes each line of file.txt |
parallel -j4 command ::: item1 item2 item3 |
π’ Limit to 4 jobs at a time | Runs 'command' on items, max 4 parallel |
| Command | Description | Example |
|---|---|---|
cat |
π Display entire log file | cat /var/log/syslog |
less |
π View log file with pagination | less /var/log/auth.log |
tail |
π View end of log file | tail /var/log/apache2/access.log |
head |
π View beginning of log file | head /var/log/mysql/error.log |
DISCLAIMER: This information is for educational purposes only. Always obtain proper authorization before performing any penetration testing activities. Unauthorized testing is illegal and unethical.
| Command | Description | Example |
|---|---|---|
netstat |
π Network connections, routing tables, interface statistics | netstat -tuln |
ss |
π Socket statistics | ss -tuln |
| Command | Description | Example |
|---|---|---|
tail file.txt |
π Display the last 10 lines of a file | tail /var/log/syslog |
tail -n 20 file.txt |
π’ Display the last 20 lines of a file | tail -n 20 /var/log/auth.log |
tail -c 100 file.txt |
π Display the last 100 bytes of a file | tail -c 100 /etc/passwd |