Skip to content

Instantly share code, notes, and snippets.

View trvswgnr's full-sized avatar
:octocat:
hardly workin'

Travis Wagner trvswgnr

:octocat:
hardly workin'
View GitHub Profile
@trvswgnr
trvswgnr / .travis.yml
Last active February 12, 2019 04:03
Travis CI Automated NPM Build & SSH Deploy
language: node_js # use 'generic' if not compiling anything
node_js:
- "node"
cache: npm
env:
global:
- DEVELOPMENT_PATH="/full/path/to/dev/deployment/directory"
- PRODUCTION_PATH="/full/path/to/production/deployment/directory"
- SSH_USER="username"
- SSH_HOST="example.com"
@trvswgnr
trvswgnr / generate-wp-pages.php
Last active January 30, 2019 04:00
Programmatically Generate WordPress Pages
<?php
/**
* Generate WordPress Pages
* @example: taw_generate_pages('page one', 'Page Two', 'page-three');
*/
function taw_generate_pages($names) {
if (!$names) { return false; }
$list = func_get_args();
foreach ($list as $item) {
@trvswgnr
trvswgnr / .bash_profile
Last active September 10, 2024 01:11
My Bash Profile
# TAW Bash Profile
# @author: Travis A. Wagner
# @website: http://travisawagner.com
# -- BASE --#
# Set default blocksize for ls, df, du
# http://hints.macworld.com/comment.php?mode=view&cid=24491
export BLOCKSIZE=1k