Skip to content

Instantly share code, notes, and snippets.

David Neal davidsneal

Block or report user

Report or block davidsneal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davidsneal
davidsneal / update.sh
Last active Sep 20, 2016
Bash script for updating a laravel project - Run using ./update.sh
View update.sh
{
cd /project/root
git pull
composer install
php artisan migrate
gulp --production
chown www-data:www-data storage/ bootstrap/cache -R
php artisan queue:restart
}
View .editorconfig
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
View gist:d578d6f9ae023f04039e

The Laracasts PHPStorm theme - modified.

This is a slightly modified version of the great Laracasts PHPStorm theme. I've added some styles for Verions Control (add, modified, deleted line...) and fixed some missing things like warnings.

Download

image

Mac: Add to ~/Library/Preferences/WebIde80/colors

View gist:2ff58d4df8480ce18c5c
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script>
jQuery(document).ready(function($) {
jQuery('#share-buttons a').on('click', function(){
var width = 575,
height = 520,
left = (jQuery(window).width() - width) / 2,
top = (jQuery(window).height() - height) / 2,
opts = 'status=1' +
',width=' + width +
View html-share-buttons.html
<!-- I got these buttons from simplesharebuttons.com -->
<div id="share-buttons">
<!-- Buffer -->
<a href="https://bufferapp.com/add?url=https://simplesharebuttons.com&amp;text=Simple Share Buttons" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/buffer.png" alt="Buffer" />
</a>
<!-- Digg -->
<a href="http://www.digg.com/submit?url=https://simplesharebuttons.com" target="_blank">
View share-buttons.css
<style type="text/css">
#share-buttons img {
width: 35px;
padding: 5px;
border: 0;
box-shadow: 0;
display: inline;
}
You can’t perform that action at this time.