Skip to content

Instantly share code, notes, and snippets.

View rgwozdz's full-sized avatar

Rich Gwozdz rgwozdz

  • Esri
  • Bellingham, WA
View GitHub Profile
@rgwozdz
rgwozdz / CollectionViewTemplate
Last active December 26, 2015 19:09
Backbone.js Collection View Template
Backbone = (function (module) {
module.CollectionView = Backbone.View.extend({
initialize: function (args) {
var self, viewClass;
var self = this;
@rgwozdz
rgwozdz / apache-basic-authentication
Last active December 23, 2015 06:59
Apache basic authentication setup.
1) Open the http.conf file for editing:
# sudo pico /etc/apache2/http.conf.
2) Add specifics for each var/www directory to be placed under Basic Authentication:
<Directory "/var/www/my-web-app-directory">
AuthUserFile /etc/apache2/htpasswords
AuthName "Some silly message."
AuthType Basic
@rgwozdz
rgwozdz / apache-install
Last active December 20, 2015 11:59
Instructions for installing apache.
##################
# Apache Install #
##################
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2