Skip to content

Instantly share code, notes, and snippets.

@CharlesLuxinger
CharlesLuxinger / Dockerfile
Last active July 3, 2021 18:02
Ignore Spring Actuator Endpoint in New Relic Transactions Metrics
FROM adoptopenjdk/openjdk11:jre-11.0.9.1_1-alpine
VOLUME /tmp
COPY ./app.jar .
COPY ./newrelic-custom-instrumentation.xml ./extensions/newrelic-custom-instrumentation.xml
COPY ./newrelic.yml .
CMD java -javaagent:newrelic.jar
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@arthurfnsc
arthurfnsc / sonarqube-h2.yml
Last active May 30, 2020 02:09
SonarQube H2 - Docker Compose
version: "3"
services:
sonarqube:
image: sonarqube:8.3.1-community
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks:
#!/bin/bash
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
@hdvianna
hdvianna / docker-compose_elastic_kibana.yml
Last active April 27, 2020 23:23
Elastic + Kibana docker-compose.yml
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es02
@felipefbs
felipefbs / git.md
Created April 26, 2020 11:26 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

step #1
go to this path:
C:\Users\NAME-PC
step #2
then create this file .bash_profile if not available
step #3
past all the aliases bellow or make yours as well:

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

Must know Git commands

Updated Apr 29, 2020

Show differences

If you want see the differences between local and remote files:

$ git diff master origin/master
@subfuzion
subfuzion / curl.md
Last active July 18, 2024 17:12
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.