Bulk Download of Recordings and Gallery items
Write a simple script
- Login to mi cloud https://i.mi.com
- Navigate to https://us.i.mi.com/#record or https://us.i.mi.com/v1#gallery
- In web browser (Chrome) press F12 to open Chrome developer tool
Bulk Download of Recordings and Gallery items
Write a simple script
You have a repo and quite some developers have cloned the repo and working on it. Now you want to add a file to gitignore which is already checked-in or tracked by Git.(The file is already commited into the repo)
Below are the steps on how to ignore this file (lets say the filename is config.py):
Add it to .gitignore:
$ echo "config.py" >> .gitignore
| #!/usr/bin/env python | |
| import os | |
| import xml.parsers.expat | |
| from xml.sax.saxutils import escape | |
| from optparse import OptionParser | |
| from math import log10 | |
| # How much data we process at a time |
| #!/usr/bin/env python | |
| #based off this gist https://gist.github.com/benallard/8042835 | |
| #modified it a little so it worked for my needs. (mainly encoding issues and bigger file chunks) | |
| import os | |
| import xml.parsers.expat | |
| from xml.sax.saxutils import escape | |
| from optparse import OptionParser | |
| from math import log10 |
| import os | |
| import sys | |
| from xml.sax import parse | |
| from xml.sax.saxutils import XMLGenerator | |
| class CycleFile(object): | |
| def __init__(self, filename): | |
| self.basename, self.ext = os.path.splitext(filename) | |
| self.index = 0 |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>BoxPlot</title> | |
| <script src="https://d3js.org/d3.v4.js"></script> | |
| </head> | |
| <body> | |
| <h3>Basic BoxPlot With D3.js</h3> | |
| <div id="my_dataviz"></div> |
| <?php | |
| $unzip = new ZipArchive; | |
| $out = $unzip->open('file-name.zip'); | |
| if ($out === TRUE) { | |
| $unzip->extractTo(getcwd()); | |
| $unzip->close(); | |
| echo 'File unzipped'; | |
| } else { | |
| echo 'Something went wrong?'; |