Skip to content

Instantly share code, notes, and snippets.

View creativecoder's full-sized avatar

Grant Kinney creativecoder

View GitHub Profile

Keybase proof

I hereby claim:

  • I am creativecoder on github.
  • I am grantmk (https://keybase.io/grantmk) on keybase.
  • I have a public key ASDRbHpChA5-EUQPDL2NRsTS8NH7JDE9ULnLHOhf7Egwuwo

To claim this, I am signing this object:

Untagged
tagged by a friend -> Subscribed
tag self -> Receive Confirmed Message
Subscribed&
Tag
send STATS -> Receive Stats Message
send HELP -> Receive Help Message
send CANCEL -> Receive Unsubscribed Message
# WPEngine Deploy - wp-content folder #
###########################################

# Ignore all files in the app directory
app/*
# But not the directory, itself
!app/
# And not the wp-content directory
!**/wp-content/

SSH Notes

These notes apply to OpenSSH

  • SSH sessions
    • Initiate a session
      • Use ssh user@domain.com to initiate an ssh session (can alternatively use ssh -l user domain.com)
    • Files stored locally in ~/.ssh
      • Known hosts
  • The first time you connect to a remote server via SSH, you are asked if you want to continue--if you do, that server is added to the known_hosts file
@creativecoder
creativecoder / pagination.js
Last active September 19, 2015 00:42
vue.js pagination component
var _ = require('lodash');
/*
Example:
<pagination
current-page='@{{@ currentPage}}'
total-items='@{{totalItems}}'
per-page='@{{perPage}}'>
</pagination>
*/
module.exports = {
@creativecoder
creativecoder / LaravelContext.php
Last active August 29, 2015 14:26
Laravel FeatureContext for testing with Behat (use this to extend your FeatureContext class instead of Mink)
<?php
use Illuminate\Foundation\Testing\ApplicationTrait;
use Illuminate\Foundation\Testing\AssertionsTrait;
use Illuminate\Foundation\Testing\CrawlerTrait;
class LaravelContext extends PHPUnit_Framework_TestCase
{
use ApplicationTrait, AssertionsTrait, CrawlerTrait;
@creativecoder
creativecoder / Git Notes.md
Created April 17, 2014 23:25
git version control notes

Git Version Control

  • Understanding git
    • Anatomy of git
      • HEAD
        • Think of it as the snapshot of your last commit
        • Pointer to the current branch reference, which is the last commit you made or the last commit that was checked out
      • Index
  • Snapshot of your next commit
@creativecoder
creativecoder / Markdown.sublime-build
Created March 3, 2014 00:00
Open markdown files in Marked.app (on Mac) with Cmd + B
{
"shell_cmd": "open -a marked \"$file\"",
"selector": "text.html.markdown"
}

Bearded's Hourly Contract

Date: [[Date of Document]] Between [Our Company] and [Your Company]

Summary

We’re not big on formality, but sometimes it’s best to have a few simple things written down so that we’re all on the same page. In this contract you won’t find complicated legal terms or large passages of unreadable text. We have no desire to trick you into signing something that you might later regret. We do want what’s best for the safety of both parties, now and in the future.

@creativecoder
creativecoder / .gitignore
Created August 8, 2013 02:54
.gitignore all but the specified subdirectory
# Ignore all files except for a particular directory
*
# Don't ignore directories themselves, else we can't add anything to the repository
!*/
# Don't ignore any directory with the name "path"
!**/path/*
# or its subdirectories
!**/path/**/*
# And don't forget .gitignore itself