manningtree

Analysing Crossoak

Category: TheShed
#blog #python #SysAdmin

A friend had a theory that photography, and therefore by extension c r o s s o a k is a window into my mental well being. So I did some digging which I'm capturing here (and which is in all probability a much bigger insight into my head...). If …

Fixing Crossoak

Category: TheShed
#blog #SysAdmin

C r o s s o a k is a photo blog that goes back to Lost Something in Cromer in May 2005. It's really a photo journal. Or a log of things illustrated by photos that's available on the web, a web log. It's been through a couple of …

Image viewing on a Raspberry Pi

Category: TheShed
#tools #sysadmin #pi

I wanted a quick and simple slideshow on a Raspberry Pi

apt-get install fbi
fbi -a -t 5 -noverbose img/*.jpg

Creates a slideshow with auto image scaling, a five second delay, without the status bar using all .jpg images in the img subfolder.

More on MPD

Category: TheShed
#SysAdmin #music #mpd #python

More jottings on MPD (previously on m a n n i n g t r e e)

Youtube-dl

Category: TheShed
#SysAdmin #tools

For those occasions where you don't have the bandwidth to watch something without buffering: youtube-dl.

On a Mac:

  1. sudo pip install youtube-dl
  2. brew install libav
  3. youtube-dl <url>

If bandwidth is a real pain and you just want the audio...

youtube-dl --extract-audio --audio-format mp3 <url>

To update:

sudo pip install …

Secure Copy

Category: TheShed
#Sysadmin #linux #mac #SysAdmin

Simple scp from remote to me:

$ scp [email protected]:file.txt /some/local/directory

Simple scp from me to remote:

$ scp file.txt [email protected]:remote/directory

Here's a cheat sheet

Secure Copy

Category: TheShed
#Sysadmin #linux #mac #SysAdmin

Simple scp from remote to me:

$ scp [email protected]:file.txt /some/local/directory

Simple scp from me to remote:

$ scp file.txt [email protected]:remote/directory

Here's a cheat sheet

cURL on Windows (thanks Git)

Category: TheShed
#Programming #tools #SysAdmin

cURL is a nifty little tool for doing things with the web (like HTTP Requests). It's expecially useful for playing with REST APIs...

A coleague was having some fun calling into the REST API of our issue tracking system. A perfect job for cURL I thought, until I remembered that …

OneDrive from Python

Category: TheShed
#programming #python #onedrive #tools #SysAdmin

A nice commandline tool (based on a Python wrapper for the OneDrive REST API) for working with OneDrive.

pywin32 0. Setup a Python Virtual Environment 1. On Windows, install pywin32 . From the venv use easy_install http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/pywin32-219.win32-py2.7.exe/download (with …

Send to Kindle

Category: TheShed
#python #Kindle #SysAdmin #tools

A nice little Python Script to send documents to Amazon Kindle via a command line.

(It works too :-)