Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Keep Moving

X·SM AnMokoto

🎯
Keep Moving
  • CHN, SZ
View GitHub Profile
@AnMokoto
AnMokoto / log4j2.xml
Created Aug 26, 2021 — forked from evil0th/log4j2.xml
Log4j2配置(控制台颜色参照springboot配置)
View log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration status="OFF">
<Properties>
<Property name="LOG_HOME">${sys:user.home}/logs</Property>
<!--<Property name="LOG_HOME">../logs</Property>-->
<!--<Property name="PATTERN">[%date{DEFAULT}] [%thread] [%-5level] TC:%x %logger{1.}.%method:%line - %msg%xEx%n</Property>-->
<Property name="LOG_EXCEPTION_CONVERSION_WORD">%xEx</Property>
<Property name="LOG_LEVEL_PATTERN">%5p</Property>
<Property name="LOG_DATEFORMAT_PATTERN">yyyy-MM-dd HH:mm:ss.SSS</Property>
<!--<Property name="CONSOLE_LOG_PATTERN">%clr{%d{${LOG_DATEFORMAT_PATTERN}}}{faint} %clr{${LOG_LEVEL_PATTERN}} %clr{${sys:PID}}{magenta} %clr{-&#45;&#45;}{faint} %clr{[%15.15t]}{faint} %clr{%-40.40c{1.}}{cyan} %clr{:}{faint} %m%n${sys:LOG_EXCEPTION_CONVERSION_WORD}</Property>-->
@AnMokoto
AnMokoto / ogg2mp3.sh
Created Nov 24, 2017 — forked from mstevenson/ogg2mp3.sh
Convert Ogg to MP3 with ffmpeg
View ogg2mp3.sh
for name in *.ogg; do ffmpeg -i "$name" -ab 128k -map_metadata 0:s:0 "${name/.ogg/.mp3}"; done;