Skip to content

Instantly share code, notes, and snippets.

View andrewstobbe's full-sized avatar

Andrew Stobbe andrewstobbe

  • Parker, Colorado
View GitHub Profile
@andrewstobbe
andrewstobbe / RestClient.php
Last active November 23, 2022 21:12
PHP RestClient
<?php
/**
* Class RestClient
*/
class RestClient
{
private $curl;
private $url;
@andrewstobbe
andrewstobbe / HomebrewApache2.4.txt
Last active November 4, 2016 21:59
Migrate LAMP via brew Yosemite to Sierra
I have already removed existing versions... then.
brew doctor
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/php
brew tap homebrew/apache
brew update
@andrewstobbe
andrewstobbe / .htaccess
Created March 12, 2015 23:17
A full .htaccess file
# Password protect this directory
# ==========================================
# AuthType Basic
# AuthName "Restricted Area"
# AuthUserFile /etc/httpd/conf/.htpasswd
# require valid-user
# Make PHP code look like other code types
# AddType application/x-httpd-php .asp .py .pl
@andrewstobbe
andrewstobbe / header-meta
Created March 12, 2015 23:13
Meta tags for html head
<head>
<meta charset="utf-8">
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=9" /><![endif]-->
<meta name="handheldfriendly" content="true" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
# Password protect this directory
# ==========================================
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /etc/httpd/conf/.htpasswd
require valid-user
# Make PHP code look like other code types
AddType application/x-httpd-php .asp .py .pl
@NTICompass
NTICompass / QRLogo.php
Created October 13, 2011 03:10
QR Code + Logo Generator
<?php
/**
* QR Code + Logo Generator
*
* http://labs.nticompassinc.com
*/
$data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com';
$size = isset($_GET['size']) ? $_GET['size'] : '200x200';
$logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE;