Skip to content

Instantly share code, notes, and snippets.

View kukulogy's full-sized avatar

Jan Michael kukulogy

  • Philippines
View GitHub Profile
@kukulogy
kukulogy / Race Condition Test
Last active August 30, 2019 03:02
Race Condition Test
# Changed to use content-type flag instead of header: -H 'Content-Type: application/json'
siege -c50 -t60S 'http://domain.com/post/ POST val=value1&val2=value2'
# Bash
#!/bin/bash
for y in `seq 1 50` ;
do (for x in `seq 1 50` ;
do curl -d "val=value1&val2=value2" -X POST http://domain.com/post/ ;
done);
# Zen Coding / Emmet
img[src=$#]*
[alias]
lg = !"git lg1"
lg1 = !"git lg1-specific --all"
lg2 = !"git lg2-specific --all"
lg3 = !"git lg3-specific --all"
rms = !"git rm --cached $(git ls-files --deleted)"
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.1",
"info": {
"title": "Pipe17 API",
"description": "Generic interface to Pipe17 services\n\n# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->",
"termsOfService": "https://www.pipe17.com/terms/",
"contact": {
"email": "support@pipe17.com"
},
"license": {