Skip to content

Instantly share code, notes, and snippets.

View lukebakken's full-sized avatar

Luke Bakken lukebakken

View GitHub Profile
@lukebakken
lukebakken / marblemouse.conf
Last active November 11, 2021 15:19 — forked from superjamie/marblemouse.conf
xorg.conf for Logitech Trackman Marble Mouse
# 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 November 10, 2020 14:12 — forked from johanrhodin/pg2table.rb
Fill up pg2table in RabbitMQ
#!/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 / .gitignore
Created July 19, 2018 15:52 — forked from MarcialRosales/Readme.md
Gather consumer channel information from RabbitMQ in order to troubleshoot an issue with unexpected unacknowledged messages
*.beam
@lukebakken
lukebakken / .gitignore
Created February 14, 2018 01:09 — forked from sjlongland/test.sh
pika test case: channel close bug
venv/
@lukebakken
lukebakken / echo-client.go
Created November 19, 2017 14:36 — forked from paulsmith/echo.go
A simple echo server testing a few interesting Go language features, goroutines and channels.
package main
import (
"fmt"
"net"
"os"
"time"
)
func main() {
@lukebakken
lukebakken / rabbit_pash_hash.py
Last active May 2, 2017 00:51 — forked from komuw/rabbit_pash_hash.py
rabbitMQ password hashing algo
# rabbitMQ password hashing algo as laid out in: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2011-May/012765.html
from __future__ import print_function
import base64
import os
import hashlib
import struct
# This is the password we wish to encode
password = 'simon'
#!/usr/bin/env bash
set -o errexit
set -o nounset
# This script needs mp3splt, cdrtools, vorbis-tools
CREATE_OGG="false";
CREATE_FLAC="true";
CREATE_MKA="false";
@lukebakken
lukebakken / monit.conf
Created October 18, 2012 17:55 — forked from shapeshed/monit.conf
Upstart script for monit on Ubuntu 10.04
# This is an event.d (upstart) script to keep monit running.
# To install disable the old way of doing things:
#
# /etc/init.d/monit stop && update-rc.d -f monit remove
#
# then put this script here:
#
# /etc/init/monit.conf
#
# and reload upstart configuration: