Skip to content

Instantly share code, notes, and snippets.

View DarrylDias's full-sized avatar

Darryl Dias DarrylDias

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

Keybase proof

I hereby claim:

  • I am darryldias on github.
  • I am darryldias ( on keybase.
  • I have a public key ASBqBc8oQOgXZ8LeDlgDx7bbJRFB8j0cpmstQp_QRBfWBwo

To claim this, I am signing this object:

View rtorrent.rc
# 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
View ghost-contact-form-example.hbs
<form id="contactform" action="//" 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 /
Created July 10, 2017 08:47 — forked from kennethormandy/
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

  |- _harp.json
  |- _layout.ejs
  |- index.ejs
  |+ posts/
      |- _data.json
DarrylDias / live-tile.hbs
Created June 27, 2017 09:34
Live TIle for Ghost blogging platform
View live-tile.hbs
<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={{@blog.url}}/rss/&id=1;polling-uri2={{@blog.url}}/rss/&id=2;polling-uri3={{@blog.url}}/rss/&id=3;polling-uri4={{@blog.url}}/rss/&id=4;polling-uri5={{@blog.url}}/rss/&id=5; cycle=1"/>
<!-- Created by Darryl Dias -->
DarrylDias / live-tile.html
Created June 27, 2017 09:32
Live Tile for Jekyll
View live-tile.html
<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={{site.url}}/atom.xml&id=1;polling-uri2={{site.url}}/atom.xml&id=2;polling-uri3={{site.url}}/atom.xml&id=3;polling-uri4={{site.url}}/atom.xml&id=4;polling-uri5={{site.url}}/atom.xml&id=5; cycle=1"/>
<!-- Created by Darryl Dias http://darryldias.m
DarrylDias / adsense-amp.html
Created June 8, 2017 14:20
AdSense optimised for AMP.
View adsense-amp.html
<!-- AdSense Snippet -->
<script async src="//"></script>
<ins class="adsbygoogle"
(adsbygoogle = window.adsbygoogle || []).push({});
DarrylDias / single.php
Last active June 8, 2017 14:26
AdSense supported WordPress AMP single.php
View single.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' ) ); ?>>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
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.
View postachio-gridly-theme.html
<!DOCTYPE html>
<html lang="en-US" prefix="og:">
<meta charset="utf-8">
<title>{% if is_home %}{{ }} {% elif is_post %} {{ post.title }} {% elif is_link %} {{ link.title }} {% elif is_tag %} {{ tag }} {% elif is_page %} {{ page.title }} {% endif %} | {{ }}</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" />