My Online Snippets
Assorted code snippets and demos that are already hosted somewhere online, for example, as a Github gist.
CyberChef Recipes
- Turn URL-encoded form-data as raw string, into colon separated key-value pairs to paste into Postman
- Clean up HeidiSQL output, for pasting into a SQL fiddle
[{"op":"Find / Replace","args":[{"option":"Regex","string":"\\/\\*.*\\*\\/;"},"",true,false,true,false]},{"op":"Find / Replace","args":[{"option":"Regex","string":"(\\s{0,1})ENGINE=InnoDB "},"$1",true,false,true,false]},{"op":"Find / Replace","args":[{"option":"Simple string","string":" DEFAULT CHARSET=latin1"},"",true,false,true,false]},{"op":"Find / Replace","args":[{"option":"Regex","string":"\\n{2,}"},"\\n\\n",true,false,true,false]},{"op":"Find / Replace","args":[{"option":"Regex","string":"\\n{2,}"},"",false,false,true,false]}]
- Turn markdown links (
[text](link)
) into html links withnoopener
and_blank
target.[{"op":"Find / Replace","args":[{"option":"Regex","string":"([^!]{1})\\[([^\\[\\]]+)\\]\\(([^)]+)\\)"},"$1<a href=\"$3\" rel=\"noopener\" target=\"_blank\">$2</a>",true,false,true,false]}]
- Turn commented, multi-line bash example into single-line command
[ { "op": "Find / Replace", "args": [{ "option": "Regex", "string": "^\\s+" }, "", true, false, true, false] }, { "op": "Find / Replace", "args": [{ "option": "Regex", "string": "^#.*$[\\r\\n]" }, "", true, false, true, false] }, { "op": "Find / Replace", "args": [{ "option": "Regex", "string": "\\\\s*$[\\r\\n]*" }, "", true, false, true, false] } ]