Handy one-liners for sed
Mar. 23, 2001 - version 5.1 - compiled by Eric Pement pemente@northpark.edu
Latest version of this file is usually at:
-
This file is also available in Portuguese at:
version: '3' | |
services: | |
plex: | |
image: plexinc/pms-docker:beta | |
container_name: plex | |
restart: always | |
network_mode: host | |
volumes: | |
- $PWD/plex/config:/config |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Pdfcrop | |
======= | |
Based on pdfcrop.pl_. Uses the BoundingBox [#]_ | |
Dependencies: | |
- PyPDF2_ |
Mar. 23, 2001 - version 5.1 - compiled by Eric Pement pemente@northpark.edu
Latest version of this file is usually at:
This file is also available in Portuguese at:
#!/usr/bin/env bash | |
set -euo pipefail | |
origdir=$(pwd) | |
tmpdir=$(mktemp -d) | |
echo "tmpdir: $tmpdir" | |
read -r width height < <(pdfinfo $1 | grep "Page size:" | sed 's/[a-zA-Z: ]*\([0-9]\+\)[x ]*\([0-9]\+\).*/\1 \2/') | |
npages=$(pdfinfo $1 | grep "Pages:" | sed 's/Pages: \+\([0-9]\+\).*/\1/') | |
echo "page count: $npages" | |
echo "(width, height) = ($width, $height)" |
First of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:
sudo lsof | grep LISTEN
If you do happen to have any process with something like this *:http (LISTEN)
, you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)
ps <pid of that process>
If you don't see MAMP, you are in good hands, I have just the thing for you:
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
Certainly! Obsidian is a popular note-taking application that supports Markdown with LaTeX integration for mathematical notation. When using LaTeX in Obsidian's Markdown flavor, you typically enclose the LaTeX code within double dollar signs $$...$$
for block math and single dollar signs $...$
for inline math.
Here's an exhaustive list of the symbols for propositional logic and their formulas specifically formatted for Obsidian flavor Markdown:
Conjunction (AND)
$\land$
or $\wedge$
Disjunction (OR)
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.