Skip to content

Instantly share code, notes, and snippets.

@fadingblues
fadingblues / jekyll-new-post-advanced
Created October 23, 2019 21:19 — forked from aamnah/jekyll-new-post-advanced
Bash script to create new Jekyll posts
#!/bin/bash
# About: Bash script to create new Jekyll posts
# Author: @AamnahAkram
# URL: https://gist.github.com/aamnah/f89fca7906f66f6f6a12
# Description: This is a more advanced version of the script which can
# - take options
# - has color coded status messages
# - improved code
# - lowercase permalinks
# - usage message
@fadingblues
fadingblues / functions
Created October 23, 2019 06:30
function for creating a folder and cd into it
mkcd () {
mkdir "$1"
cd "$1"
}
@fadingblues
fadingblues / sublime-text-3-setup.md
Created February 12, 2018 10:13 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
@fadingblues
fadingblues / jekyll-post-thor.md
Created October 7, 2017 08:16 — forked from ichadhr/jekyll-post-thor.md
Jekyll create post with command

CREATE JEKYLL POSTS FROM THE COMMAND LINE

I got tired on creating new files manually for each new post a write so I put together this little command line task with Thor.

It creates a new file in the _posts directory with today’s date, parses the parameters to command as the post’s title and adds that as a slug to the new file. It then writes a default yaml template to the file (as specified in the script).

Running thor jekyll:new New and shiny post will for example create the file _posts/2012-12-28-new-and-shiny-post.markdown, populate it with an yaml template and finally open the file in my favorite editor.

HOW TO

Add the following to your Gemfile:

@fadingblues
fadingblues / gist:b8e4115bbad5ea1e1c6b
Created November 18, 2015 15:25 — forked from cormacrelf/gist:3760427
Pandoc Markdown -> latex with syntax highlighting
\documentclass[]{article}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
\else
\ifluatex
\usepackage{fontspec}
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}