Skip to content

Commit 7a10a9c

Browse files
committed
Adjustments
1 parent 6c3ef15 commit 7a10a9c

7 files changed

+477
-292
lines changed

docs/_drafts/2022-03-27-clear-iphone.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ When my iPhone or iCloud is full, this is what I do.
1010
1. Plug an SSD and the iPhone into the Mac.
1111
2. Open Photos on Mac. When it asks, trust the Mac.
1212
3. When it asks, import any newer files to Photos.
13-
4. In Library, select all and `File > Export > Export all unmodified
13+
4. Go to "Library", select all and `File > Export > Export all unmodified
1414
originals`. Set the destination to a new directory on the SSD under `iPhone
15-
11 Pro Max > (Today's date)`.
15+
11 Pro Max > (Today's date)`. Then click "Export Originals".
1616
5. Also on the Mac, delete all files from Photos. It will delete them from the
1717
phone as well.
1818
6. Delete from Recently Deleted as well (in Photos)

docs/_drafts/2022-11-13-take-photos-from-camera.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title:
44
permalink: /take-photos-from-camera
55
---
66

7-
1. Remove SD card from camera and plug into computer, via a card reader.
8-
2. Plug the SSD into computer. (remove webcam for extra usb-c slot)
9-
3. `mkdir /Volumes/Media\ 2021/X-T4/2022-11-13`
10-
4. `mv /Volumes/Untitled/DCIM/142_FUJI/* /Volumes/Media\ 2021/X-T4/2022-11-13/`
7+
1. Plug card reader+SD card, and SSD, into computer.
8+
2. `mkdir /Volumes/Media\ 2021/X-T4/2022-11-13`
9+
3. `mv /Volumes/Untitled/DCIM/142_FUJI/* $_`
10+
4. `open $_/*.JPG`

docs/_posts/2020-09-30-setup-elm-project.markdown

Lines changed: 68 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ permalink: /elm/setup
77
This is how I setup a new Elm project for development.
88
</div>
99

10-
[Create a new Github
11-
repository](https://github.com/organizations/explodinglabs/repositories/new),
12-
using the template:
13-
```
14-
explodinglabs/elm-template
15-
```
16-
1710
For a Github Pages app, go to Settings > Pages, change Source to Branch: `main`
1811
and directory to `/docs`.
1912

@@ -26,10 +19,76 @@ cd myapp
2619
Replace "myapp" with the name of your app, in the `README.md`.
2720
Commit and push that change.
2821

29-
Install npm packages.
22+
Update global npm:
23+
```sh
24+
npm update -g npm
25+
```
26+
27+
Install dev packages:
28+
```sh
29+
npm install --save-dev elm-format elm-review sass
30+
```
31+
32+
```sh
33+
elm-review --template jfmengels/elm-review-unused/example
34+
```
35+
36+
```sh
37+
elm init
38+
```
39+
40+
Create a src/Main.elm.
41+
42+
```sh
43+
elm make src/Main.elm --optimize --output static/elm.js
44+
```
45+
46+
```sh
47+
./node_modules/.bin/uglifyjs static/elm.js --compress 'pure_funcs=[F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9],pure_getters,keep_fargs=false,unsafe_comps,unsafe' | ./node_modules/.bin/uglifyjs --mangle --output static/elm.js
48+
```
49+
50+
Add to package.json:
51+
```sh
52+
{
53+
...
54+
"husky": {
55+
"hooks": {
56+
"pre-commit": "lint-staged"
57+
}
58+
},
59+
"lint-staged": {
60+
"**/*.elm": [
61+
"elm-format --validate",
62+
"elm-review"
63+
]
64+
}
65+
}
66+
```
67+
68+
Copy index.html from another project into static/.
69+
Bring up the development container.
70+
Visit http://localhost:80.
71+
72+
73+
74+
To hot-reload, put this in the static/index.html
75+
```html
76+
<script type="text/javascript" src="https://livejs.com/live.js"></script>
77+
```
78+
79+
80+
# Old instructions
81+
[Create a new Github
82+
repository](https://github.com/organizations/explodinglabs/repositories/new),
83+
using the template:
84+
85+
```
86+
explodinglabs/elm-template
87+
```
88+
3089
```sh
31-
npm init
3290
npm install --save-dev husky lint-staged elm-format elm-review elm-test sass
91+
npx husky init
3392
npx husky add .husky/pre-commit "npx elm-review"
3493
npx husky install .husky/pre-commit
3594
```

docs/_posts/2021-08-26-install-jekyll-on-a-mac.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ layout: post
33
title: How to install Jekyll on a Mac?
44
permalink: /install-jekyll-on-mac
55
---
6+
67
I like Jekyll but wish I didn't have to deal with Ruby!
78

89
## Install rbenv
910

1011
```sh
11-
sudo port install rbenv
12+
sudo port install rbenv ruby-build
1213
```
1314

1415
Put at the end of a shell startup script (`~/.zshenv` doesn't work for me so I
@@ -35,6 +36,7 @@ bundle install
3536
```
3637

3738
Start Jekyll. (I install Jekyll inside a `docs` subdirectory so run this from there.)
39+
3840
```sh
3941
bundle exec jekyll serve --livereload
4042
```
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
layout: post
3+
title: How to add email aliases and reply from the same address
4+
permalink: /email
5+
---
6+
7+
How to add email aliases and reply from the same address the original email was
8+
sent to.
9+
10+
# Add aliases
11+
12+
First the aliases need to be added in the mail server's web admin.
13+
14+
## Zoho Mail
15+
16+
Login to Zoho mail admin.
17+
18+
https://mailadmin.zoho.com.au/cpanel/home.do#users/list
19+
20+
Click the hamburger menu top left, and click Users.
21+
22+
Click Add email alias next to your user. (Click the vertical ellipsis to open
23+
the drop-down)
24+
25+
Click + Add to add an alias.
26+
27+
Add the new email address. (Don't tick "set as mailbox address")
28+
29+
## Google Workspace
30+
31+
Open admin.google.com
32+
33+
Click the hamburger menu > Directory > Users.
34+
35+
Click your user.
36+
37+
Click ADD ALTERNATE EMAILS.
38+
39+
Add the alias.
40+
41+
# Reply from the same address the original email was sent to
42+
43+
The above aliases will work, but in order to reply from the same email address
44+
the email was sent to, the addresses also need to added to the email apps.
45+
46+
## MacOS Mail
47+
48+
Open the app.
49+
50+
Go to Mail > Settings.
51+
52+
In the Accounts tab, click the account.
53+
54+
Click Email Addresses and ad the address.
55+
56+
## iOS Mail
57+
58+
Go to Settings > Mail > Mail Accounts.
59+
60+
Click the account.
61+
62+
Go to Account Settings.
63+
64+
Click Email, and add the address.
65+
66+
Note the account must be an IMAP account, otherwise you can't add aliases. If
67+
you added it as a Google account, add it again as "Other".

docs/_posts/haskell/2020-09-30-setup-haskell-project.markdown

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,25 @@ To rebuild as code changes:
3131
stack build --file-watch
3232
```
3333

34-
To rebuild and execute on changes (doesn't work for things that run forever, e.g. servers):
34+
To rebuild and execute on changes (doesn't work for things that run forever):
3535
```sh
3636
stack build --file-watch --exec $(stack path --local-install-root)/bin/myapp-exe
3737
```
3838

3939
Execute the binary with
4040
```sh
41-
stack run myapp
41+
stack run
4242
```
43+
44+
To find the binary, it's in the "bin" directory here:
45+
```
46+
stack path --local-install-root
47+
```
48+
49+
To install a local module, add it to `stack.yaml` under `packages`:
50+
```
51+
packages:
52+
- .
53+
- ./haskell-mpv
54+
```
55+
And don't forget to add it to package.yaml as a dependency as well. Then build.

0 commit comments

Comments
 (0)