manningtree

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 …

A comparison of sorting algorithms

Category: Library
#Sorting #algorithms #Programming

From an internal DL. A comparison of sorting algorithms on different types of data

Sorting algorithms

Or, through the medium of Hungarian folk dancing

.Net book recommendations

Category: Library
#.net #programming #books

Top 10 books everyone .Net developer should onw

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

Test Coverage

Category: Library
#Engineering #Test #Code Coverage

What's the right amount of test coverage? Test Coverage and Post-Verification Defects: A Multiple Case Study provides some insights. Interestingly, they find:

that the test effort increases exponentially with test coverage, but that the reduction in field defects increases linearly with test coverage.

In other words, it takes more and …

Seth's tips for better online surveys

Category: Quotes
#Seth #Blog

I quote this a lot so here's a link: Tips for Better Online Surveys

  1. Every question you ask is expensive.
  2. Every question you ask changes the way your users think.
  3. Make it easy for the user to bail.
  4. Make the questions entertaining and not so serious, at least some of …

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 :-)

Virtual Python

Category: TheShed
#python #Programming

A quick starter on Python Virtual Environment

Create:

mkdir workingdir
cd workingdir
virtualenv venv

On Unix/Mac OS X use:

source venv/bin/activate

On Windows use:

venv\Scripts\activate.bat

Finish:

deactivate

To move the environment somewhere else:

  1. In existing (active) environment; grab a list of dependencies with pip …