-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
43 lines (23 loc) · 847 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Getting started:
================
Install jekyll:
$ gem install bundler jekyll
Serve files:
$ bundle exec jekyll serve
Install webpack/javascript dependencies
$ npm install
Build Javascript:
$ webpack
Misc commands
=============
jq command to convert old database
cat datadump.json | jq '[. | map(select(.model=="db_data.officer")) | .[].fields]' > officers.json
jq command to convert json to csv, when the json is structured as a list of
objects
cat officers.json | jq -r '(.[0] | keys_unsorted),(.[] | [.[]]) | @csv' > officers.csv
Resize office images
find . -name '*.jpg' | xargs -L1 -I{} convert "{}" -resize 200x200^ "{}"
Re-encode gifs
ffmpeg -i Neil_Lingarkar.gif -c:v libvpx -crf 12 -b:v 500K -auto-alt-ref 0 Neil_Lingarkar.webm
(And since mp4 is more well suppported)
ffmpeg -i Neil_Lingarkar.webm Neil_Lingarkar.mp4