Skip to content

Instantly share code, notes, and snippets.

@ahmetb
ahmetb / sloc.sh
Created February 17, 2013 22:21
Quick SLoC counter in CLI
# Counts source lines of code in current directory. Replace *.java with your source extension.
# (ignores empty lines)
find . -type f -name '*.java' -exec cat {} \; | sed '/^\s*$/d' | wc -l
# to ignore comments (in languages where comments start with #)
find . -type f -name '*.java' -exec cat {} \; | sed '/^\s*#/d;/^\s*$/d' | wc -l
@GLMeece
GLMeece / Steps_to_Terminal_Enlightenment_on_a_Mac.md
Last active June 6, 2024 06:10
Steps to Terminal Enlightenment on a Mac (tweaking your terminal for fun and profit)
@maratori
maratori / .golangci.yml
Last active July 21, 2024 10:49
Golden config for golangci-lint
# This code is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021 Marat Reymers
## Golden config for golangci-lint v1.59.1
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt and change it for your needs.
run: