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 | |
include './app/Mage.php'; | |
try { | |
Mage::app(); | |
// echo gethostname(); | |
echo $_SERVER["SERVER_ADDR"]; // local IP, for instances behind ELB | |
} Catch (Exception $e) { | |
header("HTTP/1.0 503 Service Unavailable"); | |
} |
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
############################# Filebeat ##################################### | |
filebeat: | |
prospectors: | |
- | |
paths: | |
- /var/log/httpd/access_log | |
fields: | |
logzio_codec: plain | |
token: LOGZIO-TOKEN | |
fields_under_root: true |
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://docs.docker.com/get-started/part2/#publish-the-image | |
https://hub.docker.com/r/alexcheng/magento/~/dockerfile/ | |
https://github.com/alexcheng1982/dockerfiles/blob/master/apache-php7/Dockerfile | |
-------------- | |
preparing windows 10 host drives to use with docker containers easily. | |
My directory structure: | |
# win10 host |
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
Developer Environment Setup - local | |
--------------------------------------------- | |
Pre-Requisite: | |
- windows 10 pro localhost workstation | |
- WSL installed (with Ubuntu) | |
- "Docker for Windows" installed | |
- Bitbucket account with SSH keys | |
------------ |
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 | |
# | |
# General docker cleanup. Handy if you've been ahcking and need the | |
# accumulated juk to be blown away. Use at your own risk. | |
# | |
# First, remove the non-running containers. | |
# docker rm $(docker ps -aq -f "status=exited") | |
TAINERS=`docker ps -aq -f "status=exited" -f "status=dead"` | |
if test x"$TAINERS" != x; then | |
echo -n 'Removing exited containers...' |
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 'abstract.php'; | |
class Mage_Shell_CheckImages extends Mage_Shell_Abstract | |
{ | |
const CATALOG_PRODUCT = '/catalog/product'; | |
const CACHE = '/cache/'; | |
const PLACEHOLDER = '/placeholder/'; |
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
wget -mpckE -rH --level=2 --convert-links -D[comma list of domains to include;example.org] \ | |
-P ./backup/ --user-agent="" -e robots=off --wait 2 \ | |
--restrict-file-names=ascii,windows \ | |
https://www.example.org/ |
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://gist.github.com/todgru/14768fb2d8a82ab3f436#gistcomment-2189155 | |
``` | |
sudo yum install -y gcc | |
wget http://download.redis.io/redis-stable.tar.gz && tar xvzf redis-stable.tar.gz | |
cd deps | |
make hiredis jemalloc linenoise lua geohash-int | |
cd .. | |
make install | |
sudo cp src/redis-cli /usr/bin/ |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"id": 4983, | |
"name": "Anaa Airport", | |
"latitude_deg": -173.526, | |
"longitude_deg": "-145.509.995", | |
"continent": "OC", | |
"iso_country": "PF", | |
"iso_region": "PF-U-A", | |
"municipality": "Anaa", |