Skip to content

Instantly share code, notes, and snippets.

@skyperkloze
skyperkloze / bmc-template
Created October 4, 2021 07:36 — forked from thesved/bmc-template
Business Model Canvas in Roam Research w/ tables and block embeds
- [[Business Model Canvas]] test
- table: Roam Research BMC
- {{[[table]]}}
- ((top row id))
- ((bottom row id))
- structure
- intermediary rows
- {{[[table]]}}
- {{[[embed]]: ((activity id))}}
- {{[[embed]]: ((resource id))}}
@skyperkloze
skyperkloze / Sticky note v3.1.js
Created October 6, 2020 14:47 — forked from PtruckStar/Sticky note v3.3.js
sticky notes widget with scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: sticky-note;
/* #################################
simple sticky note widget
-config:
---background color
------green, red, yellow, blue, #hex
---text size
------small, medium, large
Copy this to roam/js page, including the "{{[[roam/js]]}}" node:
- {{[[roam/js]]}}
- ```javascript
/*
* Roam template PoC by @ViktorTabori
* 0.1alpha
*
* How to install it:
* - go to `roam/js` page`
@skyperkloze
skyperkloze / xcode-downloader.rb
Created December 22, 2019 03:05 — forked from iandundas/xcode-downloader.rb
Script for reliably downloading binaries (e.g. Xcode) from Apple's CDN
#!/usr/bin/env ruby
print "What is the URL of your Apple Downloads resource?\nURL:"
url = gets.strip
print "What is the ADCDownloadAuth cookie token:\nADCDownloadAuth: "
token = gets.strip
command = "aria2c --header \"Host: adcdownload.apple.com\" --header \"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\" --header \"Upgrade-Insecure-Requests: 1\" --header \"Cookie: ADCDownloadAuth=#{token}\" --header \"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1\" --header \"Accept-Language: en-us\" -x 16 -s 16 #{url} -d ~/Downloads"