Skip to content

Instantly share code, notes, and snippets.

View jhyland87's full-sized avatar

J jhyland87

View GitHub Profile
// While you can edit this file, it's best to put your changes in
// "User/Preferences.sublime-settings", which overrides the settings in here.
//
// Settings may also be placed in file type specific options files, for
// example, in Packages/Python/Python.sublime-settings for python files.
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
// Note that the font_face and font_size are overriden in the platform
{
"post": {
"contributors": [
{
"date":"123123123123",
"username":"ghatch"
},
{
"date":"187654365764",
"username":"jhyland"
@jhyland87
jhyland87 / post.md
Last active December 13, 2016 17:05
Example Blog Post
@jhyland87
jhyland87 / hello-world.md
Last active December 20, 2016 21:53
Example blog page/article
title layout summary author
Hello World! - Example Article
articles/article-page.pug
This is the summary of the article...
prefix username
By
jhyland87
( 9)[Wed Dec 21 11:58:57| 13:000]{941}jhyland@jhmac:~/Documents/Projects/geekwiki.io(✓) (master)$ node build.js
Starting at: Wed Dec 21 2016 12:00:00 GMT-0700 (MST)
Metalsmith complete!
Stopped at: Wed Dec 21 2016 12:00:28 GMT-0700 (MST)
Elapsed: 28482 ms
Duration: 28 seconds
( 9)[Wed Dec 21 12:00:30| 30:000]{942}jhyland@jhmac:~/Documents/Projects/geekwiki.io(✓) (master)$ node build.js
Starting at: Wed Dec 21 2016 12:05:20 GMT-0700 (MST)
Metalsmith complete!
@jhyland87
jhyland87 / ps1.sh
Created December 22, 2016 01:06
/etc/profile.d/ps1.sh
#!/bin/bash
# Create /etc/profile.d/prompt.sh and add the content of this gist to it.
#
# Prompt example:
# (2)[Fri May 06 10:00:30| 0:003]{4}root@ip-172-31-1-226:~(0)#
# Format is:
# (sessions on server)[date time| Last command exec time]{sessions on server}username@hostname:working_directory(exit code of last cmd)#
#
# Example Output (of $[prompt[0]}): http://d.pr/i/19B87
#
@jhyland87
jhyland87 / index.json
Created December 22, 2016 01:23
geekwiki.local/documentation/index.json
{
"pretty":true,
"site":{
"title":"Some Blog",
"theme":"neutral"
},
"social_networks":{
"facebook":{
"title":"Facebook",
"icon":"facebook",
@jhyland87
jhyland87 / metalsmith-local-vars.json
Last active December 27, 2016 16:50
This is the output of JSON.stringify( locals ) within a template file (.pug)
{
"pretty":true,
"site":{
"title":"Some Blog",
"theme":"neutral"
},
"social_networks":{
"facebook":{
"title":"Facebook",
"icon":"facebook",
[
{
"title":"Check SSL certificate from command line",
"layout":"articles/article-page.pug",
"summary":"Check SSL certificate from command line",
"featured_image":"assets/articles/check_ssl.png",
"create_date":"10-12-2012",
"author":{
"firstname":"Geoff",
"lastname":"Hatch",
@jhyland87
jhyland87 / index.json
Last active January 4, 2017 19:34
Example content of the article metadata compiled and saved to public/articles/index.json
{
"name":"articles",
"total":102,
"result":[
{
"title":"10 Simple Quick Keys in BASH to Make Your Life Easier",
"summary":"10 Simple Quick Keys in BASH to Make Your Life Easier",
"create_date":"09-01-2013",
"author":{
"firstname":"Richard",