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
#!/usr/bin/env bash | |
# commands or paths to executables | |
composer_exec="composer" | |
drush_exec="bin/drush.launcher --local --root=web/" | |
# get composer.json (required) | |
if [ ! -f composer.json ]; then | |
wget -q -nc https://gist.githubusercontent.com/dccampbell/2c9af0710efe131a0b06804f72c68364/raw/composer.json | |
fi |
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 | |
mkdir -pv ./.n98-magerun/modules/ && cd ./.n98-magerun/modules/ | |
git clone --depth=1 https://github.com/kalenjordan/magerun-addons && mv magerun-addons kj-magerun-addons | |
git clone --depth=1 https://github.com/peterjaap/magerun-addons && mv magerun-addons pj-magerun-addons | |
git clone --depth=1 https://github.com/creatuity/magerun-creatuity | |
git clone --depth=1 https://github.com/aoepeople/mpmd |
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 | |
set_time_limit(0); | |
ini_set('memory_limit', '2G'); | |
// Load Magento | |
require_once __DIR__.'/app/Mage.php'; | |
Mage::app(); | |
// Get Products | |
$cfgProducts = Mage::getModel('catalog/product')->getCollection() |
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 | |
/** | |
* Dynamic Wordpress Configuration File | |
* | |
* This config file is designed to be flexible for use in any environment without need for modification. | |
* It exposes most configurations to being set externally, such as via SetEnv in Apache/htaccess or PHP's putenv(). | |
* | |
* It will optionally load a /env.php file. If the file returns an array, the key/values will be loaded using putenv(). | |
* |
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
// https://www.facebook.com/ads/preferences/ | |
function loadAllAdvertisers() { | |
if(!document.querySelector('#interacted ._45ys')) { | |
document.querySelector('#interacted div[role=button]').click(); | |
} | |
window.interactedInterval = setInterval(function() { | |
var moreBtn = document.querySelector('#interacted ._45yr'); | |
if(moreBtn) { | |
document.querySelector('#interacted ._45yr').click(); |
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
#!/usr/bin/env bash | |
set -e -x | |
# Variables | |
INSTALL_DIR="/opt/firefox-dev" | |
TEMP_FILE="$HOME/Downloads/firefox-dev.tar.bz2" | |
MENU_FILE="$HOME/.local/share/applications/firefox-dev.desktop" | |
BIN_DIR="$HOME/bin" | |
# Prepare |
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 | |
set -e | |
git fetch --all --prune | |
localBranches=$(git branch --merged origin/master | sed 's/^[ *]\+//' | grep -v '^master$' || echo '') | |
if [[ -z "$localBranches" ]]; then | |
echo "No local merged branches found." |
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
#!/usr/bin/env bash | |
## Apache Setup | |
# Variables | |
BIN_DIR="/usr/local/bin" | |
# Install Apache | |
#sudo apt install -y apache2 | |
# Change Apache User/Group |
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
[core] | |
autocrlf = input | |
eol = lf | |
[push] | |
default = current | |
[pull] | |
ff = only | |
[merge] | |
ff = false | |
[diff] |
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
#!/usr/bin/env bash | |
# Ask for the administrator password upfront | |
sudo -v | |
# Install Homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" || exit 1 | |
# Configure Homebrew | |
brew doctor |