The other day I was editing a httpd.conf file and wanted to comment a large section. On the server I was using the comment syntax wasn’t setup for these types of files.
So, to quickly accomplish I just needed to set the comment-start variable to “#”.
M-: (setq comment-start "#") RET
If you have a file ‘names.txt’ and want to mail the contents to yourself.
$ mail -s “My subject here” email@example.com < names.txt
If you find that you are reading reddit far too much and need something to help you stop try the following.
log4j.debug=true # Set root logger to DEBUG and add an appender called A1. log4j.rootLogger=DEBUG, A1 # A1 is set to be a ConsoleAppender. log4j.appender.A1=org.apache.log4j.ConsoleAppender # A1 uses PatternLayout log4.appender.A1.layout-org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n