- Download/clone https://github.com/matttrent/ibooks-highlights
pip3 install click
brew install libyaml
- cd to cloned copy
sudo python3 setup.py install
- copy templates from ibook_highlights/templates to /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/ibooks_highlights-0.1.0-py3.6.egg
- Create directoy to hold your notes.
mkdir ~/Documents/Annotations
cd ~/Documents/Annotations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is an opionionated chunk of CSS. | |
* It add's numbering to headers h2 and h3. | |
* | |
* Why not for h1? h1 is the page title. | |
* Why not for h4? Because that's to deep. | |
* | |
* Adapt as needed :-) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define("BASE", "https://<jira-api-url>"); | |
define("CHECKFOR", array( | |
'EDIT_SPRINT_NAME_AND_GOAL_PERMISSION', | |
'MANAGE_SPRINTS_PERMISSION', | |
'START_STOP_SPRINTS_PERMISSION' | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('BASE', 'https://wiki.domain.com/rest/api/'); | |
define('USERNAME' , 'foo'); | |
define('PASSWORD' , 'bar'); | |
function prepareCall(&$curl, $query) { | |
curl_setopt($curl, CURLOPT_URL, BASE . $query); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($curl, CURLOPT_USERPWD, USERNAME . ':' . PASSWORD); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Safari" | |
set nextPage to "https://www.xing.com/contacts/contacts" | |
repeat while nextPage is not "-" | |
open location nextPage | |
my waitForPageLoad() | |
delay (random number from 0.2 to 1.0) | |
my getVcardLinks() | |
set nextPage to my gotoNextPage() | |
end repeat | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Mail" | |
set _a to imap account "[email protected]" | |
set _i to _a's mailbox "INBOX" | |
set _ms to (messages of _i) | |
set numLog to 50 | |
set iteration to 1 | |
set iterationMax to number of _ms | |
log iterationMax & " msgs to move" | |
repeat with _m in _ms | |
if (iteration mod numLog is 0) then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void%20function(){window.open(%22http://diycaptions.com/php/get-automatic-captions-as-txt.php%3Fid=%22+location.href.match(/(^|=|\/)([0-9A-Za-z_-]{11})(\/|%26|$|\%3F|%23)/)[2]+%22%26language=asr%22)}(); | |
Regex from https://stackoverflow.com/questions/3452546/how-do-i-get-the-youtube-video-id-from-a-url | |
Hat tip to Mike Ridgway of DIYCaptions.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//*[@id="body"]/ytd-transcript-body-renderer/div/div[2]/div |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `seq 1 80`; do | |
r=$(( $RANDOM % 2 ))$(( $RANDOM % 10 ))$(( $RANDOM % 10 ))r=$(( $RANDOM % 10 )) | |
curl http://www.domain.com/$i.jpg -o $(printf '%04d' $i).jpg | |
sleep $(jot -r 1 0.5 2.4) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* Import and update your Pinboard bookmarks to DEVONthink | |
Based on work done by Christian Grunenberg on Mon Jan 23 2006, | |
Rafael Bugajewski to support Pinboard instead of Delicious on Sun Dec 19 2010 and | |
Andreas Zeitler on Sun Mar 03 2011 to display user feedback when finished. | |
By Sascha A. Carlin <https://sascha.carlin.de/> on 2018-03-07 to set the creation date of new record, show progress bar, use Pinboard Auth Token, use modification date of folder to fetch only recent items | |
Copyright (c) 2018. All rights reserved. *) | |
use framework "Foundation" |
NewerOlder