Last active
February 12, 2019 16:11
-
-
Save pwenzel/de699fad5b731f04a88436bf9a152d17 to your computer and use it in GitHub Desktop.
Fish shell function to unserialize php from the OSX clipboard.
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
# ~/.config/fish/functions/unserialize_clipboard.fish | |
# unserialize PHP from the clipboard | |
# based on https://gist.github.com/gregferrell/747642 | |
function unserialize_clipboard | |
set STRING (pbpaste) | |
php -r "echo var_dump(unserialize('$STRING'));" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment