Showing posts from January, 2018

downloading folders from google drive.

I wanted to download some course material on RL shared by the author via Google drive using the command line.  I got a bunch of stuff using wget a folder in google drive was a challenge. I looked it up in SO which gave me a hint but no solution. I installed gdown using pip and then used: gdown --folder --continue if there are more than 50 files you need to use --remaining-ok and only get the first 50. In such a case its best to download using the folder using the UI and decompress locally. Decompressing from the command line created errors related to unicode but using the mac UI I decompressed without a glitch.

Streaming events to BigQuery

Here are my notes from "Streaming events with Kafka to BigQuery and Logging" Meeting of Big Things Meetup which took place at Poalim Tech Offices. The work space is quite amazing and there were many people working as late as 10 PM. Poalim Tech has is a great host for medium sized meetups. On the left, the obligatory pizza overdose BigQuery - a serverless analytics warehouse is the destination for the data. Google BigQuery in brief BigQuery is Google's Analytics serverless database  solution based on colosul and providing as yet unmatched scaling capabilities. Usage cost are typically 5 USD per TB processed. Pros are:  serverless data warehouse solution. a powerful command line interface. an SQL based interface with noSql performance. Good code examples. Cons are:  that queries can eat up many thousands of USD of compute time. clunky web interface. Apache Kafka in brief Kafka is used to build  streaming data pipelines Apac

How to search your youtube history from the command line in ?

So I eventually found that the personal Youtube search url is at: A nice ui no doubt but I need to get at from the command line... To avoid breaking the URI we must ensure the query text is url encoded so: urlencode() { # urlencode <string> local length="${#1}" for (( i = 0; i < length; i++ )); do local c="${1:i:1}" case $c in [a-zA-Z0-9.~_-]) printf "$c" ;; *) printf '%%%02X' "'$c" esac done } with that: #youtube history command yth(){ urlencode | google-chrome "'${*//[$'\t\r\n ']}'&restrict=ytw" } p.s. all these go in a dotfile say at ~/Dotfiles/.functions and then sourced via: $source ~/Dotfiles/.functions so to look up the legendary session " Willy Wonka of Containers - Jessie

Popular posts from this blog

Moodle <=< Mediawiki SUL integration - first thoughts

downloading folders from google drive.

Insight into progressive web apps