Skip to content

Instantly share code, notes, and snippets.

View godfreymakori's full-sized avatar

Godfrey Makori godfreymakori

View GitHub Profile
@godfreymakori
godfreymakori / animated-gradient-css-only
Last active January 16, 2021 12:47
Animated Gradient Background CSS only
body {
background: linear-gradient(-45deg, #8D298A, #F26C25, #F26C25, #8D298A);
background-size: 400% 400%;
-webkit-animation: gradient 15s ease infinite;
animation: gradient 15s ease infinite;
}
@-webkit-keyframes gradient {
0% {
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 April 19, 2020 04:38
Laravel LEMP Setup --
# 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;
@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
@godfreymakori
godfreymakori / laravel_set_input_old_manually
Last active August 26, 2017 13:54
Set Laravel Old Input Manually
Session::flash('_old_input.email', $client->email);
// 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()){