Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Usama Muneer usamamuneerchaudhary

🏠
Working from home
Block or report user

Report or block usamamuneerchaudhary

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4c499d47bf009c3c5c659bd5db6b9c21
{
"rules":
[{
"class": "TextNodeRule"
}, {
"class": "PassThroughRule",
"selector": "html"
}, {
"class": "PassThroughRule",
"selector": "head"
@usamamuneerchaudhary
usamamuneerchaudhary / secure-headers.php
Last active Sep 11, 2018
Laravel HTTP Security Headers config file
View secure-headers.php
<?php
$protocol = 'https://';
if ( ! isset( $_SERVER['HTTPS'] ) || $_SERVER['HTTPS'] == 'off' ) {
$protocol = 'http://';
}
return [
'x-content-type-options' => 'nosniff',
@usamamuneerchaudhary
usamamuneerchaudhary / wpinstall.sh
Created Jan 16, 2017
Bash Script for downloading and configuring WordPress on your local machine
View wpinstall.sh
#!/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 Jan 11, 2017
Example Starter Gulp File for all of my projects
View gulpfile.js
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
You can’t perform that action at this time.