Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke Bakken lukebakken

View GitHub Profile
View code.py
"""Basic message consumer example"""
import functools
import logging
import pika
LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) '
'-35s %(lineno) -5d: %(message)s')
LOGGER = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT)
@lukebakken
lukebakken / RabbitMQ-Clients.md
Last active Jan 5, 2022
Cllient library overview 2022-01
View RabbitMQ-Clients.md

AMQP

Feature list

  • Low vs high-level
  • TLS support
  • Stats / Metrics / Monitoring (S)
  • Auto-reconnect (R)
  • Topology recovery (TR)
@lukebakken
lukebakken / marblemouse.conf
Last active Nov 11, 2021 — forked from superjamie/marblemouse.conf
xorg.conf for Logitech Trackman Marble Mouse
View marblemouse.conf
# https://help.ubuntu.com/community/Logitech_Marblemouse_USB
# https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse
#
# Xorg Functions
# 1 = Left Click
# 2 = Middle Click
# 3 = Right Click
# 4 = Mouse Cursor Down
# 5 = Mouse Cursor Up
# 6 = Mouse Cursor Left
@lukebakken
lukebakken / pg2table.rb
Last active Nov 10, 2020 — forked from johanrhodin/pg2table.rb
Fill up pg2table in RabbitMQ
View pg2table.rb
#!/usr/bin/env ruby
require 'bunny'
require 'dotenv/load'
connection = Bunny.new ENV['CLOUDAMQP_URL3']
connection.start
channel = connection.create_channel # Declare a channel
for i in 1..1
puts "Creating queue #{i}"
@lukebakken
lukebakken / AdamsGlacierCamp.gpx
Last active Jul 8, 2020
Klickitat North Cleaver
View AdamsGlacierCamp.gpx
<?xml version="1.0"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" creator="CALTOPO" version="1.1"><wpt lat="46.23509721088818" lon="-121.51059653641363"><name>Adams Adams Glacier camp 7500</name></wpt></gpx>
View output.txt
$ python ./rabbitmqadmin
ERROR: Action not specified
rabbitmqadmin --help for help
$ python ./rabbitmqadmin --help
Usage
=====
rabbitmqadmin [options] subcommand
@lukebakken
lukebakken / .gitignore
Created Jul 19, 2018 — forked from MarcialRosales/Readme.md
Gather consumer channel information from RabbitMQ in order to troubleshoot an issue with unexpected unacknowledged messages
@lukebakken
lukebakken / .gitignore
Last active Jul 17, 2018
PerfTest connection recovery
View .gitignore
*env*/
*.pcap*
logs/
rabbitmq-perf-test*/
toxiproxy-*-amd64