This file contains hidden or 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
{ | |
"terminal.integrated.env.linux": { | |
"PROMPT_COMMAND": "history -a", | |
"HISTFILE":"${workspaceFolder}/.sh_history" | |
} | |
} |
This file contains hidden or 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
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \ | |
-dNOPAUSE -dBATCH -dColorImageResolution=150 \ | |
-sOutputFile=output.pdf original.pdf |
This file contains hidden or 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
# NB: Attachment#save seems to produce 0 byte files, probably would be resolved via rewind below | |
require 'mapi/msg' | |
msg = Mapi::Msg.open '/tmp/email.msg' | |
# view body | |
puts msg.properties.body | |
# save attachments | |
msg.attachments.each_with_index do |a, idx| |
OlderNewer