Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active April 7, 2025 15:38
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@udaybhaskar-v
udaybhaskar-v / IntellijLiveTemplates
Last active December 7, 2022 12:56
Autogenerate logger statements using live templates.
<templateSet group="Log4j">
<template name="log4j" value="private final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(getClass());" description="log4j declaration" toReformat="true" toShortenFQNames="true">
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="log4d" value="$LOGGER_VAR$.debug(&quot;$EXPR_COPY$ = &quot; + $EXPR$);" description="log4j debug statement" toReformat="true" toShortenFQNames="true">
<variable name="LOGGER_VAR" expression="variableOfType(&quot;org.apache.log4j.Logger&quot;)" defaultValue="" alwaysStopAt="false" />
<variable name="EXPR_COPY" expression="escapeString(EXPR)" defaultValue="" alwaysStopAt="true" />
<variable name="EXPR" expression="variableOfType(&quot;&quot;)" defaultValue="" alwaysStopAt="true" />
@smoll
smoll / USING-DIFFMERGE.md
Last active March 28, 2025 01:01
Using DiffMerge as your git mergetool (for Mac OS X / macOS)