Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fs = require('fs');
- const crypto = require('crypto');
- const random = crypto.randomBytes(4).toString('hex');
- const filename = random + '.txt'
- fs.appendFile(filename, 'Hello ' + random + '!', function (err) {
- if (err) throw err;
- console.log(filename + ' saved');
- });
- [Desktop Entry]
- Exec=gnome-terminal -e "/home/blackslate/Utilities/convert.sh "%u""
- Icon=utilities-terminal
- Type=Application
- Name=Convert
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement