Automate book and note scanning to make PDFs.
See autoScan.sh for a shell script.
imagescan --no-interface --help
imagescan
a -b | search for pages containing 'a' do not include pages with the term 'b' | |
---|---|---|
a ~b | search for 'a' and 'b' as well as any words synonymous to 'b' or any words like 'b' but with alternative endings | |
a OR b | search for pages that contain 'a', 'b', or both terms | |
a|b | search for pages that contain 'a', 'b', or both terms | |
a * b c | search for pages that contains the terms 'a' and 'b c', '*' represents any word or words and allows for any term to be matched here |
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func handler(writer http.ResponseWriter, request *http.Request) { | |
fmt.Fprintf(writer, "Hello World, my name is Emiliska!", request.URL.Path[1:]) | |
} |
[string]$twoDigits = "00" | |
[string]$physicalAddr = "" | |
$bool_int = 0 | |
[int]$count1 = 0 | |
[int]$count2 = 0 | |
# append to physicalAddress until proper size | |
DO{ | |
DO{# randomize $twoDigits | |
# generate random boolean |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# general provisioning | |
config.vm.box = "ubuntu/bionic64" | |
# virtualbox provisioning using VBox Manage | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = false | |
vb.cpus = 2 | |
vb.memory = 2048 |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.require_version ">= 1.3.5" | |
Vagrant.configure("2") do |config| | |
# general provisioning | |
config.vm.boot_timeout = 600 | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.box_check_update = true | |
config.vm.network = "public_network" |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
Automate book and note scanning to make PDFs.
See autoScan.sh for a shell script.
imagescan --no-interface --help
imagescan
#!/bin/bash | |
i=0 | |
name=1 | |
# name new file | |
until [ $name == "0" ]; do | |
# scan new image with incremented name | |
imagescan --no-interface --image-format=PDF --scan-area=Maximum > $i.pdf | |
i=$((i+1)) | |
# continue until filename==0 | |
# wait for enter any character |
#!/bin/bash | |
pdftk $1.pdf cat 1south output a.pdf; mv a.pdf $1.pdf |