Skip to content

Instantly share code, notes, and snippets.

@baztian
baztian / sqs-copy.sh
Created May 12, 2021 14:08
Create a shell template to copy from one AWS SQS queue to another
#!/usr/bin/env bash
choose_queue()
{
title=$1
queues=$(aws sqs list-queues --query 'QueueUrls' --output text|tr '\t' '\n')
i=1
items=""
items=$(echo -e "$queues"|sed -e 's#.*/##g' | while read p; do echo "$i $p" && i=$((i+1));done)
TMPFILE=$(mktemp)
# lircrc file for squeezelite
begin
button = KEY_PLAYPAUSE
repeat = 0
prog = squeezelite
config = pause
end
@baztian
baztian / accels.scm
Last active July 26, 2023 15:45
xfce-terminal settings
; xfce4-terminal GtkAccelMap rc-file -*- scheme -*-
; this file is an automated accelerator map dump
;
(gtk_accel_path "<Actions>/terminal-window/goto-tab-1" "<Alt>1")
(gtk_accel_path "<Actions>/terminal-window/goto-tab-3" "<Alt>3")
; (gtk_accel_path "<Actions>/terminal-window/file-menu" "")
; (gtk_accel_path "<Actions>/terminal-window/close-other-tabs" "")
; (gtk_accel_path "<Actions>/terminal-window/search" "<Primary><Shift>f")
; (gtk_accel_path "<Actions>/terminal-window/next-tab" "<Primary>Page_Down")
; (gtk_accel_path "<Actions>/terminal-window/copy-html" "")
@baztian
baztian / README.md
Last active August 18, 2018 11:59
Install Open Liberty to a directory with a more meaningful name
#!/usr/bin/env python
"""Formats a CSV string from windows clipboard to JIRA Table markup
(https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=tables)
on windows clipboard.
"""
import csv
def convert(csvfile, delimiter=',', quotechar='"'):
r"""
@baztian
baztian / emacs-run.bat
Last active May 13, 2020 00:44 — forked from Shade30/emacs-run.bat
Cygwin emacs-w32 wrapper. Allows to run emacs with arguments directly from windows.
@echo off
Setlocal EnableDelayedExpansion
set CYGDIR=C:\cygwin64
set CYGBINDIR=%CYGDIR%\bin
set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
cd /d %CYGDIR%\home\%USERNAME%
if [%1]==[] goto BLANK