Skip to content

Instantly share code, notes, and snippets.


Stanley Masinde StanleyMasinde

View GitHub Profile
StanleyMasinde /
Created Nov 25, 2018 — forked from lancejpollard/
Complete List of HTML Meta Tags

Copied from

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
StanleyMasinde /
Created May 23, 2019
a simple script to automate normal git actions
echo "Starting the precommit process"
git add --all
echo "All changes staged"
echo "In yhe next screen add your commit message use nano syntax"
git commit
echo "All changes have commited"
git pull
View gist:9d114c7c864182b46af96ce3dabe33cf
Using nginx version: nginx/1.6.2 and Laravel 5
In the controller:
use Symfony\Component\HttpFoundation\StreamedResponse;
- - - - - - Some method - - - - - - - - -
$response = new StreamedResponse();
$response->headers->set('Content-Type', 'text/event-stream');
$response->headers->set('Cache-Control', 'no-cache');
function() {
# Update the server with the latest changes
# Put the application in maintenance mode
php artisan down
echo "The Application in in maintenance mode"
# Git pull from remote
echo "Starting the update"
echo "Starting the process"
sudo apt update && sudo apt upgrade
echo "Echo installing php"
sudo apt install php
echo "Done installing php and apache2"
StanleyMasinde / HandlePutFormData.php
Last active Jul 20, 2020 — forked from Stunext/HandlePutFormData.php
Laravel: Middleware to support multipart/form-data in PUT, PATH and DELETE requests
View HandlePutFormData.php
namespace App\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
* @author
StanleyMasinde /
Created Feb 20, 2021 — forked from am-kantox/
Bash script that prefixes commits with a JIRA (CO-400)
#!/usr/bin/env bash
# based on
# am@aleksei  feature/CO-400-some-branch-name$ ./ "Foo bar."
# → [feature/CO-400-some-branch-name f70ebbf167] CO-400: Foo bar.
set -euo pipefail
if [ -z "${1:-}" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
StanleyMasinde /
Last active Jun 4, 2022
A shell script to help in application deployment
## Set error handling
set -e
## Set debug mode
#set -x
StanleyMasinde /
Last active Oct 24, 2022 — forked from stefanbc/
Set proper permissions on /var/www/


To set up permissions on /var/www where your files are served from by default:

sudo addgroup webmasters  # If you have multiple users that need to manage the server.
sudo adduser $USER webmasters # Add your current user to the webmasters group
sudo chown -R root:webmasters /var/www
sudo find /var/www -type f -exec chmod 664 {} \;
sudo find /var/www -type d -exec chmod 775 {} \;