Skip to content

Instantly share code, notes, and snippets.

View harrisonde's full-sized avatar

Harrison DeStefano harrisonde

View GitHub Profile
ssh_authorized_keys:
- github:harrisonde
hostname: k3os-master
run_cmd:
- "echo hi from run command"
boot_cmd:
- "echo hi from boot command"
init_cmd:
- "echo hi from init command"
k3os:
@harrisonde
harrisonde / forward-query-strings.js
Last active April 29, 2017 14:36
Append query to anchor
/**
* forward-query-strings.js
*
* Harrison DeStefano
* A utility to append query strings to a href value.
* December 05, 2016
*/
'use strict'
@harrisonde
harrisonde / gist:90431ed357cc93e12b51
Last active May 24, 2021 22:01
Deploy Laravel 5 applications on AWS Elastic Beanstalk
# The following script will deploy a Laravel 5 applicaion on AWS Elastic Beanstalk.
# Add to .ebextensions at the root of your application and name your commands file (e.g., commands.config)
# -------------------------------- Commands ------------------------------------
# Use "commands" key to execute commands on the EC2 instance. The commands are
# processed in alphabetical order by name, and they run before the application
# and web server are set up and the application version file is extracted.
# ------------------------------------------------------------------------------
commands:
01updateComposer:
@harrisonde
harrisonde / gist:79e10a16cb4198ba3eaf
Last active August 29, 2015 14:20
Laravel 5 and Elastic Beanstalk CLI (workflow)
# Configure EB env
$ eb init
# Build EB env
$ eb create
# If EB version of composer is out of date ... Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_composer_install.sh failed
# Check eb logs and confirm, the fix is manually run.
$ eb logs
$ eb ssh
ec2-user$ sudo php /opt/elasticbeanstalk/support/composer.phar self-update
$ exit
@harrisonde
harrisonde / gist:47066dac2f0df9e9eacf
Created May 4, 2015 13:06
Laravel 5 Update Script
# Laravel 5.0, update script
php artisan down
php artisan clear-compiled
composer update --no-dev
php artisan optimize
php artisan up
<style>
html,body { -moz-text-size-adjust: none; -ms-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none; }
@import url(https://fonts.googleapis.com/css?family=Merriweather:400,700,400italic,700italic|Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700|Droid+Serif:400,700,400italic,700italic);
@media (max-width: 660px) {
/* @media only screen and (max-device-width: 600px) { */
table.container1[style] { padding: 0; }
table.container1[style] { width: 100% !important; max-width: 600px; }