POST /photo/mApp/ajax/login.php HTTP/1.1
Content-Length: 113
Content-Type: application/x-www-form-urlencoded
Host: 192.168.1.2:80
Connection: Keep-Alive
action=login&username=user&passwd=password&video_formats=%5B%5B%22*%22%2C0%2C0%2C1280%2C720%2C0%2C%5B%5D%5D%5D
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
given() | |
.log().all() | |
.contentType(ContentType.JSON) | |
.expect() | |
.log().all() | |
.statusCode(200) | |
.when() | |
.get("/agents/probeUrl/" + agentUrl); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gradle --version | |
------------------------------------------------------------ | |
Gradle 1.7 | |
------------------------------------------------------------ | |
Build time: 2013-08-06 11:19:56 UTC | |
Build number: none | |
Revision: 9a7199efaf72c620b33f9767874f0ebced135d83 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.dahanne.eclipse.m2e.localizer; | |
import java.io.File; | |
import java.util.Set; | |
import org.apache.maven.plugin.MojoExecution; | |
import org.apache.maven.project.MavenProject; | |
import org.eclipse.core.resources.IProject; | |
import org.eclipse.core.runtime.IProgressMonitor; | |
import org.eclipse.m2e.core.MavenPlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ehcache.agent; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; | |
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping; | |
/** | |
* Created by Anthony Dahanne on 2015-06-01. | |
*/ | |
@Configuration |
I hereby claim:
- I am anthonydahanne on github.
- I am anthonydahanne (https://keybase.io/anthonydahanne) on keybase.
- I have a public key ASBD72b9PpLKD2S6Nwt5mt8TT0rhCxeu_oSEkEjrgxNBugo
To claim this, I am signing this object:
I had trouble figuring out how to configure Prometheus EC2 instances discovery once, so I'm sharing this gist that includes some sample config that worked fine for me with Prometheus v2.17.2!
- You should of course start by reading the official documentation
- But at the time of writing, it was incomplete or misleading; the author seems to know but does not seem to care though.
- Also, make sure to use a recent version of Prometheus.
- If nothing works, well, you can have a look at the source code.
Good luck!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env kotlin | |
@file:DependsOn("com.github.kittinunf.fuel:fuel:2.3.1") | |
@file:DependsOn("com.google.code.gson:gson:2.8.6") | |
@file:DependsOn("com.beust:klaxon:5.5") | |
import com.beust.klaxon.JsonObject | |
import com.beust.klaxon.Klaxon | |
import com.beust.klaxon.Parser | |
import com.beust.klaxon.PathMatcher | |
import com.github.kittinunf.fuel.core.extensions.authentication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ARN=arn:aws:iam::xxx:user/xxx | |
JOB_ID=$(aws iam generate-service-last-accessed-details --arn $ARN --output=json | jq -r .JobId) | |
aws iam get-service-last-accessed-details --job-id $JOB_ID --output=json | jq '[.ServicesLastAccessed[] | select (.TotalAuthenticatedEntities | contains(1))] | sort_by(.LastAuthenticated)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.slice | |
.call(document.querySelectorAll("a")) | |
.filter(link => link.attributes.rel).map(link => link.href) | |
.sort() |
OlderNewer