Skip to content

Instantly share code, notes, and snippets.

View godfreymakori's full-sized avatar

Godfrey Makori godfreymakori

View GitHub Profile
010-editor: 010 Editor
0-ad: 0 A.D.
0xed: 0xED
115browser: 115Browser, 115浏览器
1clipboard: 1Clipboard
1password: 1Password
1password-cli: 1Password CLI
245cloud: 245cloud
33-rpm: 33 RPM
360safe: 360 Total Security
@godfreymakori
godfreymakori / testing mail in droplet with laravel
Created November 11, 2018 13:46 — forked from emmanuelbarturen/testing mail in droplet with laravel
send email from artisan with tinker of laravel
# SSH into droplet
# go to project
$ php artisan tinker
$ Mail::send('errors.401', [], function ($message) { $message->to('emmanuelbarturen@gmail.com')->subject('this works!'); });
# check your mailbox
// set location of docx text content file
$xmlFile = $targetDir."/word/document.xml";
$reader = new XMLReader;
$reader->open($xmlFile);
// set up variables for formatting
$text = ''; $formatting['bold'] = 'closed'; $formatting['italic'] = 'closed'; $formatting['underline'] = 'closed'; $formatting['header'] = 0;
// loop through docx xml dom
while ($reader->read()){