This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install oh-my-zsh and the spaceship theme. | |
# This script is to be run by a provisioner as root. | |
# Change this to the appropriate user. | |
USER_NAME="vagrant" | |
ZSH_CUSTOM="/home/$USER_NAME/.oh-my-zsh/custom" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugins/system/helix3.php b/plugins/system/helix3.php | |
index ac6c71e..3ccf4b7 100644 | |
--- a/plugins/system/helix3.php | |
+++ b/plugins/system/helix3.php | |
@@ -179,7 +179,7 @@ class plgSystemHelix3 extends JPlugin | |
$query->select($db->quoteName(array('template'))); | |
$query->from($db->quoteName('#__template_styles')); | |
$query->where($db->quoteName('client_id') . ' = 0'); | |
- $query->where($db->quoteName('home') . ' = 1'); | |
+ $query->where($db->quoteName('home') . ' = ' . $db->quote(1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once(__DIR__ . '/vendor/autoload.php'); | |
$dotenv = new Dotenv\Dotenv(dirname(__FILE__)); | |
$dotenv->load(); | |
define('DB_NAME', getenv('DB_NAME')); | |
define('DB_USER', getenv('DB_USER')); | |
define('DB_PASS', getenv('DB_PASS')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias l='ls -lah' | |
alias ..='cd ..' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
XDEBUG_INI_PATH="/usr/local/etc/php/7.0/conf.d/ext-xdebug.ini" | |
function turn_off { | |
`sed -i '' 's/^zend_extension/#zend_extension/g' $XDEBUG_INI_PATH` | |
} | |
function turn_on { | |
`sed -i '' 's/^#zend_extension/zend_extension/g' $XDEBUG_INI_PATH` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script backs-up a MySQL or MariaDB database, compresses it and uploads it to Amazon S3. | |
# | |
# MySQL 5.6+: | |
# Use `mysql_config_editor` to store authentication credentials in an encrypted login path file named .mylogin.cnf. | |
# `mysql_config_editor set --login-path=local --host=localhost --user=USERNAME --password` | |
# | |
# MariaDB and MySQL <= 5.5: | |
# Uncomment the following variable declarations and add the appropriate database credentials. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"require": [ | |
"laravelbook/ardent": "dev-master" | |
], | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "laravelbook/ardent", | |
"version": "dev-master", | |
"source": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You may add here your | |
# server { | |
# ... | |
# } | |
# statements for each of your virtual hosts to this file | |
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# precise64 based | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
# location of the source directory for the project |