Skip to content

Instantly share code, notes, and snippets.

View masoninthesis's full-sized avatar

Mason Lawlor masoninthesis

View GitHub Profile
@masoninthesis
masoninthesis / Sticky-Navbar.markdown
Created November 17, 2014 00:14
A Pen by Mason L.
@masoninthesis
masoninthesis / Remote Server Setup Log
Last active March 17, 2016 10:19
Remote Server Setup Log
MasonsMBP:trellis masoninthesis$ ansible-playbook server.yml -vvvv -e env=staging
Using /Users/masoninthesis/Sites/snapfast-wp1.3/trellis/ansible.cfg as config file
Loaded callback default of type stdout, v2.0
3 plays in server.yml
PLAY [Ensure necessary variables are defined] **********************************
TASK [Ensure environment is defined] *******************************************
task path: /Users/masoninthesis/Sites/snapfast-wp1.3/trellis/variable-check.yml:8
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
@masoninthesis
masoninthesis / sshd_config
Created March 17, 2016 04:07
/etc/ssh/sshd_config
# $OpenBSD: sshd_config,v 1.89 2013/02/06 00:20:42 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
TASK [deploy : Clone project files] ********************************************
task path: /Users/masoninthesis/Sites/snapfast-wp1.3/trellis/roles/deploy/tasks/update.yml:24
<104.236.151.224> ESTABLISH SSH CONNECTION FOR USER: web
<104.236.151.224> SSH: EXEC ssh -C -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=web -o ConnectTimeout=10 -o ControlPath=/Users/masoninthesis/.ansible/cp/ansible-ssh-%h-%p-%r -tt 104.236.151.224 '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1458218150.04-8430754614611 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1458218150.04-8430754614611 )" )'
<104.236.151.224> PUT /var/folders/6c/cjsbs3l90fv_nw7d583znw_00000gn/T/tmp4w9q38 TO /home/web/.ansible/tmp/ansible-tmp-1458218150.04-8430754614611/git
<104.236.151.224> SSH: EXEC sftp -b - -C -vvv -o ForwardAgent=yes -o ControlMaster=auto -o Contro
Host 104.236.151.224
HostName 104.236.151.224
Port 22
User root
IdentityFile ~/.ssh/id_rsa
Host 104.236.151.224
ForwardAgent yes
@masoninthesis
masoninthesis / Trellis Error Log
Created March 18, 2016 21:52
Trellis Error Log
TASK [deploy : Clone project files] ********************************************
task path: /Users/masoninthesis/Sites/snapfast-wp1.3/trellis/roles/deploy/tasks/update.yml:24
<104.236.151.224> ESTABLISH SSH CONNECTION FOR USER: web
<104.236.151.224> SSH: EXEC ssh -C -vvv -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=web -o ConnectTimeout=10 -o ControlPath=/Users/masoninthesis/.ansible/cp/ansible-ssh-%h-%p-%r -tt 104.236.151.224 '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1458337491.73-184936400072365 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1458337491.73-184936400072365 )" )'
<104.236.151.224> PUT /var/folders/6c/cjsbs3l90fv_nw7d583znw_00000gn/T/tmpt9M9ig TO /home/web/.ansible/tmp/ansible-tmp-1458337491.73-184936400072365/git
<104.236.151.224> SSH: EXEC sftp -b - -C -vvv -o ForwardAgent=yes -o ControlMaster=auto -o
@masoninthesis
masoninthesis / Warning: A non-numeric value encountered 1
Created January 3, 2017 03:35
Warning: A non-numeric value encountered
Warning: A non-numeric value encountered in /srv/www/lypsonline.com/current/web/app/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on line 940
Call Stack
# Time Memory Function Location
1 0.0080 354240 {main}( ) .../index.php:0
2 0.0117 356192 require( '/srv/www/lypsonline.com/current/web/wp/wp-blog-header.php' ) .../index.php:5
3 1.0468 28439728 require_once( '/srv/www/lypsonline.com/current/web/wp/wp-includes/template-loader.php' ) .../wp-blog-header.php:19
4 1.0585 28551848 apply_filters( ) .../template-loader.php:73
5 1.0585 28552248 WP_Hook->apply_filters( ) .../plugin.php:203
6 1.0591 28553800 App\{closure}( ) .../class-wp-hook.php:298
7 1.0615 28555384 App\template( ) .../filters.php:57
@masoninthesis
masoninthesis / Warning: A non-numeric value encountered 2
Created January 3, 2017 03:37
Warning: A non-numeric value encountered 2
Warning: A non-numeric value encountered in /srv/www/lypsonline.com/current/web/app/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on line 940
Call Stack
# Time Memory Function Location
1 0.0080 354240 {main}( ) .../index.php:0
2 0.0117 356192 require( '/srv/www/lypsonline.com/current/web/wp/wp-blog-header.php' ) .../index.php:5
3 1.0468 28439728 require_once( '/srv/www/lypsonline.com/current/web/wp/wp-includes/template-loader.php' ) .../wp-blog-header.php:19
4 1.0585 28551848 apply_filters( ) .../template-loader.php:73
5 1.0585 28552248 WP_Hook->apply_filters( ) .../plugin.php:203
6 1.0591 28553800 App\{closure}( ) .../class-wp-hook.php:298
7 1.0615 28555384 App\template( ) .../filters.php:57
@masoninthesis
masoninthesis / Warning: A non-numeric value encountered 3
Created January 3, 2017 03:39
Warning: A non-numeric value encountered 3
Warning: A non-numeric value encountered in /srv/www/lypsonline.com/current/web/app/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on line 940 Call Stack #TimeMemoryFunctionLocation 10.0080354240{main}( ).../index.php:0 20.0117356192require( '/srv/www/lypsonline.com/current/web/wp/wp-blog-header.php' ).../index.php:5 31.046828439728require_once( '/srv/www/lypsonline.com/current/web/wp/wp-includes/template-loader.php' ).../wp-blog-header.php:19 41.058528551848apply_filters( ).../template-loader.php:73 51.058528552248WP_Hook->apply_filters( ).../plugin.php:203 61.059128553800App\{closure}( ).../class-wp-hook.php:298 71.061528555384App\template( ).../filters.php:57 81.061528555384Roots\Sage\Template\Blade->render( ).../helpers.php:57 91.069228740552Illuminate\View\View->render( ).../Blade.php:51 101.069228740552Illuminate\View\View->renderContents( ).../View.php:85 111.069228740664Illuminate\View\View->getContents( ).../View.php:120 121.069228741040Illuminate\View\Engines\PhpEngine->get( ).../Vie
@masoninthesis
masoninthesis / Output: php -i | grep -i ssl
Created March 1, 2017 04:08
Output: php -i | grep -i ssl
Configure Command => './configure' '--prefix=/usr/local/php5' '--with-apxs2=/usr/sbin/apxs' '--with-config-file-scan-dir=/usr/local/php5/php.d' '--with-libxml-dir=shared,/usr' '--with-openssl=/usr/local/php5' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-gd' '--with-ldap' '--with-xmlrpc' '--enable-exif' '--enable-soap' '--enable-wddx' '--enable-ftp' '--enable-sockets' '--with-bz2=/usr' '--enable-zip' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-mbstring' '--enable-bcmath' '--enable-calendar' '--with-mhash' '--enable-fpm' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--enable-pcntl' '--enable-dtrace' '--disable-phpdbg' '--enable-opcache' '--with-icu-dir=/usr/local/php5' '--with-xsl=shared,/usr/local/php5' '--with-imap=shared,../imap-2007f' '--with-kerberos=/usr' '--with-imap-ssl=/usr' '--with-gettext=/usr/local/php5' '--with-curl=shared,/usr/local/php5' '--with-png-dir=/usr/local/php5' '--with-jpeg-dir=/usr/local/php5' '--enable-gd-nativ