Skip to content

Instantly share code, notes, and snippets.

View AnMokoto's full-sized avatar
🎯
Keep Moving

X·SM AnMokoto

🎯
Keep Moving
  • CHN, SZ
View GitHub Profile
@AnMokoto
AnMokoto / log4j2.xml
Created August 26, 2021 08:51 — forked from evil0th/log4j2.xml
Log4j2配置(控制台颜色参照springboot配置)
<?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 November 24, 2017 06:17 — forked from mstevenson/ogg2mp3.sh
Convert Ogg to MP3 with ffmpeg
for name in *.ogg; do ffmpeg -i "$name" -ab 128k -map_metadata 0:s:0 "${name/.ogg/.mp3}"; done;