Skip to content

Instantly share code, notes, and snippets.

@maglietti
maglietti / analyzeNodes.ipynb
Created June 15, 2022 17:20
Vector dummy-log analysis
View analyzeNodes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@maglietti
maglietti / vector.toml
Created June 14, 2022 16:44
Simple pipeline demo-log config
View vector.toml
# __ __ __
# \ \ / / / /
# \ V / / /
# \_/ \/
#
# V E C T O R
# Configuration
#
# ------------------------------------------------------------------------------
# Website: https://vector.dev
@maglietti
maglietti / docker-compose.yml
Created June 14, 2022 16:07
Single node Kafka cluster
View docker-compose.yml
---
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.1.1
platform: linux/amd64
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
@maglietti
maglietti / get_latest_quine.sh
Last active May 23, 2022 19:22
Download the latest version of Quine
View get_latest_quine.sh
#! /bin/bash
# Download the latest release
curl -s https://api.github.com/repos/thatdot/quine/releases/latest \
| grep "browser_download_url.*jar" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -i -
# Create the latest sym-link
@maglietti
maglietti / mk_icon_table.sh
Created December 29, 2017 14:10
Create a style-sheet table layout from the Icomoon style.css file
View mk_icon_table.sh
perl -lne ‘print $1 if /\.(.*):before/’ < style.css | awk ‘{ print “<div class=\“col-xs-6 col-sm-4 col-md-2\“><div class=\“twx-icon-wrapper\“><span class=\“twx-icon “$1"\” aria-hidden=\“true\“></span><div class=\“twx-icon-label\“>”$1"</div></div></div>” }’
@maglietti
maglietti / SDLC.md
Last active September 2, 2015 19:09
Blog post for SDLC
View SDLC.md

Akamai OPEN APIs Software Development Life Cycle

Whether you're deeply integrating configuration into your system or automating purge requests based on site changes, there's a process to follow before the code is ready to be put into production. This post covers the ideal process for getting your API integration into a stable code setup.

Getting Started

The first thing you'll likely want to do is to learn how to get setup using the APIs. To get started, you can use the sample code in the api-kickstart. There are code examples there for Python and PHP. If you have already created API credentials in Luna, you can jump right in by reading the README files for each of the languages in the examples directory of your repository.

Follow the Getting Started tutorial to get your credentials set up and run some sample code.

@maglietti
maglietti / gistColaboration.md
Created August 21, 2015 16:33
How to collaborate on a gist
View gistColaboration.md

To colaborate on a gist:

  1. Clone your gist repo locally
  2. Add your friend’s fork as a remote e.g. if your friend is named Cindy: git remote add-url cindy https://gist.github.com/cindy/df03bdacaef75a80f310
  3. Fetch your friend’s commits: git fetch cindy/master
  4. Merge your friend’s changes into your repo: git merge cindy/master
  5. Push the changes back to GitHub: git push origin/master
View OpenCCU.md

Getting Started with the OPEN CCU API

Members of the Developer Relations team interact with a lot of customers when on the road presenting API bootcamps. (Bootcamps are free for customers who want them! Ask your account rep to set one up.) We listen carefully to the challenges, goals and use cases of the developers we encounter, and found that one of the most common workflows customers ask about is purge. We've definitely got an API for that! In fact, purge is such a hot topic that we've moved pretty quickly through several API solutions, and today there are three choices available to you on the Developer Portal.

Earlier this year, the PurgeECCU and REST CCU resources were superseded by the OPEN CCU API. There are still a few use cases that require the ECCU interface, but the CCU interface should work for just about everyone who's getting started with the purge API. In this post, I'll point you to the mos

@maglietti
maglietti / HTTPie-blog.md
Last active July 8, 2019 23:57
Exploring Akamai OPEN APIs from the command line using `HTTPie` and `jq`
View HTTPie-blog.md
@maglietti
maglietti / cloudmonitor.md
Last active August 29, 2015 14:26
Cloud Monitor Instrumentation
View cloudmonitor.md

Connecting your Cloud Monitor to Sumologic

Monitoring is frequently at the top of the priority list for Akamai's customers. The best product to get this information currently is the Cloud Monitor. Akamai has partnered with Sumologic as a system designed to analyze and display metrics and reports from Akamai's traffic. Setting this up is usually something done by Professional Services, but it is relatively easy to set it up yourself, and that's what I'm going to cover here. When you're done, you will have a working integration between cloud monitor and Sumologic, and you can manage the information in Sumologic like any other data set.

This tutorial assumes you already have Cloud Monitor set up on your Akamai account.

  1. Set up a Sumologic trial account.

If you don't already have a Sumologic account, you can set up a trial account with them for testing. The trial account offered by Sumologic is free, and doesn't requi