Skip to content

Instantly share code, notes, and snippets.

View infer_solr_resource_leak.txt
Choose report to display (default=0): 0
solr/core/src/java/org/apache/solr/util/FileUtils.java:52: error: RESOURCE_LEAK
resource of type `java.io.FileInputStream` acquired to `srcFIS` by call to `FileInputStream(...)` at line 52 is not released after line 52.
**Note**: potential exception at line 53
Showing all 4 steps of the trace
solr/core/src/java/org/apache/solr/util/FileUtils.java:51:-1: start of procedure copyFile(...)
49. }
50.
@KoenDG
KoenDG / gist:bad6f320278b8ff809f54ca15a583532
Created Feb 25, 2019
Getting all docker hub tags for an image. Debian example
View gist:bad6f320278b8ff809f54ca15a583532
wget -q https://registry.hub.docker.com/v1/repositories/debian/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'
View My bashrc(Thank you linuxquestions.org, ubuntuforums.org, stackexchange, and others I'm forgetting)
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
iatest=$(expr index "$-" i)
# Disable the bell
if [[ $iatest > 0 ]]; then bind "set bell-style visible"; fi
# Ignore case on auto-completion