Skip to content

Instantly share code, notes, and snippets.

View andypotanin's full-sized avatar
🇺🇲
Focusing

Andy Potanin andypotanin

🇺🇲
Focusing
View GitHub Profile

Market Street Wine: Extending the Aisle

Since 1979, there had been a wine shop in the basement of the 311 East Market Street apartment building in downtown Charlottesville, Virginia. When Siân Richards and Thadd McQuade purchased the store in 2018, the two were already fixtures of the iconic wine shop. McQuade started working there in 1990 and Richards in 2006. Aside from a slight name change, cleaning, and rearranging the shelves, the new owners kept Market Street Wine pretty much the same as it had been for the previous 39 years.

The next four exciting years brought a multitude of new directions: By the summer of 2022, the owners saw the tastes of wine store customers, the ways they purchased wine, the price points for both wine drinkers and producers, and supply chains shifting. For instance, natural wines had become more popular, as had rosé and sparkling wines. The COVID-19 pandemic had impacted purchasing behavior as well as supply. As Richards thought about these factors, she wondered if th

@andypotanin
andypotanin / traffic.sh
Created June 27, 2020 08:13 — forked from radu-gheorghe/traffic.sh
bash script for checking out traffic via /proc/net/dev
#!/bin/bash
#shows traffic on the specified device
function human_readable {
VALUE=$1
BIGGIFIERS=( B K M G )
CURRENT_BIGGIFIER=0
while [ $VALUE -gt 10000 ] ;do
VALUE=$(($VALUE/1000))
var _thing = {};
jQuery('.student_context_card_trigger').each(function() {
var _name = jQuery(this).text().trim();
_thing[ _name ] = _thing[ _name ] || 0;
_thing[ _name ]++;
});
//_thing.sort();
//console.log(_thing);
Award Winning Firm with 750+ Clients
Your partner for digital growth
Expertly Crafted Disruption
Best of Breed Websites & Mobile APPS since 1998
Get More Customers
An Amazing Digital Experience
Supplying Arms for the Digital Revolution
Ready For Any Challenge
Website and App Design and Development
Stand Out In The Forest With Black Bear Design

It helps to identify the type of content we will have.

  1. Content Pages - change often, most likely will have different content based on host
  2. Static Assets - scripts, styles and images. always same, even if host changes. See example #1
  3. Administrative Areas - require login and special cookies to be allowed.
  4. API and RPC - dont require cookies but should not be cached

For most dynamic pages that following headers should be allowed:

<?php
add_filter( 'postmeta_form_keys', function() { return array(); });
add_filter( 'media_library_months_with_files', function() { return array(); });
add_filter( 'media_library_show_audio_playlist', function() { return false; });
add_filter( 'media_library_show_video_playlist', function() { return false; });
/**
*
*/
(function(doc, require, _) {
//console.log( 'extend-with-title.js', require( 'util' ).inspect( arguments[0], { showHidden: false, depth: 2, colors: true } ) );
_.extend( doc, {
'new_title': 'modified title again!!'
});
{
"title": "Layouts Directory",
"items": [
{
"id": "beautifully-baked",
"slug": "beautifully-baked",
"title": "Beautifully Baked",
"description": "",
"preview": "http://layouts.siteorigin.com/layout/beautifully-baked/",
"screenshot": "http://s.wordpress.com/mshots/v1/http%3A%2F%2Flayouts.siteorigin.com%2Flayout%2Fbeautifully-baked%2F?w=400",
@andypotanin
andypotanin / git-deploy.sh
Created October 21, 2016 07:06
Put into a directory that is in $PATH. Then run "git deploy {branch}" to push current branch into it.
#!/usr/bin/env bash
## Deploy branch into "develop" branch
##
## Usage:
##
## git deploy production
##
## Save Original Branch