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
#CMakeLists.txt | |
// Debug build with symbols | |
set(CMAKE_BUILD_TYPE Debug) | |
#Cmake CLI | |
// Build optimized + debug symbols | |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ... | |
cmake -DCMAKE_BUILD_TYPE=Debug ... |
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
> node |
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
sudo ntpq -p |
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
sudo -E bash -c 'echo $HTTP_PROXY' |
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
command apt-get -y install nginx | |
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
r = remote('pwnable.kr', 9004) | |
r.sendline("3\n") | |
r.interactive() | |
#r.close() |
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
security add-generic-password -s "xxx.com" -a "[email protected]" -w 'xxx' | |
security find-generic-password -w -s 'xxx.com' -a '[email protected]' | pbcopy |
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
# To convert a plist file from binary to xml: | |
plutil -convert xml1 <binary_file>.plist | |
# To convert the plist xml file back to binary (e.g. after making edits): | |
plutil -convert binary1 <xml_file>.plist |
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
#List contents of a tar file | |
tar -tvf archive.tar |
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
#Extract files from an RPM | |
rpm2cpio ./packagecloud-test-1.1-1.x86_64.rpm | cpio -idmv | |
#List files in an RPM | |
rpm -qlpv ./packagecloud-test-1.1-1.x86_64.rpm | |
#List files in an installed RPM | |
rpm -ql packagecloud-test | |
#Show RPM preinstall and postinstall scripts |