This file contains 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
<VirtualHost> | |
ServerName apache.example.com | |
[...] | |
ProxyPass /gitblit ajp://infra.example.com:8009/gitblit | |
# ProxyPassReverse is not required, because the apache context /gitblit is the same as the tomcat one | |
<Location /gitblit> | |
SSLVerifyClient require |
This file contains 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
bash$ shopt -s extglob | |
bash$ ls -l /opt/too_many_files/!(confidential.txt) | |
secret.txt | |
top_secret.txt | |
public.txt |
This file contains 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
Subsystem sftp internal-sftp | |
Match group sftp-only | |
ChrootDirectory /home/sftp/ | |
X11Forwarding no | |
AllowTcpForwarding no | |
ForceCommand internal-sftp -u 0002 |
This file contains 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
% tar xjf the_bad_bad_backup.tar.bz2 | |
bzip2: Data integrity error when decompressing. | |
Input file = (stdin), output file = (stdout) | |
It is possible that the compressed file(s) have become corrupted. | |
You can use the -tvv option to test integrity of such files. | |
You can use the `bzip2recover' program to *attempt* to recover | |
data from undamaged sections of corrupted files. |
This file contains 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
% bzip2recover the_bad_bad_backup.tar.bz2 |
This file contains 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
% bunzip2 rec*bz2 |
This file contains 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
% tar xf rec00200 | |
tar: this doesn't look like a »tar«-archive | |
tar: jumping to the next header | |
tar: error upon exit caused by previous errors |
This file contains 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
% cat rec00[2-4][0-9][0-9] > good_tail.tar |
This file contains 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
% perl find_tar_headers.pl good_tail.tar | |
good_tail.tar:17185:top/secret/warp_reactor.so:157106 | |
good_tail.tar:75041:top/secret/kernel_injectors.so:153125 | |
good_tail.tar:130849:top/secret/dampening_fields.so:145746 | |
good_tail.tar:183585:top/secret/plasma_controls.so:157035 | |
[...] |
This file contains 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
% tail -c +17185 good_tail.tar > extracted_tail.tar | |
% tar xf extracted_tail.tar |
NewerOlder