Skip to content

Instantly share code, notes, and snippets.

View duluca's full-sized avatar
💭
😎

Doguhan Uluca duluca

💭
😎
View GitHub Profile
@duluca
duluca / load-test.sh
Created January 18, 2018 00:11 — forked from bigomega/load-test.sh
A simple bash script to do load (performance) testing of a web service
max="$1"
date
echo "url: $2
rate: $max calls / second"
START=$(date +%s);
get () {
curl -s -v "$1" 2>&1 | tr '\r\n' '\\n' | awk -v date="$(date +'%r')" '{print $0"\n-----", date}' >> /tmp/perf-test.log
}
@duluca
duluca / package.json
Created January 5, 2017 14:23 — forked from kgroat/package.json
An example of how to use npm as a build tool along with TypeScript
{
"name": "playground",
"version": "1.0.0",
"main": "server/app.js",
"private": true,
"scripts": {
"clean": "npm run clean:client && npm run clean:server",
"clean:client": "rm -rf public/*.* && rm -rf public/**/*.* && rm -rf src/ts/*.js && rm -rf src/ts/**/*.js",
"clean:server": "rm -rf server/*.{js,d.ts} && rm -rf server/**/*.{js,d.ts}",
"compile": "npm run compile:client && npm run compile:sass && npm run compile:server && npm run compile:static",