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 / pagekit.conf
Last active January 3, 2023 15:49
NGINX config for PageKit. (Tested on Ubuntu) (If for some reason I don't reply to a comment leave a message at https://darryldias.me/contact/)
server {
# Server name
server_name example.com;
# Server Port
listen 80;
# Webroot
root /var/www/;
#!/bin/bash
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at heiths@gmail.com
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
@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^
@DarrylDias
DarrylDias / default
Last active November 6, 2021 23:32
NGINX configuration for Grav CMS.
server {
listen 80;
server_name localhost; # Change this with your domain name
root /var/www/grav; # The place were you have setup your Grav install;
index index.php;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;

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 / deploy.sh
Created January 16, 2014 17:42
Sync folder using Lftp. you need to install Lftp to use this script on you system
#!/bin/bash
HOST='yourwebsite.com'
USER='your_username_here'
PASS='your_password_here'
TARGETFOLDER='/remote_folder'
SOURCEFOLDER='/home/myuser/local_folder'
lftp -f "
open $HOST
user $USER $PASS
@DarrylDias
DarrylDias / nginx.conf
Last active November 29, 2017 12:24
WordPress optimised NGINX config for http://darryldias.me/lightweight-wordpress-setup/
fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=WP:100m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
add_header X-Cache $upstream_cache_status;
server {
listen 80;
root /var/www/wp; # Change the web root with the place where your WordPress is setup
@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