Convert source FLAC files in a directory to MP3 VBR (around 220-260 kbps).
#!/bin/bash -e
FLAC_SRC_DIR="/path/to/flac/files"
~/.kodi/userdata/Database/MyVideosXX.db, where XX is the version number. You will most likely want the highest number available for edit.$ sudo apt-get install libsqlite3-dev sqlite3
$ sqlite3 MyVideosXX.dbPython parser class for CloudTrail event archives, previously dumped to an S3 bucket. Class provides an iterator which will:
Parser contained in cloudtrailparser.py, with timezone.py used as a simple datetime.tzinfo concrete class implement to provide UTC timezone.
Or to put it another way...
Does this certificate I have actually work with this private key I have?
Where server.crt is your certificate and server.key is your private key:
$ certMod=$(openssl x509 -text -noout -modulus -in server.crt | grep "Modulus=") && \
keyMod=$(openssl rsa -text -noout -modulus -in server.key | grep "Modulus=") && \
[[ $certMod == $keyMod ]] && echo "Equal"| #!/usr/bin/env python | |
| from datetime import datetime | |
| import timezone | |
| def main(): | |
| my_time = datetime( | |
| year = 2016, | |
| month = 1, |
A function compare_json_data(source_data_a,source_data_b), accepting structures populated with data loaded from json.load() and comparing for equality.
$ ./compare.py
Compare JSON result is: TrueThe current PHP ssh2 extension via PECL won't compile under PHP7.
Using a more recent version via PHP's GitHub we can make this work.
$ sudo apt-get install autoconf libssh2-1-dev
$ curl -LO https://github.com/php/pecl-networking-ssh2/archive/master.zip
$ unzip master.zip
$ cd pecl-networking-ssh2-masterUsing json.dump() with Python 2, indent argument is limited to number of spaces only - no ability for tabs use.
Class JSONTabIndentFileWriter provides a file-like object which will rewrite json.dump() output indending from spaces to tabs.