Skip to content

Instantly share code, notes, and snippets.

@alexsleat
alexsleat / add_artists.sh
Last active September 22, 2025 15:17 — forked from jackskhakis/add_artists.sh
Script to add list of artists (in a folder) to lidarr, this method bypasses the difficulties that are currently present in lidarr with relation to searching and adding new artists. This version searches MusicBrainz for the ID to use, rather than relying only on lidarr search - it then uses the lidarr:music_brainz_id method to add them, if they a…
#!/bin/bash
# Folder where existing artist folders are located (source)
source_dir="/media/old"
# The Lidarr root folder path to add new artists under
lidarr_root="/media/new"
## Note: You can use this script with the source_dir and lidarr_root dir are the same - I did and nothing broke.
Package Version
------------------------------------ ------------
action-msgs 1.2.1
action-tutorials-interfaces 0.20.3
action-tutorials-py 0.20.3
actionlib-msgs 4.2.3
addict 2.4.0
aliyun-python-sdk-core 2.15.0
aliyun-python-sdk-kms 2.16.2
ament-cmake-test 1.3.7
cd /opt/Softbank\ Robotics/Choregraphe\ Suite\ 2.5/lib/
sudo mv libz.so.1 libz.so.1.old
sudo ln -s /lib/x86_64-linux-gnu/libz.so.1
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
echo "Bash version ${BASH_VERSION}..."
mkdir temp
for i in {0..10..1}
do
cp test$i.file temp/$i.file
done
@alexsleat
alexsleat / camtest.cpp
Created January 25, 2012 19:18
camtest.cpp
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
namespace enc = sensor_msgs::image_encodings;
static const char WINDOW[] = "Image window";
@alexsleat
alexsleat / get-repo.sh
Created January 19, 2012 20:28
get-repo.sh
#!/bin/bash
cd /home/$(whoami)
git clone [email protected]:alexsleat/projectChimaera.git
echo "export ROS_PACKAGE_PATH=~/projectChimaera:\$ROS_PACKAGE_PATH" >> ~/.bashrc
. /home/$(whoami)/.bashrc
@alexsleat
alexsleat / fixwatermark.sh
Created January 12, 2012 16:28
AMD Unsupported hardware watermark
#!/bin/sh
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so
for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
done
#include <stdio.h>
#include <stdlib.h>
#include "ros/ros.h"
#include "std_msgs/MultiArrayLayout.h"
#include "std_msgs/MultiArrayDimension.h"
#include "std_msgs/Int32MultiArray.h"
#!/usr/bin/python
import sys #for cmd line argv
#take command line args as the input string
input_string = sys.argv
#remove the program name from the argv list
input_string.pop(0)
#convert to google friendly url (with + replacing spaces)