Skip to content

Instantly share code, notes, and snippets.

View eliocapelati's full-sized avatar
👋
Hello world!

Elio eliocapelati

👋
Hello world!
View GitHub Profile
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
scheme: HTTP
initialDelaySeconds: 60
failureThreshold: 5
timeoutSeconds: 5
periodSeconds: 20
readinessProbe:
@eliocapelati
eliocapelati / gist:b5a5b4ceed5cde209afe907d607b7e2a
Created February 2, 2019 13:56
Turn on show hidden files (like dotenv) in Finder.
defaults write com.apple.finder AppleShowAllFiles YES
@eliocapelati
eliocapelati / keybindings.json
Last active December 26, 2018 13:05
VSCODE Key Bind for UpperCase and LowerCase
[
{
"key": "cmd+t l",
"command": "editor.action.transformToLowercase",
"when" : "editorTextFocus"
},
{
"key": "cmd+t u",
"command": "editor.action.transformToUppercase",
"when" : "editorTextFocus"
@eliocapelati
eliocapelati / lastfm.py
Last active June 13, 2022 14:55
Usage: $ python3 lastfm_cli.py username
import requests
from requests import Session
import json
from pprint import pprint
import os
import sys
class Lastfm:
url = 'http://ws.audioscrobbler.com/2.0/'
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
Africa/Blantyre
@eliocapelati
eliocapelati / logback-spring.xml
Created November 16, 2017 16:38 — forked from thomasdarimont/logback-spring.xml
logback+graylog spring configuration example
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration>
<configuration>
<property name="CONSOLE_LOG_PATTERN"
value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} [%X{svc_usr}]%clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<contextName>test</contextName>
Array.from({length: 5}, (v, k) => moment().subtract(k, 'month').format("MM/YYYY"));
{
"extractors": [
{
"title": "KONG_JSON",
"extractor_type": "json",
"converters": [],
"order": 0,
"cursor_strategy": "copy",
"source_field": "message",
"target_field": "",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am eliocapelati on github.
  • I am eliocapelati (https://keybase.io/eliocapelati) on keybase.
  • I have a public key ASDI8j5jFL4jcyVJ5TSGtjUK3lbzIMJedXNtfNUlqgb3jgo

To claim this, I am signing this object: