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
awk 'BEGIN{OFS=FS="|"}$250=="3"{$250="0"}{print}' ~/Desktop/10744007_imp.txt > ~/Desktop/10744007_imp_fixed.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
## add to .thunderbird/@@@.default/prefs.js | |
user_pref("mail.check_all_imap_folders_for_new", true); | |
## ... or more permanent via about:config | |
set mail.server.default.check_all_folders_for_new to true |
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
Show hidden characters
{ | |
"cmd": ["pdflatex","$file_name"], | |
"selector": "text.tex.latex" | |
} |
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
last | grep "Wed Aug 15" |
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
grep "20513754200" 11001104.txt | grep -o "|" |wc -l |
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
zgrep -E 'Feb 8 14:4[2-5]' ltm.8.gz |
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
tmpdir=$(ps aux | grep -v grep | grep -Eo "tmpdir=[^ ]*" | cut -d "=" -f 2) | |
pid=$(jps -J-Djava.io.tmpdir=$tmpdir | grep -v Jps | grep -Eo "^[0-9]{1,}") | |
ln -fs "$tmpdir/.java_pid$pid" "/tmp/.java_pid"$pid; | |
jstack -l $pid >> "/data/tmp/"$pid"_stacktrace" |
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
libreoffice --headless -convert-to pdf *.docx -outdir . |
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
### 1. create appender | |
<appender name="JpaLogFile" class="org.apache.log4j.FileAppender"> | |
<param name="File" value="/tomcat/logs/JpaTransactionManagerDebug.log" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%d{ISO8601} %-5p %c [executionDate=%X{executionDate}]- %m%n" /> | |
</layout> | |
</appender> | |
### 2. configure logger | |
<logger name="org.springframework.orm.jpa.JpaTransactionManager" additivity="false"> |
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
cd /usr/local/share/fonts/truetype | |
sudo mkdir fontdir && sudo cp -r ~/fontdir . | |
sudo chown root.root fontdir && cd fontdir && sudo mkfontdir | |
cd .. && fc-cache |
OlderNewer