Skip to content

Instantly share code, notes, and snippets.

View jcalero's full-sized avatar
👾

Jakob Calero jcalero

👾
View GitHub Profile

Data

In the last 7 days:

  • Almost 12.5 million log entries from newrelic.core.application.
  • That's 13% of all the logging (95.5 million entries)
  • Runner up is newrelic.core.agent at 2.3 million (2% of total)
  • Scrapers are responsible for 5/10 of the top loggers, total of 7 million entries

In the last 24 hours:

@jcalero
jcalero / gitcleanup.sh
Last active September 22, 2015 09:55
Cleans up local and remote git repository of merged branches (with user prompts).
#!/bin/bash
REPO='origin';
PATTERN='^(\*|\s*master\s*$|\s*develop\s*$|\s*staging\s*$|\s*HEAD.*$|\s*env-.*$)';
printf 'Branches to delete:\n';
git branch --merged | command grep -vE $PATTERN;
cleanupfinal() {
printf '\nDeleting merged branches from remote ['$REPO']\n';