Skip to content

Instantly share code, notes, and snippets.

View liangway's full-sized avatar

liangway liangway

  • Singapore
View GitHub Profile
Ref. https://stackoverflow.com/questions/44918228/how-to-generate-html-report-in-jmeter
To generate Dashboard report follow the instruction below:
Generating Report Dashboard.
Generation from an existing sample CSV log file:
jmeter -g <log file> -o <Path to output folder>
@liangway
liangway / install_psql_client.md
Created February 3, 2020 06:57
install psql client
#!/usr/bin/env bash
for j in $(kubectl get jobs -o custom-columns=:.metadata.name)
do
if [[ $j == YOUR-JOB-PREFIX* ]] ; #Change the job prefix to delete other jobs
then
echo Delete job $j
kubectl delete jobs $j &
fi
done
minikube start

docker build . -t higo

# Start docker registry
docker run --rm -it --network=host alpine ash -c "apk add socat && socat TCP-LISTEN:5000,reuseaddr,fork TCP:$(minikube ip):5000"

docker run --rm -it -p 8080:8080 higo
# update key values in secrets or config
kubectl get secrets some-secrets -o yaml --export > some-secrets.yaml
echo AAAAAA | base64
kubectl apply –f some-secrets.yaml

@liangway
liangway / Run-performance-test-with-k6-examples.js
Created February 6, 2021 07:00
Code for Run performance test with k6 on medium
// Example of http get
// 1_http_get.js
import http from 'k6/http';
import { sleep } from 'k6';
export default function() {
http.get('http://test.k6.io');
sleep(1);
}
SELECT
Flight.FlightNumber,
(SELECT SUM(Passenger.BaggageWeight)
FROM Flight
INNER JOIN Passenger ON Flight.id = Passenger.FlightId )
FROM Flight
GROUP BY Flight.id;