Skip to content

Instantly share code, notes, and snippets.

View usamamuneerchaudhary's full-sized avatar
🏠
Working from home

Usama Muneer usamamuneerchaudhary

🏠
Working from home
View GitHub Profile
@usamamuneerchaudhary
usamamuneerchaudhary / Envoy.blade.php
Created November 13, 2022 17:00 — forked from gvsrepins/Envoy.blade.php
A Laravel envoy script for deployment
@servers(['production' => 'productionserver', 'local'=> 'vagrant@127.0.0.1 -p 2222'])
{{-- Configuration section --}}
@setup
/*
|--------------------------------------------------------------------------
| Git Config
|--------------------------------------------------------------------------
|
{
"rules":
[{
"class": "TextNodeRule"
}, {
"class": "PassThroughRule",
"selector": "html"
}, {
"class": "PassThroughRule",
"selector": "head"
@usamamuneerchaudhary
usamamuneerchaudhary / secure-headers.php
Last active June 24, 2020 03:22
Laravel HTTP Security Headers config file
<?php
$protocol = 'https://';
if ( ! isset( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
$protocol = 'http://';
}
return [
'x-content-type-options' => 'nosniff',
@usamamuneerchaudhary
usamamuneerchaudhary / wpinstall.sh
Created January 16, 2017 12:19
Bash Script for downloading and configuring WordPress on your local machine
#!/bin/bash -e
clear
echo "============================================"
echo "Installing WordPress for you."
echo "============================================"
#download wordpress
echo "Downloading..."
curl -O https://wordpress.org/latest.tar.gz
@usamamuneerchaudhary
usamamuneerchaudhary / gulpfile.js
Last active January 11, 2017 11:44
Example Starter Gulp File for all of my projects
var gulp = require('gulp');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var sass = require('gulp-sass');
var uglify = require('gulp-uglify');
var cleancss = require('gulp-clean-css');
var imgmin = require('gulp-imagemin');
/**
* Styles Task