Skip to content

Instantly share code, notes, and snippets.

View kulas's full-sized avatar

Neil Kulas kulas

View GitHub Profile
@kulas
kulas / front-end-tools.md
Last active April 6, 2021 16:27
Install and Maintain Front-End Tools with Homebrew on OS X, also Git, Node, Gulp, and Bower

Install & Maintain Front-End Tools

All commands assume you are at the prompt. The prompt seperator “$” has been ommited.

Install Xcode Command Line Tools

Download Xcode from App Store. then open Xcode and select the following. As of Xcode 8.2 the Developer Tools are installed automatically.

Preferences > Downloads > Command Line Tools

@kulas
kulas / command-line-snippets.toml
Last active March 13, 2017 14:02
Command-line snippets for Pet
[[snippets]]
description = "ls"
command = "ls"
@kulas
kulas / npm-plugins.md
Created July 9, 2017 16:44
Install required npm plugins

npm install gulp jshint gulp-jshint gulp-sass gulp-concat gulp-uglify gulp-rename gulp-sourcemaps browser-sync node-bourbon node-neat —save-dev

CMOA 2016

This project contains WordPress themes and a set of plugins for the Carnegie Museum of Art. The themes are based on the Sage starter theme.

Theme Development Requirements

Theme development requires node, Bower, Gulp, and WordPress premium plugins Advanced Custom Fields and WP Migrate DB Pro. These plugins and their license keys must be installed independently.

Local Development Requirements

This project also requires Docker. In this instance Docker, along with the provided Docker containers, will simplify local WordPress theme development by including the essential software for running this system on your local machine. This software includes Nginx, PHP, WordPress Core, and WP CLI.

@kulas
kulas / Chrome Kiosk
Last active September 12, 2018 17:34 — forked from dankeezer/kiosk
AppleScript + directions to auto-launch Chrome in full-screen at startup.
# I'd just give you the .app but you need to change the code to the correct URL.
## Create the kiosk App
# Using Script Editor app create a script called “kiosk”
# Here’s the code
'''
do shell script "open '/Applications/Google Chrome.app' http://phhhoto.com/d/websterhall/5/2"
# Cheat Sheet: Docker
Lists running containers
$ docker ps
Shows what images are available?
$ docker images
Shows ?
$ docker network ls
Git Cheat Sheets
==============
https://devbookhelp.herokuapp.com/git
Git Clone
==============
git clone [repository] [local path]
git clone [repository] folder-name
git clone [repository] .
# If working directory is your desired destination, simply put a "."
Web Developer Tools - Chrome/Safari
Disable resource caching - See > Network > button in menu
Test Pixel Density
=====================
From the console:
> window.devicePixelRatio
# Return current device pixel density
VS Code
cmd + p
# Search within a project
cmd + r
# Search symbols in a file (like CSS selectors)
cmd + shift + p
Nano
ctrl + o = save Output
ctrl + k = cut current line
ctrl + u = paste or Uncut
ctrl + x = eXit
y = yes
n = no