Skip to content

Instantly share code, notes, and snippets.

@coderofsalvation
coderofsalvation / restconsole.bash
Created April 2, 2014 21:32
restconsole, a simple curl REST api wrapper for bash
#!/bin/bash
# author: Leon van Kammen / Coder of Salvation 2014
#
# restconsole, a simple curl REST api wrapper for bash
rooturl="http://api.yourcompany.com"
apikey="e270f99745341a89e883c583a25b821c"
cache=()
# here you can define your preset calls
@denji
denji / http-benchmark.md
Last active March 27, 2025 19:46
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@cdown
cdown / gist:1163649
Last active March 20, 2025 20:46
Bash urlencode and urldecode
urlencode() {
# urlencode <string>
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in