Skip to content

Instantly share code, notes, and snippets.

View sometheycallme's full-sized avatar
🎯
Focusing

Tim Kropp sometheycallme

🎯
Focusing
View GitHub Profile
@jcwx
jcwx / nessus_backup_cmd.txt
Last active March 1, 2018 12:55
command to create backup tarball for Nessus install
# super user privileges will be needed for this backup
#
# Bear in mind the tarball will be created in the directory from which the command is run.
#
# If Nessus is installed somewhere other than '/opt/nessus' (the default location), adapt
# the command directories to reflect your environment
#
# I set the command up to exclude the scan results in the backup. The backup will
# restore users, scans and everything except the scan history.
#
@un33k
un33k / sed cheatsheet
Created August 22, 2011 13:28
magic of sed -- find and replace "text" in a string or a file
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'