This file contains hidden or 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
| /*{ | |
| "type": "action", | |
| "targets": ["omnifocus"], | |
| "author": "Ethical Detergent", | |
| "identifier": "com.ethicaldetergent.of.setNoteTextColorBlack", | |
| "version": "1.0", | |
| "description": "Sets the note text color to black for the selected item.", | |
| "label": "Set Note Text Color to Black", | |
| "shortLabel": "Set Note Text Color to Black", | |
| "paletteLabel": "Set Note Text Color to Black", |
This file contains hidden or 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
| (function () { try{window.open('https://letterboxd.com/tmdb/' + window.location.href.split("\/")[4].split('-')[0]);}catch(e){}})() |
This file contains hidden or 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
| /*{ | |
| "type": "action", | |
| "targets": ["omnifocus"], | |
| "author": "Ethical Detergent", | |
| "identifier": "com.ethicaldetergent.of.randomyTaskFromCurrentWindow", | |
| "version": "1.0", | |
| "description": "Selects a random task from the current window in OmniFocus.", | |
| "label": "Random Task", | |
| "shortLabel": "Random Task", | |
| "paletteLabel": "Random Task", |
This file contains hidden or 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 | |
| # Enter a time using 24H. 1:30pm is 13:30 . | |
| ENTERTIME="%filltext:name=Time (in 24H)%" | |
| # See https://gist.github.com/palaniraja/f8e21e8c66eac7e1b313 for a | |
| # list of time zone names. | |
| T1=$(TZ="America/New_York" date -jf "%H:%M %z" "$ENTERTIME $(date "+%z")" "+%-I:%M %p %Z" | tr -s '[:lower:]' '[:upper:]') |
This file contains hidden or 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: var asin_elements, asin; | |
| asin_elements = document.getElementsByName('ASIN'); | |
| if (asin_elements.length == 0) { | |
| asin_elements = document.getElementsByName('ASIN.0'); | |
| }; | |
| if (asin_elements.length == 0) { | |
| alert('Sorry, this doesn\'t appear to be an Amazon book page.'); | |
| } else { | |
| asin = asin_elements[0].value; | |
| if (asin.match(/\D/) === null) { |
This file contains hidden or 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
| url = new URL(window.location.href); | |
| if (url.hostname = 'amazon.com') { | |
| amazon_ca = url.href.replace('amazon.com', 'amazon.ca'); | |
| location.href = amazon_ca; | |
| } |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Break out of Snip.ly frames | |
| // @version 0.1 | |
| // @include http://snip.ly/* | |
| // @author Richard Eriksson | |
| // ==/UserScript== | |
| var current_hash = window.location.hash; | |
| var destination_url = current_hash.slice(1); | |
| // Thank you, Stack Overflow. http://stackoverflow.com/a/18970172/300278 |
This file contains hidden or 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 | |
| /** | |
| * @file | |
| * Contains \Drupal\configform_example\Form\ConfigFormExampleConfigForm. | |
| */ | |
| namespace Drupal\configform_example\Form; | |
| use Drupal\Core\Form\ConfigFormBase; |
This file contains hidden or 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
| --- | |
| - hosts: YOUR_HOST_HERE | |
| tasks: | |
| - name: Stop Apache | |
| service: name=httpd state=stopped | |
| become: yes | |
| become_user: root | |
| - name: Renew Let's Encrypt certificate | |
| command: ./letsencrypt-auto --agree-dev-preview --renew-by-default -t -d YOUR_DOMAIN_HERE -d YOUR_WWW_SUBDOMAIN_AND_DOMAIN_HERE --server https://acme-v01.api.letsencrypt.org/directory auth |
This file contains hidden or 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
| diff --git a/Info.plist b/Info.plist | |
| index 367b165..7f18dd3 100644 | |
| --- a/Info.plist | |
| +++ b/Info.plist | |
| @@ -96,6 +96,8 @@ | |
| <string>www.amazon.fr</string> | |
| <string>www.amazon.it</string> | |
| <string>www.huffingtonpost.com</string> | |
| + <string>www.vancouversun.com</string> | |
| + <string>www.cbc.ca</string> |
NewerOlder