Skip to content

Instantly share code, notes, and snippets.

View DarrylDias's full-sized avatar
🎯
Focusing

Darryl Dias DarrylDias

🎯
Focusing
View GitHub Profile
---
title: Lorem Ipsum
date: 2015/08/17
description: A sample post
taxonomy:
tag: [sample]
category: [blog]
---
@DarrylDias
DarrylDias / profile.md
Created January 19, 2016 10:07 — forked from dhcole/profile.md
Profiling the `jekyll new` site
posts seconds time
1 0.824 0:0.824
100 2.644 0:2.644
1000 25.071 0:25.071
5000 186.715 3:6.715
10000 536.904 8:56.904

chart

<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&amp;id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&amp;id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&amp;id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&amp;id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed={{site.url}}/atom.xml&amp;id=5; cycle=1"/>
<!-- Created by Darryl Dias http://darryldias.me/liv
@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/;
@DarrylDias
DarrylDias / Ghost_to_HUGO_blog.php
Last active September 8, 2015 11:31 — forked from vjeantet/Ghost_to_HUGO_blog.php
Use this php script to convert a Ghost export json file to Hugo content file. Files will be created in a "output" folder, to reuse images place the ghost content folder into the hugo's static folder
<?php
$ghost_data = json_decode(file_get_contents("./GhostData.json"),true) ;
foreach ($ghost_data['data']['posts'] as $key => $value) {
$created_at = date("c",$value["created_at"]/1000);
$title = str_replace('\\','\\\\',$value["title"]) ;
$title = str_replace('"','\"',$title) ;
@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 / 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;
@DarrylDias
DarrylDias / sources.list
Created May 1, 2015 12:35
CrunchBang Plus Plus repo
#
# deb cdrom:[Debian GNU/Linux 8.0 _Jessie_ - Unofficial amd64 CD Binary-1 20150$
#deb cdrom:[Debian GNU/Linux 8.0 _Jessie_ - Unofficial amd64 CD Binary-1 201504$
deb http://packages.crunchbangplusplus.org/jessie jessie main
deb http://http.debian.net/debian jessie main contrib non-free
# 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 = 1
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
@DarrylDias
DarrylDias / nginx.conf
Created February 26, 2015 16:34
Ghost reverse proxy config.
server {
listen 80;
server_name yourdomain.com;
location / {
proxy_pass http://127.0.0.1:2368;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}