KW1301 – Getting iOS and Linux to Play Nicely Together

Jul 28

There are those times in life when you want to do things because you can… and sometimes you can leverage that in getting done all that you need to do.

Links

Code Snippets

  • Download your ‘watch later’ playlist
    youtube-dl -u <yourGmailAddress> -p <yourPassword> -f mp4 --playlist-start 1 https://www.youtube.com/playlist?list=WL
  • Download ‘audio only’
    youtube-dl -u <yourGmailAddress> -p <yourPassword> -f m4a --playlist-start 1 https://www.youtube.com/playlist?list=<your playlist id>

Credits

Episode produced by Keith Murray
Image courtesy of Blakespot on Flickr

Related Posts


Zen week : Sleep onboard a starship with these great soundscapes.

Nov 06

The sound of a waterfall, an untuned TV set, or a fan in the background : All of these are examples of ‘White noise’ that help you concentrate or get to sleep. They have one thing in common : They are BO-RING .. How about spending 12 hours inside a Starfleet shuttlecraft. Or lounging around in Deckers aapartmentin the movie Bladerunner ? How about falling asleep to the sounds of Dave Bowmans shuttlepod in 2001 a space odyssey  ? Crynsknife007 has got just the thing for you. On his Youtube channel he has collected an impressive set of geeky 12 hour sound loops that really help you space out .. or focus. So have a slice of sci-fi inspired white noise and spend your day in the ambient sounds of the Battlestar Galactica engine room or fall asleep to the echoes of the death star. Plenty to choose from. Here is an example.

 

 

Link : Enjoy his entire collection here.

Tip : If you want to download these sounds for your phone or your favorite MP3 player (do people still have these  ?) take a peek at our YOUTUBE-DL show to quickly learn how 

Related Posts

kw807 : Youtube-Dl

Jul 14


We go into depth into one of the most powerful command line programs to delve into the treasure chest of cat video’s we call youtube. We explore Youtube-Dl, its capabilities and the vast combination of switches and parameters you can use to turn Youtube (and other video sites) into your personal b*tch.

Shownotes.

Command line overview 
Youtube Download 
youtube-dl <url of the video>

Youtube Download audio only 
youtube-dl —extract-audio —audio-format mp3 <url of the video>

Youtube Download search results (50)
youtube-dl ytsearch:”ted talks computers” 
–playlist-end 20 -R 50 

Youtube Download channel or topic (50)
Youtube-dl <urlfothechannel> —playlist-end 50 -R 50

Youtube Download ‘watch later que’
youtube-dl -u username -p password :ytwatchlater


Youtube Download audio only 
youtube-dl —extract-audio —audio-format mp3 <url of the video>

Youtube Download search results (50)
youtube-dl ytsearch:”ted talks computers”
–playlist-end 20 -R 50

Youtube Download channel or topic (50)
Youtube-dl <urlfothechannel> —playlist-end 50 -R 50

Youtube Download ‘watch later que’
youtube-dl -u username -p password :ytwatchlater

Subscribe : add
add “playlist-end 1 -R 50”

Make pretty : add
“ -o ”location/file/%(title)s.%ext)s”

Extract only the audio of a channel.
—extract-audio —format-mp3  “playlist-end 1 -R 50”

Related Posts


Google Hacking week : Plunder a site’s MP3’s, PDF’s and more.

Feb 26

In day two of our Google Hacking Week we are going to combine an interesting Google search query (or Google Dork) with a command line command to find AND download any file type you want.

Find the storage room in the back of the store.

Websites on the net consist of more then just webpages with information. They also links to files and folders containting interesting information like PDF’s MP3’s and more. Most of the time these files aren’t ‘visible’ when you visit a specific site but our little friends, the Google Search Bots, DO index them. All you need is the right string to find them.

  • intitle: “index of” <filetypehere> <title/genre/artist>

This search query will tell Google to go look for pages with the title “index of”. These pages usually don’t contain a lot of text, but instead contain links to folders and files.   Since you are looking for a specific type of file (like for example mp3’s, Pdf’s or something else) you also can add this to the query. Finally you might be looking for mp3’s of Hanna Montana or Tango’s (I don’t know what you like) : That can also be added to the search string. In the end it will look something like this.

  • intitle: “index of” mp3 acdc
  • intitle: “index of” pdf bookkeeping
  • intitle: “index of” epub scott sigler

So using these queries you might find a real treasure-trove of files and info to download. Some of them might even be behind a login/password page (or even a pay wall) but when the web masters don’t do their homework right .. you can find the ‘good stuff’ this way. 

Download

So download them one by one ? 

If you are just looking for one specific file you can use your browser to find and download it. If you want to download the ENTIRE collection of files on that page .. you need the power of a command line tool called WGET. 

Wget can be found on the command line of both Linux, Mac and even Windows machines. Not all the advanced ‘switches’ we give you in this command below might work on Windows, but you can give it a try. The command is

  • wget -r -l1 -H -t1 -nd -N -np -A.<.filetype> -erobots=off <url of website>

Replace <filetype> with the type of file you want to download ( .mp3, .pdf, .epub) and <url of website> with the website’s url you found using the Google search. Completed the command might look something like this.

  • wget -r -l1 -H -t1 -nd -N -np -A.<.mp3> -erobots=off http://tiobiloute59.free.fr/tiesto/

The download is RECURSIVE, so it “deep dives” into all the folders. Beware : This can get you a LOT of data. So make sure you have the bandwidth and the storage capacity before you start sucking down the internet. Good Luck ! 

Related Posts

Switch week : Moving mail from iCloud to Gmail.

Feb 20

We continue switch week on Knightwise.com where we help you to move your data from Apple’s closed ecosystem into something more ‘open’ and cross-platform-friendly. Today we look at iCloud. Apple’s free cloud service for mail, calendar and contacts. But what if you decide you want to quit that Apple ecosystem, or want to migrate your mail to a different account. We show you how.

You don’t need to quit your iCloud account.

First of all : You don’t HAVE to quit your iCloud account. As explained by guest blogger Kevin, there are plenty of applications on Android to access your iCloud contacts, mail and calendar data from a non-Apple phone our tablet. Read his blogpost here.

But what if you want to move out ? 

But if you do want to move out of your iCloud account into something like Gmail (or any other service) its not that hard. Apple sticks to some amazingly open standards like iMap for access to their email server from any client. It is exactly that what we are going to use to get your emails out of iCloud. Here is what you need.

  • Download your favorite cross-platform friendly mail client THUNDERBIRD.
  • Connect to your iCloud by adding a new mail account and selecting the IMAP mail protocol with the following settings.
      • (For the INCOMING server)
      • Server name: imap.mail.me.com
      • SSL Required: Yes
      • If you receive errors when using SSL, try using TLS instead.
      • Port: 993
      • Username: The name part of your iCloud email address (for example, emilyparker, not emilyparker@icloud.com)
      • Password: Your iCloud password
      • (For the OUTGOING/SMTP server)
      • Server name: smtp.mail.me.com
      • SSL Required: Yes
      • If you receive errors when using SSL, try using TLS instead.
      • Port: 587
      • SMTP Authentication Required: Yes
      • Username: Your full iCloud email address (for example, emilyparker@icloud.com, not emilyparker)
      • Password: Your iCloud password

This will give you the ability to download all your email messages into your Thunderbird client. You can “drag and drop” your precious emails into offline folders if you want to archive them on your local machine. But what if you want to push them back up to the cloud to Gmail ?  Easy peasy. First make sure you have a Gmail account and set that up on your Thunderbird email client.

  • Set up your Gmail account on Thunderbird.
  • This is actually quite easy in the latest versions of Thunderbird. Just add an existing email account and enter your Gmail address. Thunderbird is going to figure out the rest.

Now ‘Drag and drop’.

In Thunderbird you now have 2 email accounts set up. What you need to do now is surprisingly simple. Select one (or multiple) emails from your iCloud inbox and drag them over to your Gmail inbox. Its as easy as that. All the metadata (when the email was sent, who the sender was etc etc) is preserved and you now have those mails available in Gmail. (In your Thunderbird client AND on the web)

MultipleAccountsInThunderbird2WindowsXP

Closing up.

You can choose to keep your iCloud account and drag emails back and forth, or you can empty the “iCloud-Tank” and move out. In both cases , the open iMAP standard and Thunderbird will serve you well.

Related Posts