Here is the demo code which displays how to create a new account with Steem JS SDK in two different ways ( by taking fee or by taking interests of claimed account).
// setup e-mail data with unicode symbols var mailOptions = { from: '"BOSS" <[email protected]>', // sender address to: '<your mail>', // list of receivers subject: '风中的来信', // Subject line text: '为了防止垃圾邮件,现在有许多 SMTP 服务器要求客户端的 IP 地址必须要能够查到有效的 PTR 记录。', // plaintext body html: '为了防止垃圾邮件,现在有许多 SMTP 服务器要求客户端的 IP 地址必须要能够查到有效的 PTR 记录。'// html body };
// send mail with defined transport object transporter.sendMail(mailOptions, function(error, info){ if(error){ returnconsole.log(error); } console.log('Message sent: ' + info.response); })
[Desktop Entry] Name=Discord StartupWMClass=discord Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone. GenericName=Internet Messenger Exec=env http_proxy=http://127.0.0.1:8001 https_proxy=http://127.0.0.1:8001 sommelier -X --scale=0.35 /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=discord com.discordapp.Discord Icon=com.discordapp.Discord Type=Application Categories=Network;InstantMessaging; Path=/usr/bin X-Flatpak-Tags=proprietary; X-Flatpak=com.discordapp.Discord
可以看到我在 Exec 中增加了两条 env 指令来配置容器启动时的环境变量。
除了代理外,还有个问题就是 Linux 容器下打开的应用的鼠标指针很小,找到的解决方案是使用 sommelier 命令指定 scale 值。