Skip to content

Instantly share code, notes, and snippets.

View EkriirkE's full-sized avatar
😴
Schlafen

Erik Johnson EkriirkE

😴
Schlafen
View GitHub Profile
#!/usr/bin/env python3
BACKUP_FILE = 'backup.ab'
# Constants
# ref: https://github.com/omnirom/android_bootable_recovery/blob/android-7.1/adbbu/twadbstream.h
TWRP = b'TWRP' + b'\x00\x00\x00\x00'
TWSTREAMHDR = b'twstreamheader'
TWFN = b'twfilename'
@albertomolina
albertomolina / iSCSI_cheatsheet.md
Last active November 13, 2024 00:31
iSCSI cheatsheet

iSCSI server with tgt

apt install tgt

Manual configuration of targets

Create a new target named "target1":

tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2020-01.es.tinaja:target1

Delete a specific target: