Skip to content

Instantly share code, notes, and snippets.

View DarrylDias's full-sized avatar
🎯
Focusing

Darryl Dias DarrylDias

🎯
Focusing
View GitHub Profile
@DarrylDias
DarrylDias / custom_blocklist.txt
Created January 5, 2022 01:31
A custom blocklist that will work with AdGuard Home and other ad blockers
|| proasdf.com^

Keybase proof

I hereby claim:

  • I am darryldias on github.
  • I am darryldias (https://keybase.io/darryldias) on keybase.
  • I have a public key ASBqBc8oQOgXZ8LeDlgDx7bbJRFB8j0cpmstQp_QRBfWBwo

To claim this, I am signing this object:

# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
#max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
<form id="contactform" action="//formspree.io/me@example.com" method="POST"><input name="name" type="text" placeholder="Your name" /> <input name="_replyto" type="email" placeholder="Your email" /> <textarea name="message" placeholder="Your message"></textarea> <input type="submit" value="Send" /></form>
@DarrylDias
DarrylDias / hb-snippet-variable-example.md
Created July 10, 2017 08:47 — forked from kennethormandy/hb-snippet-variable-example.md
A quick example Harp app that uses the correct title for your blog in the correct place.

A quick example Harp app that uses the correct title for your blog in the correct place.

The App

app/
  |- _harp.json
  |- _layout.ejs
  |- index.ejs
  |+ posts/
      |- _data.json
@DarrylDias
DarrylDias / live-tile.hbs
Created June 27, 2017 09:34
Live TIle for Ghost blogging platform
<meta name="application-name" content="{{@blog.title}}"/>
<meta name="msapplication-TileColor" content="#00acff"/>
<meta name="msapplication-square70x70logo" content="{{@blog.logo}}"/>
<meta name="msapplication-square150x150logo" content="{{@blog.logo}}"/>
<meta name="msapplication-wide310x150logo" content="{{@blog.logo}}"/>
<meta name="msapplication-square310x310logo" content="{{@blog.logo}}"/>
<meta name="msapplication-notification" content="frequency=30;polling-uri=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed={{@blog.url}}/rss/&id=5; cycle=1"/>
<!-- Created by Darryl Dias http://darryldias.me/live-tile-for-ghost -->
@DarrylDias
DarrylDias / live-tile.html
Created June 27, 2017 09:32
Live Tile for Jekyll
<meta name="application-name" content="{{site.title}}"/>
<meta name="msapplication-TileColor" content="#00acff"/>
{% if site.logo %}
<meta name="msapplication-square70x70logo" content="{{site.logo}}"/>
<meta name="msapplication-square150x150logo" content="{{site.logo}}"/>
<meta name="msapplication-wide310x150logo" content="{{site.logo}}"/>
<meta name="msapplication-square310x310logo" content="{{site.logo}}"/>
{% endif %}
<meta name="msapplication-notification" content="frequency=30;polling-uri=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&id=5; cycle=1"/>
<!-- Created by Darryl Dias http://darryldias.m
@DarrylDias
DarrylDias / adsense-amp.html
Created June 8, 2017 14:20
AdSense optimised for AMP.
<!-- AdSense Snippet -->
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block;"
data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@DarrylDias
DarrylDias / single.php
Last active June 8, 2017 14:26
AdSense supported WordPress AMP single.php
<?php
$publisher_id = "ca-pub-xxxxxxxxxxxxxxxx";
$ad_slot = "xxxxxxxxxx";
?>
<!doctype html>
<html amp <?php echo AMP_HTML_Utils::build_attributes_string( $this->get( 'html_tag_attributes' ) ); ?>>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
@DarrylDias
DarrylDias / postachio-gridly-theme.html
Created May 9, 2016 18:55 — forked from bmann/postachio-gridly-theme.html
Custom Postachio theme based on the Gridly base theme. Modified to focus on highlighting link posts over "original" posts. Home page links go directly to original article.
<!DOCTYPE html>
<html lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<title>{% if is_home %}{{ site.author }} {% elif is_post %} {{ post.title }} {% elif is_link %} {{ link.title }} {% elif is_tag %} {{ tag }} {% elif is_page %} {{ page.title }} {% endif %} | {{ site.name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />