Skip to content

Instantly share code, notes, and snippets.

@jaflo
jaflo / Code.gs
Created September 13, 2017 18:07
Share folder with user once they fill out a Google form
/*
1. Open or create your form.
2. Click the wheel icon, check "Collect email addresses", save. This will automatically get the email from the user.
* In the survey, you should probably put some text that explains that it will automatically use their account's email.
3. Click the three dots in the top right, select "Script Editor."
4. Copy this entire file and paste it in the editor.
5. Replace your_folder_id with your folder ID.
* To find the folder ID, open the folder you wish to share on the web.
* In the address bar, it should be something like https://drive.google.com/drive/u/0/folders/0B1jVrClv_7PllGlxTz4YjXRCeFk
@jaflo
jaflo / description.md
Created May 6, 2020 03:51
Export Instapaper to HTML & PDF

Use this to automatically scrape all of your saved Instapaper articles locally as HTML and PDF files. I originally wrote this to read my saved documents on my reMarkable tablet. Instapaper does not have an option to export all my stuff as PDF as far as I could tell (the built-in options only export a subset).

You will need to have the following packages installed:

Configure your username and password, then run the script. It will go through all articles shown on your home page and download the copy Instapaper has stored into a folder called output as HTML file and convert it into a PDF. You can customize the look by updating the included styles.css file. Any errors will be reported and logged to failed.txt. Errors might be due to parsing errors on Instapaper's side or due to PDF conversion issues.

@jaflo
jaflo / systemlogs.md
Last active July 6, 2024 00:06
Flipper Zero stuff

Viewing System Logs

After following these steps you can view messages logged on the OS level. This includes messages logged using FURI_LOG_D (for debug) for example. You can use these in your scripts too:

  • FURI_LOG_E(): error
  • FURI_LOG_W(): warning
  • FURI_LOG_I(): info
  • FURI_LOG_D(): debug
  • FURI_LOG_T(): trace