Skip to content

Instantly share code, notes, and snippets.

@bordeo
bordeo / envsettingstoolExport.sql
Created December 9, 2015 15:58
Env settings tool export csv
SELECT
"Est_Handler_Magento_CoreConfigData" AS handler,
scope AS param1,
scope_id AS param2,
path AS param3,
"" AS groups,
`value` AS `default`,
'' AS devbox,
'' AS deploy,
'' AS latest,
@bordeo
bordeo / brew_cask_update_all.sh
Created January 24, 2016 09:57
Update all cask in you Mac
brew cask list | xargs brew cask install --force
@bordeo
bordeo / composer_redeploy.sh
Created January 29, 2016 11:51
Trigger composer deploy of local module
composer run-script post-install-cmd -vvv -- --redeploy
jQuery.noConflict()
if Prototype.BrowserFeatures.ElementExtensions
disablePrototypeJS = (method, pluginsToDisable) ->
handler = (event) ->
event.target[method] = undefined
setTimeout ->
delete event.target[method]
return
Go to https://analytics.google.com
#Step1
-Create an account
-Create a property
-Create a view named "Global"
#Step2
Create a view named "site.com"
Go to filters and create new one with
find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;
find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
chown -R :www-data .
add
umask 002
to you dotfile. It let create new file and folder with group write permissions
php bin/magento setup:install \
--db-host='127.0.0.1' --db-name='project_mage' --db-user='root' --db-password='password' \
--base-url='http://www.project.loc' --language='en_US' --timezone='Europe/Rome' --currency='EUR' \
--admin-firstname='Alex' --admin-lastname='Bordin' \
--admin-email='[email protected]' --admin-user='admin' --admin-password='password' \
--cleanup-database --use-rewrites=1 \
--key='yourkey'
#!/bin/bash
BRANCH=$1
BRANCHSTG=$2
if [ -z $BRANCH ];
then
echo "You must specify branch"
echo "megeinstaging branch branch-staging"
exit 1
[
{ "keys": ["super+y"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+d"], "command": "duplicate_line" }, //-- Default is super+shift+D
{ "keys": ["super+`"], "command": "toggle_side_bar" },
{ "keys": ["super+shift+up"], "command": "swap_line_up" },
{ "keys": ["super+shift+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["alt+m"], "command": "markdown_preview", "args": {"target": "browser", "parser":"markdown"} },
{ "keys": ["super+down"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} },