Skip to content

Instantly share code, notes, and snippets.

@pwenzel
Last active February 12, 2019 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pwenzel/de699fad5b731f04a88436bf9a152d17 to your computer and use it in GitHub Desktop.
Save pwenzel/de699fad5b731f04a88436bf9a152d17 to your computer and use it in GitHub Desktop.
Fish shell function to unserialize php from the OSX clipboard.
# ~/.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