The JSON data is in the following format
{
"Genesis": {
"1": {
"1": "In the beginning..." ,
"2": "..."
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[cyan]%}[" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="" | |
| #Customized git status, oh-my-zsh currently does not allow render dirty status before branch | |
| git_custom_status() { | |
| local cb=$(current_branch) | |
| if [ -n "$cb" ]; then | |
| echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" |
| #!/usr/bin/python | |
| # coding: utf-8 | |
| from flask import Flask | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def entry_point(): | |
| return 'Hello World!' |
| var mongoose = require('mongoose'), | |
| Schema = mongoose.Schema | |
| var bcrypt = require('bcrypt') | |
| openssl s_client -crlf -connect imap.gmail.com:993 | |
| tag login user@gmail.com passwordhere | |
| tag list "" "*" | |
| tag select "inbox" | |
| tag fetch 1:3 body[header] | |
| tag fetch 3 body[header] | |
| tag fetch 3 body[text] | |
| tag fetch 2 all | |
| tag fetch 2 fast | |
| tag fetch 2 full |
| v=0000;eval$s=%q~d=%!^Lcf<LK8, _@7gj*LJ=c5nM)Tp1g0%Xv.,S[<>YoP | |
| 4ZojjV)O>qIH1/n[|2yE[>:ieC "%.#% :::##" 97N-A&Kj_K_><wS5rtWk@*a+Y5 | |
| yH?b[F^e7C/56j|pmRe+:)B "##% ::##########" O98(Zh)'Iof*nm.,$C5Nyt= | |
| PPu01Avw^<IiQ=5$'D-y? "##: ###############" g6`YT+qLw9k^ch|K'),tc | |
| 6ygIL8xI#LNz3v}T=4W "# #. .####:#######" lL27FZ0ij)7TQCI)P7u | |
| }RT5-iJbbG5P-DHB<. " ##### # :############" R,YvZ_rnv6ky-G+4U' | |
| $*are@b4U351Q-ug5 " #######################" 00x8RR%`Om7VDp4M5 | |
| PFixrPvl&<p[]1IJ " ############:#### %#####" EGgDt8Lm#;bc4zS^ | |
| y]0`_PstfUxOC(q " .#############:##% .## ." /,}.YOIFj(k&q_V | |
| zcaAi?]^lCVYp!; " %% .################. #. " ;s="v=%04o;ev"% |
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
| #!/bin/sh | |
| # 2021-12-09: | |
| # This script is no longer supported! | |
| # Apple broke all direct downloads without logging with an Apple ID first. | |
| # The number of hoops that a script would need to jump through to login, | |
| # store cookies, and download is prohibitive. | |
| # Now we all must manually download and mirror the files for this to work at all :'-( | |
| OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}') |
| #! /bin/bash | |
| if [ -z "$1" ]; then | |
| echo "Specify which folder contains the PDFs" | |
| exit 1 | |
| fi | |
| OUTFILE=combined_$1.pdf | |
| if command -v convert >/dev/null 2>&1; then |