Skip to content

Instantly share code, notes, and snippets.

View alfhen's full-sized avatar

Alf alfhen

  • Copenhagen, Denmark
View GitHub Profile
@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:
@Xayer
Xayer / Jira Ticket Finder for your Pull Requests
Last active March 8, 2019 11:44
Finds Jira Ticket names in your commit messages, and adds them to a variable. copy to your javascript console, and watch magic happen.
var jiraDomain = 'https://jira.bonnier.dk/browse/';
var loadMore = document.querySelector('.ajax-pagination-btn');
var ticketNames = [];
var uniqueArray = function(arrArg) {
return arrArg.filter(function(elem, pos,arr) {
return arr.indexOf(elem) == pos;
});
};
if(loadMore !== null){