Skip to content

Instantly share code, notes, and snippets.

View meilinger's full-sized avatar

Joe Meilinger meilinger

View GitHub Profile
@meilinger
meilinger / logstash-filebeat-5-minutes.md
Last active June 26, 2023 12:03
Logstash and Filebeat in 5 minutes

Logstash and Filebeat in 5 minutes

What/Why?

  • Filebeat is a log shipper, capture files and send to Logstash for processing and eventual indexing in Elasticsearch
  • Logstash is a heavy swiss army knife when it comes to log capture/processing
  • Centralized logging, necessarily for deployments with > 1 server
  • Super-easy to get setup, a little trickier to configure
  • Captured data is easy to visualize with Kibana
  • Wny not just Logstash (ELK is so hot right now)?
@meilinger
meilinger / open.py
Created February 24, 2017 21:09
Python `open` files relative to executing script
# In order open a file relative to the executing script path (vs relative to the working directory of the python interpreter)
# use:
import os
path = 'a/relative/file/path/to/this/script/file.txt'
with open(os.path.join(os.path.dirname(__file__), path), 'r') as input_file:
content = input_file.read()
@meilinger
meilinger / tmux101.md
Last active February 15, 2024 10:01
tmux 101

tmux 101 - the terminal multiplexer

Why tmux?

  • Why use a terminal multiplexer?
    • Keeps your hands on the keyboard
    • Keep multiple terminals in eyeshot
    • Detach/re-attach remote session (eg. for long-running processes)
  • Like screen, but better

Keybase proof

I hereby claim:

  • I am meilinger on github.
  • I am joem (https://keybase.io/joem) on keybase.
  • I have a public key whose fingerprint is 57D2 1585 3AA7 FE1D 53B1 87FB 8358 BC41 7B37 70BC

To claim this, I am signing this object:

@meilinger
meilinger / reverse_tunneling.md
Last active December 2, 2016 19:31
Live dev site reviews via SSH reverse tunneling

Hosting live dev site reviews using SSH reverse tunnels

Why

  • Allows for end-users to be able to interact with your dev site directly, using their own browser and their own tools from their own computer
  • Easier for manual cross-browser testing (eg. use IE on Windows VM to test your dev site w/o having to deploy the site to a server)

How

These instructions assume the public server is Ubuntu-based and the dev machine has an SSH client

### Keybase proof
I hereby claim:
* I am meilinger on github.
* I am joem (https://keybase.io/joem) on keybase.
* I have a public key whose fingerprint is AC82 61F7 58C1 98B7 CC9C 592A 4E24 DA5B B86E 593A
To claim this, I am signing this object: