Skip to content

Instantly share code, notes, and snippets.

View phrawzty's full-sized avatar
🕺
probably karaoke

Daniel Maher phrawzty

🕺
probably karaoke
View GitHub Profile
@phrawzty
phrawzty / 2serv.py
Last active May 2, 2024 12:27
simple python http server to dump request headers
#!/usr/bin/env python2
import SimpleHTTPServer
import SocketServer
import logging
PORT = 8000
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
@phrawzty
phrawzty / S3_as_Yum_repo.md
Last active November 10, 2023 19:20
Use S3 as a Yum repo

S3 as Yum repo

There are two parts to this:

  • Managing access to non-public S3 resources.
  • Building RPM repositories in an automated, deterministic way that Yum can use.

Environment

In general, a CentOS 7 x86_64 box in AWS EC2; in specific, this Packer profile.

@phrawzty
phrawzty / README.md
Last active January 30, 2022 08:59
Make word lists for Wordlem

Popular words

Did an Internet search for list of common english words. Here we go.

eslforums top 700

Link: https://eslforums.com/list-of-words/

List of 700+ Most Common English Words Everyone Should Learn!

@phrawzty
phrawzty / smaller_pdf.sh
Created February 10, 2021 18:10
Make a big pdf smaller from the commandline using ghostscript
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 <filename.pdf> [filename2.pdf …]"
exit `false`
fi
gs=`which gs`
if [ $? -ne 0 ]; then
echo "gs not found."
@phrawzty
phrawzty / notes.md
Last active April 15, 2020 03:22
Developer Relations meetup at Algolia

Opener

  • General hello and elevator pitch for Algolia.
  • Introducing the speakers.
  • Highlight "job of the day" - in this case, an Education Engineer (SF/Paris)

Valériane Venance, Deputy CTO at Le 24/24, Junior DevRel

  • Every company that has a product that is used by a developer can benefit from DevRel.
  • DevRel communicates directly to developers, raising awareness both before and during the product lifecycle.
@phrawzty
phrawzty / answer.md
Last active January 22, 2019 09:37
Hi Patrick!

From the Agent docs (Ubuntu for example):

# Set the following parameters in /etc/datadog-agent/datadog.yaml:
logs_config:
  logs_dd_url: "agent-intake.logs.datadoghq.eu:443"

For reference, https://app.datadoghq.eu/account/settings#agent should help guide you through some configuration questions.

@phrawzty
phrawzty / notes.md
Last active October 4, 2018 14:02
Jahia days, day 1

Tech Barge

Live coding React-GraphQL app - Serge Huber, CTO of Jahia

  • Jahia is an enormous CMS, like Wordpress but massive.
  • Content, like a blog post, is accessible via an API.
  • If using GraphQL, for example, one can build out JSON files that describe the content object.
    • "Propoerties of the node."
  • Authorisation controls via cfg files.
  • Config files appear to be ini-style, key/value pairs, one per line.
@phrawzty
phrawzty / notes.md
Last active September 26, 2018 17:33
Skillsmatter CloudNative 2018 (day 1)

Intro

  • Fire exits
  • CoC - read it, learn it, embrace it

"Private Cloud and the Sunk Cost Fallacy" - Sam Newman

  • Started with AWS in 2009
  • S3 is 12 years old (wow)
  • Amazon: "We sell electricity"; people were electrocuting themselves then blaming the provider.
@phrawzty
phrawzty / notes.md
Last active September 13, 2018 09:59
Devopsdays Berlin 2018

Day 2

Main track

Dirk Lehmann - Trust as Foundation of DevOps

  • TW: @doergn
  • Works at SAP
  • Background in ops.
  • Co-org Devopsdays Zurich 2019 (May)
@phrawzty
phrawzty / blah.md
Last active August 14, 2018 10:24
How to enclose a string in backticks, in fixed-width

`something`