Kalanand's September 2015 Log

   August 2015   
September 2015
SuMoTuWeThFrSa
  12345
6789101112
13141516171819
20212223242526
27282930   
   October 2015   

September 8th

To run a script multiple times I can use bash command line utility :), e.g.,

   for i in `seq 1 10`; do python my_script.py; done

September 17th

Curl HTTP Cheat sheet

See full list of options here, for example.

Verbose
 -v
 --trace-ascii <file>
      
hide progress
 -s

extra info
 -w "format"

Write output
 -O
 -o <file>
	
Timeout
 -m <seconds>

POST
 -d "string"
 -d @file

multipart formpost
 -F name=value
 -F name=@file

PUT
 -T <file>
      
HEAD
 -I

Custom method
 -X "METHOD"

Basic auth
 -u user:password

read cookiejar
 -b <file>
	
write cookiejar
 -c <file>
	  
send cookies
 -b "c=1; d=2"

user-agent
 -A "string"

Use proxy
 -x <host:port>
	    
Headers, add/remove
 -H "name: value"
 -H "name:"

follow redirects
 -L

gzipped response
 --compressed

Insecure HTTPS
 -k

September 23rd

Google's SSL certificate contains all of the following names:
    google.com
    android.com
    appengine.google.com
    cloud.google.com
    drive.google.com
    calendar.google.com
    google-analytics.com
    google.ca
    google.cl
    google.co.in
    google.co.jp
    google.co.uk
    google.com.ar
    google.com.au
    google.com.br
    google.com.co
    google.com.mx
    google.com.tr
    google.com.vn
    google.de
    google.es
    google.fr
    google.hu
    google.it
    google.nl
    google.pl
    google.pt
    googleapis.cn
    googlecommerce.com
    googlevideo.com
    gstatic.com
    gvt1.com
    urchin.com
    url.google.com
    youtube-nocookie.com
    youtube.com
    youtubeeducation.com
    ytimg.com
    g.co
    goo.gl
    youtu.be

Google Drive firewall and proxy settings: https://support.google.com/drive/answer/2589954?hl=en

For the following hosts, [N] means any single decimal digit and * means any string not containing a period.

    www.google.com:443/HTTPS
    accounts.google.com:443/HTTPS
    googledrive.com:443/HTTPS
    drive.google.com:443/HTTPS
    *.drive.google.com:443/HTTPS
    docs.google.com:443/HTTPS
    *.docs.google.com:443/HTTPS
    *.c.docs.google.com:443/HTTPS
    sheets.google.com:443/HTTPS
    slides.google.com:443/HTTPS
    talk.google.com:5222/XMPP (needed only for Google Drive for Mac/PC)
    gg.google.com:443/HTTPS
    script.google.com:443/HTTPS
    ssl.google-analytics.com:443/HTTPS
    video.google.com:443/HTTPS
    s.ytimg.com:443/HTTPS
    apis.google.com:443/HTTPS
    *.googleapis.com:443/HTTPS
    *.googleusercontent.com:443/HTTPS
    *.gstatic.com:443/HTTPS
    lh[N].google.com:443/HTTPS
    [N].client-channel.google.com:443/HTTPS
    clients[N].google.com:443/HTTPS

Go to August's log


Last modified: Wed Sep 23 16:42:28 PDT 2015