Skip to content

Instantly share code, notes, and snippets.

View RickCogley's full-sized avatar
👻
Slowly but surely implementing ISO 27001 ISMS

Rick Cogley RickCogley

👻
Slowly but surely implementing ISO 27001 ISMS
View GitHub Profile
@RickCogley
RickCogley / config.toml
Created April 23, 2015 14:25
How to put ascii art in a hugo config.toml.
[params]
# Used when a given page doesn't set its own.
defaultDescription = "A post by Rick Cogley"
defaultKeywords = "cogley,post"
categoriescss = "/css/categories.css"
sidebartitle = "Rick Cogley Central"
sidebartagline = "Don't just consume. Use the power at your fingertips to create something useful."
@RickCogley
RickCogley / one.md
Last active August 29, 2015 14:21
Test

Header 1

  • this
  • is
  • my
  • list
@RickCogley
RickCogley / materialize-modal-youtube.html
Last active July 2, 2018 13:16
Materialize modal youtube
<!-- Modal Trigger -->
<a class="waves-effect waves-light btn modal-trigger" href="#modal1">View Intro Video</a>
<!-- Modal Structure -->
<div id="modal1" class="modal green-text">
<div class="modal-content">
<h4>Modal Header</h4>
<p><div class="video-container">
<iframe width="1102" height="620" src="https://www.youtube.com/embed/VH26lrd6LSY?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
</div></p>
<!--sidebar start-->
<aside>
<div id="sidebar" class="nav-collapse">
<!-- sidebar menu start-->
<ul class="sidebar-menu">
{{ $currentNode := . }}
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<li class="sub-menu{{if $currentNode.HasMenuCurrent "main" . }} active{{end}}">
@RickCogley
RickCogley / contributor-lines-of-code.sh
Last active August 29, 2015 14:24
Hugo Contributors with 2 or more lines of code, who have NOT signed the license OK
git ls-tree -r master --name-only | xargs -I {} git blame --line-porcelain {} | sed -n 's/^author //p' | sort | uniq -c | sort -rn
5589 spf13 - OK
2250 Anthony Fok - OK
2200 bep - OK
1287 Michael Henderson - OK
442 Rick Cogley - OK
323 Joel Scoble - OK
299 Austin Ziegler - OK
255 Arjen Schwarz - OK
#!/usr/bin/env bash
#
# Installs GCC. Run this in a screen session.
#
mkdir -p $HOME/bin $HOME/gcc/src $HOME/gcc/bin $HOME/gcc/lib
ln -s $HOME/gcc/lib $HOME/gcc/lib64 # only needed if we're on a 64-bit server.
# we don't want to maintain two directories, and we're not using multilib.
@RickCogley
RickCogley / npm-debug.log
Last active October 28, 2015 06:57
Hubot Hipchat debug 20151028-01
0 info it worked if it ends with ok
1 verbose cli [ '/home/sai/webapps/hubot_01/bin/node',
1 verbose cli '/home/sai/webapps/hubot_01/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save',
1 verbose cli 'hubot-hipchat' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
@RickCogley
RickCogley / bundle.css
Last active January 16, 2016 21:11
cssrecipes question
.inline-code{display:inline-block;vertical-align:text-bottom;margin:0 .15em;border-radius:.2em;padding:.17em .4em .25em;font-size:85%;line-height:1;color:#fff;color:hsla(0,0%,100%,.9);background-color:#000;background-color:rgba(0,0,0,.65)}.inline-code svg{position:relative;bottom:.02em;display:inline-block;vertical-align:middle;width:.85em;height:.85em;fill:currentColor}@media (min-width:500px){.intro{padding:2.5em}}@media (min-width:800px){.intro{padding:4em}}.intro{padding:1.5em;text-align:center;font-size:18px;line-height:1.5;color:#404040;background-color:#fff}@media(min-width:500px){.intro{padding:2.5em}}@media(min-width:800px){.intro{padding:4em}}.intro .logo{display:inline-block;max-width:75%}.intro img{display:block;max-width:100%}.intro .details{max-width:52em;margin:auto;text-align:left}.intro .details ol{margin-top:1.8em;margin-bottom:2.2em}.intro .details li{margin-top:.8em}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grays
@RickCogley
RickCogley / gulpfile.js
Created January 15, 2016 02:10
Inlining-css-via-postcss-import-in-gulp-gulpfile.js
/* eslint-env node */
var concat = require('gulp-concat'),
atImport = require('postcss-import'),
/* mqpacker = require('css-mqpacker'), */
cssnano = require('cssnano'),
cssnext = require('postcss-cssnext'),
gulp = require('gulp'),
postcss = require('gulp-postcss'),
sourcemaps = require('gulp-sourcemaps'),