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
| /* | |
| Add this to your <activity>, so any link (clicked in fi. an e-mail) | |
| will open your app instead of the website, but only if it matches these whitelisted path patterns | |
| */ | |
| <activity android:launchMode="singleInstance"><!-- set the launchMode property to this value! --> | |
| <intent-filter> | |
| <action android:name="android.intent.action.VIEW"/> | |
| <category android:name="android.intent.category.DEFAULT"/> | |
| <category android:name="android.intent.category.BROWSABLE"/> |
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
| --- | |
| # Set CHIP up as an airplay server. | |
| # Based on https://www.hackster.io/11798/c-h-i-p-play-speakers-7cebb9 | |
| # Note; you will still have to edit shairport-sync.conf to set the name | |
| - name: configure chips for iot shairport use | |
| hosts: shairport-chips | |
| become_user: root |
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
| #!/usr/bin/perl | |
| # by Andreas Kammlott, thanks to perl and its community | |
| use IO::Socket::SSL; | |
| use Data::Dumper; | |
| use HTTP::Date qw(str2time); | |
| use HTTP::Date qw(parse_date); | |
| use Date::Format; | |
| use Mail::IMAPClient; | |
| use Mail::Box::Maildir; |