Skip to content

Instantly share code, notes, and snippets.

@pqdone
pqdone / gitignore-for-wp
Created January 4, 2022 10:39 — forked from samhotchkiss/gitignore-for-wp
Basic Gitignore for WordPress
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@pqdone
pqdone / slim-stream-route.php
Created April 16, 2020 10:57 — forked from james2doyle/slim-stream-route.php
Create a streaming download of a large file with Slim PHP using the build in Stream class
<?php
use Slim\Http\Request;
use Slim\Http\Response;
use Slim\Http\Stream;
$app->get('/stream', function (Request $request, Response $response, array $args) {
// a 100mb file
$path = '../public/files/document.pdf';
<#
.SYNOPSIS
MSTeams_Auth_Problems.ps1 - PowerShell Script to workaround Microsoft Teams Authentication Problems
.DESCRIPTION
The Script works only for the current User! Don't use it with "runas"!
Script Part 1: Adds trusted Site to Zone Assignments for the current User
Reference: https://docs.microsoft.com/en-us/microsoftteams/known-issues#authentication
Script Part 2: Purges the Microsoft Teams Application Cache Folders for the current User
@pqdone
pqdone / GitConfigHttpProxy.md
Created November 14, 2019 08:49 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@pqdone
pqdone / gulpfile.js
Created October 8, 2019 07:43 — forked from martincarlin87/gulpfile.js
Example gulpfile for PHP, SASS, Watching, Minifying, Optimising, Live Reload and Deploying
var gulp = require('gulp');
var gutil = require('gulp-util');
var argv = require('minimist')(process.argv);
var prompt = require('gulp-prompt');
var rsync = require('gulp-rsync');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var browserSync = require('browser-sync');
var useref = require('gulp-useref');