Skip to content

Instantly share code, notes, and snippets.

{
orders(warehouse: 42, page: 1, pageSize: 2) {
orders {
id
door
supplier
actvities {
type
expected
performed
/ # nslookup secondapp
Server: 10.96.0.10
Address: 10.96.0.10:53
Name: secondapp.default.svc.cluster.local
Address: 10.108.69.151
*** Can't find secondapp.svc.cluster.local: No answer
*** Can't find secondapp.cluster.local: No answer
2019-01-31 17:41:32.618 DEBUG 25870 --- [pool-1-thread-2] org.apache.http.wire : http-outgoing-20 >> "POST /queue/notification-events-from-settlement-s3bucket-queue HTTP/1.1[\r][\n]"
2019-01-31 17:41:32.619 DEBUG 25870 --- [pool-1-thread-2] org.apache.http.wire : http-outgoing-20 >> "Host: localhost:4576[\r][\n]"
2019-01-31 17:41:32.619 DEBUG 25870 --- [pool-1-thread-2] org.apache.http.wire : http-outgoing-20 >> "Authorization: AWS4-HMAC-SHA256 Credential=doenst_matter/20190131/us-east-1/sqs/aws4_request, SignedHeaders=amz-sdk-invocation-id;amz-sdk-retry;host;user-agent;x-amz-date, Signature=f75e2e6941ba7ffb225cadfb109c3c73ef59fdf657eefdfacebc010cc411696e[\r][\n]"
2019-01-31 17:41:32.619 DEBUG 25870 --- [pool-1-thread-2] org.apache.http.wire : http-outgoing-20 >> "X-Amz-Date: 20190131T164132Z[\r][\n]"
2019-01-31 17:41:32.619 DEBUG 25870 --- [pool-1-thread-2] org.apache.http.wire : http-outgoing-20 >> "User-Agen
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Random;
import java.util.stream.IntStream;
public class Foo {
public static void main(String[] args) throws FileNotFoundException {
IntStream range = IntStream.range(1, 100_000);
@RunWith(SpringRunner.class)
@DataJpaTest
@AutoConfigureTestDatabase(replace = Replace.NONE)
public class FooTest {
@Autowired
private EntityManager em;
@AfterTransaction
public void showCountAfterTransaction() {
@csokol
csokol / current.txt
Created December 8, 2016 15:47
apache bench idsp_tracker
➜ tests git:(fs-readme) ✗ ab -p conv.txt -T application/x-www-form-urlencoded -c 2 -n 5000 http://localhost:8080/conversion
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
➜ honeybadger-io git clone https://github.com/honeybadger-io/honeybadger-go
Cloning into 'honeybadger-go'...
remote: Counting objects: 576, done.
remote: Total 576 (delta 0), reused 0 (delta 0), pack-reused 576
Receiving objects: 100% (576/576), 98.60 KiB | 0 bytes/s, done.
Resolving deltas: 100% (378/378), done.
Checking connectivity... done.
➜ honeybadger-io cd honeybadger-go
➜ honeybadger-go git:(master) ls
CHANGELOG.md buffered_worker.go configuration_test.go error_test.go notice_test.go
I, [2016-11-11T13:41:55.291931 #68] INFO -- : [ed5629db-8705-4168-846d-aa0746612aca] Started GET "/api/v1/rtbx/campaigns/100187/app_placements?end_date=2016-11-10&page=1&per_page=10&sort_direction=desc&sort_field=impressions&start_date=2016-11-10" for 52.45.220.125 at 2016-11-11 13:41:55 +0000
I, [2016-11-11T13:41:55.293004 #68] INFO -- : [ed5629db-8705-4168-846d-aa0746612aca] Processing by RTBX::AppPlacementsController#index as HTML
I, [2016-11-11T13:41:55.293217 #68] INFO -- : [ed5629db-8705-4168-846d-aa0746612aca] Parameters: {"end_date"=>"2016-11-10", "page"=>"1", "per_page"=>"10", "sort_direction"=>"desc", "sort_field"=>"impressions", "start_date"=>"2016-11-10", "campaign_id"=>"100187"}
D, [2016-11-11T13:41:55.297027 #68] DEBUG -- : [ed5629db-8705-4168-846d-aa0746612aca] User Load (2.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 48 ORDER BY `users`.`id` ASC LIMIT 1
D, [2016-11-11T13:41:55.300616 #68] DEBUG -- : [ed5629db-8705-4168-846d-aa0746612aca] (2.3ms) SELECT `enterprises`.`id