<?php
error_reporting(0);
try {
$rc=200;
if (!fopen("check_readonly.txt", "w+")) throw new Exception('File open failed');
if (!fwrite($fp, "s")) throw new Exception('File write failed');
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
F22B079A4CCD67A9DD5042BB394FFCC1E457DACC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.jq/jwt.jq | |
# | |
# Ex. | |
# jq -R 'import "jwt" as jwt; jwt::decode' /tmp/jwt_to_decode | |
# | |
# this is a alternative to: | |
# jq -R 'split(".") | .[0],.[1] | @base64d | fromjson' /tmp/jwt_to_decode | |
# | |
# still possible to use an alias for either command but this appears to be more scalable. |