Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Buckland cbuck

View GitHub Profile
@cbuck
cbuck / DownloadStationAPI.py
Created Apr 29, 2017 — forked from harperreed/DownloadStationAPI.py
example script to sync/download/etc put.io downloads to your synology download station
View DownloadStationAPI.py
import time
import requests
import json
class DownloadStationAPI():
def __init__(self, host=None, username=None, password=None):
self.name = 'DownloadStation'
View NoxUI profile for ElvUI
A0kxKAAlUUX6RFTRKCSlU0iKV6KqZhG5paraJaoow0TqGIWWQfIMRU0TlWtEZRuSfEORcRR0jqhqnajCQVRpoSo9RMJEJNVFSm0U5SOqGIlEJyG1kqiCmUS5icJOFf1ENFTEUgQ9JU0FropkK1GlvhJVclZUEdaKKqK3okp3RVX2Sn8pMBiiw0qLUXpMyWSELgubKfqsUqNROa2wmqhCr1UVsxXdVmE34TdouKocF1VUy6GeIzWd6jqq2q6S7wiMV4Xzqmi9qtJ+CNdYUCWuL7uYLqgu9mGu5QXVEMvOKFuvxuMLPEJYUVDlYtyc9zTKl1/lBjHQggIe7HrfKjeIgRbyDm5YM/pWCQbRuZ5y9SoHBcQF1RDLzihbr1ctPsYhHPAd4rGzJ6pKzyiosnP8/i4mFlQx/4B8OuAVuG+9muf8oJ0uqF6DHuyYw58F1RDLzuhbr1ePIcaxX0F1CNpXWFFQDbHsjL716rHfsKCgC6rDguKAfDrgFbhvdVhQ0OM3eqLk6vUqXww38R5BF1T5YnhB9Zv7DFxQteDBrg8LFlQ9Hs7HUeWV2YSgSo/f6Ilirj6hadLhPVHpehUH7UEsqD6gadLhPY3MclWPh/NxVFXeKXT1CU2TDu/5R6Xr9eq32J8FVWiac4goqIZYdkbfKj1+oyeKql6v16t4B/FY/BOYLqhegx7smMOfVfSZ8BKCPFFl1/ohYvj1rdLfWkPcPY31KnF9PR5OF1RnmG5x6wVVAVmIiYHpvvUqHjfnFrdeUBWQhZgYmO5br34rYhoLqiGWnUHsWyUYROd6MsvPVR2voL/FIbxvvV7FO4jHir0DF1QxnEH3rVf5g+W7Q0EXVEMsO6NvvV5l96YLqhbkC8+gcB2/0dOIqlqQLzyDwqsU3B7f3iIQSGofFCA/NdXhccjiiplB4Tp+o6cRVR0ehyyumBkUXqXg9vj2FoFAUvugAPmpqVe5QQzAd4jHzr5V4tIcCxcT6YLqh6EZND2goAuqIZadkWBoBk0PKOiy9arD
@cbuck
cbuck / robocop.bat
Created Nov 9, 2015
robocop with log
View robocop.bat
robocopy E:\SOURCE /e C:\DESTINATION /MIR /NP /LOG:transfert.txt
@cbuck
cbuck / sortme2.bat
Last active Sep 30, 2015
SORT AUDIO INTO CATS VIA CSV
View sortme2.bat
::Will sort files into category structure from a CSV file structured as so:
::000cb3c6.wav,ROS,REAL LATE PART 3 11/29/14,,HOT/PRosenberg,11/30/14,04/16/42,0,0,2119288
::FILENAME,CAT,TITLE,ARTIST,TRIVIA,STARTDATE,ENDDATE,CUEIN,INTRO,EOM
::SET THE DESTINATION PATH AND THE PATH TO THE CSV FILE
SET BASEDIR=D:\
SET SORTCSV=%BASEDIR%\rename.csv
SET SRCEDIR=CONV
SET DESTDIR=RENM
::
::008110105.WAV,DA,0000,BUT
@cbuck
cbuck / sortme.bat
Created Sep 30, 2015
SORT AUDIO INTO CATS VIA CSV
View sortme.bat
@echo off
setlocal enabledelayedexpansion
SET PATHA=F:\SOURCE
SET PATHB=F:\DESTINATION
SET CALLS=XXXX
SET /A Counter1=1
SET /A Counter2=9999
ECHO STARTING STATION %CALLS%
TIMEOUT 5
@cbuck
cbuck / nexgen_multi.bat
Created Sep 30, 2015
FIND MULTI CUTS IN NEXGEN AUDIO DIRECTORY... Fun with REGEX
View nexgen_multi.bat
CD F:\ENTWIC\RENM\COM
Dir /B>f:\ENTWIC\Dir.txt
FindStr /R [0-9]*[2-9].[Ww][Aa][Vv] f:\ENTWIC\Dir.txt>f:\ENTWIC\multicuts.txt
@cbuck
cbuck / success.bat
Created Sep 30, 2015
Parse the converter logs for successfull conversions and then save to a new text file for processing
View success.bat
type converter.log | findstr successful>success.csv
@cbuck
cbuck / buddies.applescript
Last active Nov 29, 2016
Get buddies list from MESSAGES app
View buddies.applescript
set newline to ASCII character 10
set availableFormat to "\\033[0;37m"
set awayFormat to "\\033[0;30m"
set idleFormat to "\\033[0;30m"
set offlineFormat to "\\033[0;30m"
set unknownFormat to "\\033[0;30m"
set resetFormat to "\\033[0;30m"
set ownName to "****YOURNAME****"
@cbuck
cbuck / rdio_artwork.applescript
Last active Oct 7, 2015
get current album art from playing track from Rdio app.
View rdio_artwork.applescript
set RdioArtworkFolder to ((path to home folder) as text) & "Pictures:Rdio:" as alias
set ArtworkFromRdio to ((path to home folder) as text) & "Pictures:Rdio:FromRdio:albumArt.tiff" as alias
set RdioArtwork to ((path to home folder) as text) & "Pictures:Rdio Artwork:FromRdio:albumArt.tiff"
set RdioBackground to ((path to home folder) as text) & "Pictures:Rdio Artwork:FromRdio:black_background.png"
set DefaultArtwork to ((path to home folder) as text) & "Pictures:RdioArtwork:Default:albumArt.tiff"
set DefaultBackground to ((path to home folder) as text) & "Pictures:Rdio:Default:transparent_background.png"
set displayArtwork to ((path to home folder) as text) & "Pictures:Rdio:albumArt.tiff"
set displayBackground to ((path to home folder) as text) & "Pictures:Rdio:background.png"
set FromRdioFolder to ((path to home folder) as text) & "Pictures:Rdio:FromRdio:"
set ArtworkFromRdio to FromRdioFolder & "albumArt.tiff" as alias
@cbuck
cbuck / rdio_artist.applescript
Last active Oct 7, 2015
Get current artist from Rdio app
View rdio_artist.applescript
on ApplicationIsRunning(appName)
tell application "System Events" to set appNameIsRunning to (name of processes) contains "Rdio"
return appNameIsRunning
end ApplicationIsRunning
on np()
if ApplicationIsRunning("Rdio") then
tell application "Rdio"
set artist_name to get artist of current track
end tell