These are all my configuration files, plus a handful of scripts that install them on a fresh computer. Any dependencies that these files reference are also installed by the install scripts.
The install scripts use rc_helpers.sh
or dependencies_helpers.sh
for helper functions, but each helper detects where the script was run from to avoid path issues.
That said, the scripts should be located in ~/dotfiles
or ~/workspace/dotfiles
, which make sense if you've just cloned the repo to a new machine, or if you're working on the files, respectively.
The dependencies-install.sh
script really only needs to be run once for each new VM or system.
bin
: little helper programs I like to have on each machinesetup-server.sh
: run this first on a new server, sets up my user to get ready for other installs- Once this has been run, run the other two scripts as user instead of root
install.sh
: installs dotfiles, meant to be run very quicklylib/*helpers.sh
: just defines functions, no actionsdependencies-install.sh
: sometimes downloads items, calls other programs, can be slow- dotfiles: each dotfile is named after the program it's for
These would be really cool as scripts, but I don't know how to script creating bookmarks in Google Chrome. Maybe I'll make them into a bookmark import file later.
Each one is a javascript bookmarklet to transform a google document or sheet.
javascript:window.location.host.includes('google.com')&&window.location.assign(window.location.href.replace(/edit|copy/, 'preview'))
javascript:window.location.host.includes('google.com')&&window.location.assign(window.location.href.replace(/preview|copy/, 'edit'))
javascript:((window.location.href.includes('google.com/drawings')||window.location.href.includes('google.com/presentation'))&&window.location.assign(window.location.href.replace(/(edit|preview|copy).*/, 'export/pdf')))||((window.location.host.includes('docs.google.com')||window.location.host.includes('sheets.google.com'))&&window.location.assign(window.location.href.replace(/(edit|preview|copy).*/, 'export?format=pdf%27)))
javascript:window.location.host.includes('google.com')&&window.location.assign(window.location.href.replace(/(edit|preview).*/, 'copy'))
javascript:window.location.host.includes('google.com')&&window.location.assign(window.location.href.replace(/(edit|preview).*/, 'copy?copyComments=true%27))
javascript:window.location.host.includes('google.com')&&window.location.assign(window.location.href.replace(/(edit|copy|preview).*/, 'template/preview'))
Scripts based on the comment found below:
Jim@Work
Original Poster
Sep 18, 2019
After some more searching I found the solution here:
https://learninginhand.com/blog/google-document-url-tricks
To make a link open in:
Preview mode: → Replace /edit with /preview
Force a copy: → Replace /edit with /copy
Force a copy with comment: → Replace /edit with /copy?copyComments=true
Create a template: → Replace /edit with /template/preview
In PDF: → Google Docs & Sheets: Replace /edit with /export?format=pdf
→ Google Slides & Drawings: Replace /edit with /export/pdf
Original Poster Jim@Work marked this as an answer