Skip to content

Instantly share code, notes, and snippets.

Phil Banks emirpprime

Block or report user

Report or block emirpprime

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
# Installation script for a Wordpress 3.0 website on Ubuntu 10.04
# Josh Kersey
# Created: May 15, 2012
# Last Update: June 13, 2012
# get setup parameters
echo "apache vhost name (one word):"
View last-tab.js
(function () {
'use strict';
$('a[data-toggle="tab"]').on('', function (e) {
var id = $(this).parents('[role="tablist"]').attr('id');
var key = 'lastTag';
if (id) {
key += ':' + id;
justinkelly / .htaccess
Created Jan 5, 2012
Exclude file/directories/urls from Apache .htaccess password protected site
View .htaccess
AuthType Basic
AuthName "Auth Required"
AuthUserFile /path/to/.htpasswd
Require valid-user
# allow public access to the following resources
SetEnvIf Request_URI "(path/to/directory/)$" allow
SetEnvIf Request_URI "(path/to/file\.phpt)$" allow
SetEnvIf Request_URI "(util)$" allow
Order allow,deny
Allow from env=allow
internationils /
Last active Feb 20, 2017
Create and apply Letsencrypt certificates to Gandi vhosts using certbot
# ---------------------------------------------------------------------
# ---------------------------------------------------------------------
# v04 - 2016-08-10 combibe create and update loop
# v03 - 2016-08-10 more cleanups
# v02 - 2016-08-04 lots of cleanups, improved loop for updates
# v01 - basic functionality
You can’t perform that action at this time.