Skip to content

Instantly share code, notes, and snippets.

Avatar

Godfrey Makori godfreymakori

View GitHub Profile
View casks2.txt
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 / nginx.conf
Last active Apr 19, 2020
Laravel LEMP Setup --
View nginx.conf
# Instructions
# 1. Replace laravel-app-folder with your laravel app folder name
server {
listen 80 default_server;
listen [::]:80 default_server;
client_max_body_size 200M;
View testing mail in droplet with 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
@godfreymakori
godfreymakori / laravel_set_input_old_manually
Last active Aug 26, 2017
Set Laravel Old Input Manually
View laravel_set_input_old_manually
Session::flash('_old_input.email', $client->email);
View docx2html
// 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()){
You can’t perform that action at this time.