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
| #!/bin/bash | |
| wget wordpress.org/latest.zip | |
| unzip latest.zip | |
| cd wordpress | |
| mv * .. | |
| cd .. | |
| rmdir wordpress | |
| rm latest.zip |
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
| function emailSummary() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet() | |
| var sh = ss.getSheetByName("Sheet1") | |
| var file = DriveApp.getFileById('SpreadsheetKey') //open to the sheet you want and copy the ID from the url and put it here | |
| MailApp.sendEmail("email@gmail.com", "Subject", "Body", { //email address, subject, message | |
| name: 'Filename', //file name | |
| attachments: [file.getAs(MimeType.PDF)] //file to attach | |
| }); |
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
| #!/bin/bash | |
| (pv -n /dev/cdrom | dd of="$HOME/Desktop/CDROM.iso" bs=128M conv=notrunc,noerror) 2>&1 | dialog --gauge "Running dd if=/dev/cdrom of=$HOME/Desktop/CDROM.iso, please wait..." 10 70 0 |
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
| function recordHistory() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var sheet = ss.getSheetByName("History"); | |
| var source = sheet.getRange("A2:U2"); | |
| var values = source.getValues(); | |
| // values[0][0] = new Date(); | |
| sheet.appendRow(values[0]); | |
| }; |
NewerOlder