mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 11:56:50 +00:00
Update cheatsheets
This commit is contained in:
14
tldr/entr
14
tldr/entr
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# entr
|
||||
|
||||
> Run arbitrary commands when files change.
|
||||
> More information: <https://manned.org/entr>.
|
||||
> More information: <http://eradman.com/entrproject/>.
|
||||
|
||||
- Rebuild with `make` if any file in any subdirectory changes:
|
||||
|
||||
@@ -23,3 +23,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Run a command with the changed file (`/_`) as an argument:
|
||||
|
||||
`{{ls *.sql}} | entr {{psql -f}} /_`
|
||||
|
||||
- [c]lear the screen and run a query after the SQL script is updated:
|
||||
|
||||
`{{echo my.sql}} | entr -cp {{psql -f}} /_`
|
||||
|
||||
- Rebuild the project if source files change, limiting output to the first few lines:
|
||||
|
||||
`{{find src/}} | entr -s {{'make | sed 10q'}}`
|
||||
|
||||
- Launch and auto-[r]eload a Node.js server:
|
||||
|
||||
`{{ls *.js}} | entr -r {{node app.js}}`
|
||||
|
||||
18
tldr/linux/check-dfsg-status
Normal file
18
tldr/linux/check-dfsg-status
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# check-dfsg-status
|
||||
|
||||
> Report non-free packages installed on Debian-based OSes.
|
||||
> This command was formerly known as `vrms`.
|
||||
> More information: <https://debian.pages.debian.net/check-dfsg-status/>.
|
||||
|
||||
- List non-free and contrib packages (and their description):
|
||||
|
||||
`check-dfsg-status`
|
||||
|
||||
- Only output the package names:
|
||||
|
||||
`check-dfsg-status --sparse`
|
||||
@@ -20,10 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`opkg update`
|
||||
|
||||
- Upgrade all the installed packages:
|
||||
|
||||
`opkg upgrade`
|
||||
|
||||
- Upgrade one or more specific package(s):
|
||||
|
||||
`opkg upgrade {{package(s)}}`
|
||||
|
||||
41
tldr/linux/pwn
Normal file
41
tldr/linux/pwn
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pwn
|
||||
|
||||
> Exploit Development Library designed for rapid prototyping.
|
||||
> More information: <https://docs.pwntools.com/en/stable/commandline.html>.
|
||||
|
||||
- Convert the given assembly code to `bytes`:
|
||||
|
||||
`pwn asm "{{xor edi, edi}}"`
|
||||
|
||||
- Create a cyclic pattern of the specific number of characters:
|
||||
|
||||
`pwn cyclic {{number}}`
|
||||
|
||||
- Encode the given data into the hexadecimal system:
|
||||
|
||||
`pwn hex {{deafbeef}}`
|
||||
|
||||
- Decode the given data from hexadecimal:
|
||||
|
||||
`pwn unhex {{6c4f7645}}`
|
||||
|
||||
- Print a x64 Linux shellcode for running a shell:
|
||||
|
||||
`pwn shellcraft {{amd64.linux.sh}}`
|
||||
|
||||
- Check the binary security settings for the given ELF file:
|
||||
|
||||
`pwn checksec {{path/to/file}}`
|
||||
|
||||
- Check for Pwntools updates:
|
||||
|
||||
`pwn update`
|
||||
|
||||
- Display version:
|
||||
|
||||
`pwn version`
|
||||
Reference in New Issue
Block a user