Skip to content

Instantly share code, notes, and snippets.

@designhunger
designhunger / swarm.json
Created May 12, 2016 06:16
Including pod definitions. Swarms not starting e.g. "Invalid arguments provided."
{
"name": "magebox",
"components": {
"app": {
"pod": "children"
},
"app/php": {
"image": "registry.giantswarm.io/designhunger/magebox-magento:latest",
"ports": [9000],
"volumes": [
@designhunger
designhunger / swarm.json
Created May 12, 2016 06:18
Working example, but not sharing volumes between php and nginx.
{
"name": "magebox",
"components": {
"php": {
"image": "registry.giantswarm.io/designhunger/magebox-magento:latest",
"ports": [9000],
"volumes": [
{
"path": "/code",
"size": "2 GB"
@designhunger
designhunger / .gitignore
Created June 9, 2016 16:23
Magento 1.9 gitignore
.htaccess.sample
.idea/
errors/local.xml
errors/local.xml.sample
index.php.sample
LICENSE_AFL.txt
LICENSE.html
LICENSE.txt
LICENSE_EE*
/media/
@designhunger
designhunger / .htaccess
Created June 9, 2016 17:33
Magento 1.9 .htaccess
#########################################################################
################## Coding Basics Magento .htaccess File #################
# More Info: http://codingbasics.net/magento-htaccess-file-optimized-speed-security-seo/ #
#########################################################################
##### Block unwanted Crawler Bots that clog your server #####
RewriteCond %{HTTP_USER_AGENT} MJ12bot
RewriteRule .* - [F]
RewriteCond %{HTTP_USER_AGENT} 80legs [NC]
@designhunger
designhunger / wget_vbs
Created October 20, 2016 23:14 — forked from sckalath/wget_vbs
wget vbscript
echo strUrl = WScript.Arguments.Item(0) > wget.vbs
echo StrFile = WScript.Arguments.Item(1) >> wget.vbs
echo Const HTTPREQUEST_PROXYSETTING_DEFAULT = 0 >> wget.vbs
echo Const HTTPREQUEST_PROXYSETTING_PRECONFIG = 0 >> wget.vbs
echo Const HTTPREQUEST_PROXYSETTING_DIRECT = 1 >> wget.vbs
echo Const HTTPREQUEST_PROXYSETTING_PROXY = 2 >> wget.vbs
echo Dim http,varByteArray,strData,strBuffer,lngCounter,fs,ts >> wget.vbs
echo Err.Clear >> wget.vbs
echo Set http = Nothing >> wget.vbs
echo Set http = CreateObject("WinHttp.WinHttpRequest.5.1") >> wget.vbs