Skip to content

Instantly share code, notes, and snippets.

Chase Adams chaseadamsio

Block or report user

Report or block chaseadamsio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 01-introduction-to-docker.md

Introduction to Docker

Self-Paced Training Url: Docker Self-Paced Training

📝 denotes an exercise

Introduction

  • Agenda [1:50]
  • What Is Docker / Background / History? [2:25]
@chaseadamsio
chaseadamsio / moveFilesToNameWithDate.js
Last active Mar 20, 2019
script for mass moving files to <date-published>-<filename>
View moveFilesToNameWithDate.js
/**
* utility I used to rename all of my files based on the date
* so that I can use netlify+dropbox to "schedule" posts
* Example...
* original filepath: Apps/chaseadams.io/articles/2019/yolo.md
* frontmatter contains "date: "2019-01-01"
* new filepath: Apps/chaseadams.io/articles/2019/2019-01-01-yolo.md
*/
const fs = require("fs");
const path = require("path");
View .gitignore
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
View taskmanagers.org

Selecting a Task Manager

Selecting a task management system has been a difficult task. I have a few options but I know what I like and none of the options I’ve found fit the bill.

  • What I’m looking for
  • A list of task managers
  • What I like/dislike about them all

What I’m looking for

@chaseadamsio
chaseadamsio / .bowerrc
Last active Oct 2, 2017
Gist for example bower project blog post.
View .bowerrc
{
"directory": "src/_lib",
"json": "bower.json"
}
View keybase.md

Keybase proof

I hereby claim:

  • I am chaseadamsio on github.
  • I am chaseadamsio (https://keybase.io/chaseadamsio) on keybase.
  • I have a public key ASBErgIAqNdt9en7YSOmVMQqdXP4uZQdCSXLrdZAh9uH0go

To claim this, I am signing this object:

@chaseadamsio
chaseadamsio / post-receive.sh
Last active Jul 6, 2016
The post-receive hook that I use for deploying my Wordpress theme on a `git push`.
View post-receive.sh
#!/bin/sh
LOGFILE=./post-receive.log
DEPLOYDIR=$DEPLOYDIR # The place to deploy to.
echo -e "[log] Received push request at $( date +%F)" >> $LOGFILE
echo "[log] - Old SHA: $oldrev New SHA: $newrev Branch Name: $refname" >> $LOGFILE
echo "[log] Starting Deploy..." >> $LOGFILE
@chaseadamsio
chaseadamsio / Gruntfile.js
Last active Mar 19, 2016
Grunt Up & Running from Using Grunt For A Better Workflow.
View Gruntfile.js
'use strict';
var packagejson = require('./package.json');
module.exports = function (grunt) {
// Configuration
grunt.initConfig({
pkg: packagejson,
watch: {
scripts: {
@chaseadamsio
chaseadamsio / anchor-image-code.html
Last active Jan 1, 2016
A code example of how to nest an image in an anchor link with Markdown.
View anchor-image-code.html
<!-- The link we want our bower bird to point to -->
[1]: http://www.bower.io
<!-- The image url we want to use for our img tag source -->
[2]: http://bower.io/img/bower-logo.png
<!--
This will compile to two html nodes:
Anchor: [linked item][1]: <a href="1">linked item</a>
Image: ![alt text][2]: <img src="2" alt="alt text" />
View sample-grunt.js
grunt.event.on('watch', function (action, path, target) {
if (target === 'html' || target === 'css' /* and on and on for your target types in watch */) {
grunt.config(['clean', 'any'], []);
// Making an assumption your using sftp and have a current working directory setup
cwd = grunt.config.get(['sftp', 'cwd']) + '/';
path = path.replace(cwd, '');
grunt.config(['sftp', 'options', 'path'], path);
}
});
You can’t perform that action at this time.