Skip to content

Instantly share code, notes, and snippets.

{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"arrowFunctions": false, // enable arrow functions
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"classes": false, // enable classes
"defaultParams": false, // enable default function parameters
"destructuring": false, // enable destructuring
@lilianchisca
lilianchisca / toggle-debug.php
Created January 13, 2016 18:04 — forked from trepmal/toggle-debug.php
WordPress experiment. Toggle debug from admin bar
<?php
/*
Plugin Name: Toggle Debug
Description: Proof-of-concept for an admin-bar debug mode toggle. Needs some UX love.
*/
/*
// In wp-config.php, wrap debug constants in a cookie conditional
if ( isset( $_COOKIE['wp-debug'] ) && $_COOKIE['wp-debug'] == 'on' ) {
define('WP_DEBUG', true);
}
@lilianchisca
lilianchisca / .gitignore
Created November 27, 2015 05:12 — forked from salcode/.gitignore
.gitignore file for WordPress - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@lilianchisca
lilianchisca / slack_watcher.scpt
Created November 9, 2015 01:49 — forked from benkuhn/slack_watcher.scpt
Pop up a notification prompting you to close Slack if it's open
tell application "System Events"
set activeApp to name of first process whose frontmost is true
end tell
if application "Slack" is running and activeApp is not equal to "Slack" then
tell application "Notifications Scripting"
# set show event handler results to true
set event handlers script path to (path to me)
display notification "Slack is running" message "Are you waiting on an @mention?" action button "No" other button "Yes"
@lilianchisca
lilianchisca / .bash_profile
Created November 1, 2015 03:46 — forked from sethta/.bash_profile
Command Line Deployment
# Git Aliases
alias gi='git init'
alias gs='git status'
alias ga='git add -A'
alias gc='git commit . -m'
alias gpull='git pull origin master'
alias gpush='git push origin master'
alias gt='git tag'
alias gtag='git push --tags'
// GF method: http://www.gravityhelp.com/documentation/gravity-forms/extending-gravity-forms/hooks/filters/gform_init_scripts_footer/
add_filter( 'gform_init_scripts_footer', '__return_true' );
// solution to move remaining JS from https://bjornjohansen.no/load-gravity-forms-js-in-footer
add_filter( 'gform_cdata_open', 'wrap_gform_cdata_open' );
function wrap_gform_cdata_open( $content = '' ) {
$content = 'document.addEventListener( "DOMContentLoaded", function() { ';
return $content;
}
add_filter( 'gform_cdata_close', 'wrap_gform_cdata_close' );

###SSH into a remote machine###

ssh user@mydomain.com
#or by ip address
ssh user@192.168.1.1

exit: exit ###Install Something###

#If it's a new server, update apt-get first thing

###Prerequesites

Install flightplan globally

npm install -g flightplan

Install flightplan in your project folder

Local Config Paths

hosts:

/private/etc/hosts

httpd.conf:

/Applications/MAMP/conf/apache/httpd.conf

Bracket Highlighter
Bower
CSScomb
Dotfiles Syntax Highlighting
FileDiffs
GitGutter
JsFormat
JSLint
Package Control
Prefixr