Skip to content

Instantly share code, notes, and snippets.

View kkoppenhaver's full-sized avatar

Keanan Koppenhaver kkoppenhaver

View GitHub Profile
@kkoppenhaver
kkoppenhaver / products.json
Created August 17, 2021 06:28
Sample Product Schema
[
{
"ID": 44,
"Type": "variable",
"SKU": "woo-vneck-tee",
"Name": "V-Neck T-Shirt",
"Published": 1,
"Is featured?": 1,
"Visibility in catalog": "visible",
"Short description": "This is a variable product.",
@kkoppenhaver
kkoppenhaver / looking_for_a_dev_job.md
Last active February 23, 2018 20:03
How to Look for A Job as A Developer

This file is basically a brain dump of what I would do if I was looking for a job as a relativly new developer today.

Meetups/User Groups

There are tons of Meetups around, but it's important to sort through which are actually helpful and which are a waste of time. Personally, I've found that the more specific a Meetup is, the better it generally is in terms of useful content and potential networking. For example, I've gotten much more value out of the Chicago HTML5 meetup than I have the Chicago Web Professionals.

Networking at meetups is key. First, the company providing the meetup space is usually hiring (which is a big reason why they host developer meetups) and will often provide a pitch at the beginning. The person giving the pitch is the one you want to find after the talk if the openings sound interesting.

In addition, talking to other people at the meetup can lead to finding out about open positions as well. When I was helping out with hiring, I definitely looked closer at resumes of peop

Many legacy applications are built out as a monolith, but cloud infrastructure, especially AWS, is built around the assumption that different pieces of an application can be separated out. This talk is a look at how we updated a legacy monolith to be able to take advantage of cloud infrastructure.

Bio

Keanan Koppenhaver is CTO at Alpha Particle, a digital consultancy that helps plan and execute digital projects that serve anywhere from a few users a month to a few hundred thousand. He enjoys helping clients build out their developer teams and setting them up for success. He believes that more technology isn't always the answer, but when it is, it's important to get it right.

@kkoppenhaver
kkoppenhaver / ModernizingLegacySystemsAndTooling.md
Last active January 9, 2018 12:49
Modernizing Legacy Systems and Tooling

It can be frustrating dealing with legacy systems and the legacy tooling that goes with them. This talk will be a look at how we introduced a build system, updated version control practices and changed communication standards at a company with a previously-decade old toolset and mindset. We'll also examine how fragile server provisioning and rigid deploys were transitioned to a more fluid DevOps model. This resulted in consistent environments and a modern developer toolset. Together, these changes resulted in greater development velocity and a much smoother process from ticket to deploy.

Bio

Keanan Koppenhaver is CTO at Alpha Particle, a digital consultancy that helps plan and execute digital projects that serve anywhere from a few users a month to a few hundred thousand. He enjoys helping clients build out their developer teams and setting them up for success. He believes that more technology isn't always the answer, but when it is, it's important to get it right.

$.ajax({
type: "POST",
url: siteInfo.baseUrl + '/wp-json/foobar-api/v1/get-single-post',
data: {'postSlug': postSlug},
success: function(response){
console.log(response);
// Insert the post content
$('.modal-contain .post-content').html(response.post_content);
// Insert the post title
<?php
add_action( 'rest_api_init', 'foobar_register_api_hooks' );
function foobar_register_api_hooks() {
$namespace = 'foobar-api/v1';
register_rest_route( $namespace, '/get-single-post/', array(
'methods' => 'POST',
'callback' => 'foobar_get_single_post',

Introduction

Write something nice here!

First off, thank you for considering contributing to Active Admin. It's people like you that make Active Admin such a great tool.

[source: Active Admin] Need more inspiration? [1] Read The Docs [2] Mustache.js

Tell them why they should read your guidelines.

function format(text, width) {
var formatted = '';
var words = text.split(' ');
var line_length = 0;
words.map(function(value, index){
// The first word shouldn't have a space before it, and the length check shouldn't
// add any extra to the line count
if( index == 0){
addition = 0;
@kkoppenhaver
kkoppenhaver / Rewrites.php
Last active January 4, 2016 04:20
A reminder of how to configure some common rewrite rules in Wordpress
function wp_custom_redirect(){
add_rewrite_rule(
'[a-zA-Z-0-9]*\/[0-9]*-[0-9]*-([a-zA-Z0-9-]*).htm',
'index.php?name=$matches[1]',
'top'
);
}
add_action('init', 'wp_custom_redirect');
@kkoppenhaver
kkoppenhaver / gist:9005561
Created February 14, 2014 17:44
Installing Sublime Text 2
#Add it to the repository by running:
sudo add-apt-repository ppa:webupd8team/sublime-text-2
#Then update
sudo apt-get update
#Install!