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
cd ~ | |
git clone https://github.com/OpenMage/magento-mirror.git | |
cd public_html | |
git init | |
curl https://raw.githubusercontent.com/github/gitignore/master/Magento.gitignore > .gitignore | |
git add --all | |
git commit -m 'backup' | |
cd ../magento-mirror | |
rsync -chavzP --exclude='./var/cache' --exclude='./.git' --exclude='./media/catalog/product/cache' --exclude='./var/tmp' --exclude='./var/session' --exclude='./var/report' --stats ./ ../public_html |
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
Show hidden characters
[ | |
{ | |
"keys": [ | |
"ctrl+b" | |
], | |
"command": "show_overlay", | |
"args": { | |
"overlay": "command_palette" | |
} | |
}, |
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 | |
/** | |
* Copy file or folder from source to destination, it can do | |
* recursive copy as well and is very smart | |
* It recursively creates the dest file or directory path if there weren't exists | |
* Situtaions : | |
* - Src:/home/test/file.txt ,Dst:/home/test/b ,Result:/home/test/b -> If source was file copy file.txt name with b as name to destination | |
* - Src:/home/test/file.txt ,Dst:/home/test/b/ ,Result:/home/test/b/file.txt -> If source was file Creates b directory if does not exsits and copy file.txt into it | |
* - Src:/home/test ,Dst:/home/ ,Result:/home/test/** -> If source was directory copy test directory and all of its content into dest | |
* - Src:/home/test/ ,Dst:/home/ ,Result:/home/**-> if source was direcotry copy its content to dest |
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
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2018-02-21 10:18:48" build="161206"> | |
<value name="StartType" type="hex" data="02"/> | |
<value name="CmdLine" type="string" data=""/> | |
<value name="StartTasksFile" type="string" data=""/> | |
<value name="StartTasksName" type="string" data="{Git SCM Bash}"/> | |
<value name="StartFarFolders" type="hex" data="00"/> | |
<value name="StartFarEditors" type="hex" data="00"/> |
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 g='cd /home/grunt/' | |
alias z='cd /vagrant/httpdocs/z/' | |
alias sync='browser-sync start --server --files "*.html,*.css" --config "/home/bs-config.js"' | |
alias hint='n98-magerun.phar --root-dir="/vagrant/httpdocs/mag/" dev:template-hints' | |
alias mt='sudo mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant' | |
alias h='cd ~/' | |
alias zshrc='nano ~/.zshrc' | |
alias src='source ~/.zshrc' | |
bindkey -s "^[OM" "^M" |
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 | |
####################### BEGIN CONFIG ####################### | |
csv_sheet_url='http://dev.com/example.csv' | |
csv_sheet_path='/home/dev/magmi.csv' | |
tmp_file_path='/home/dev/tmp_magmi.csv' | |
magmi_cli_path='/home/dev/magmi/cli/magmi.cli.php' | |
log_file='/home/dev/log.txt' | |
profile='Default' | |
######################## END CONFIG ######################## |
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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Mariana.tmTheme", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules" | |
], |
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<shortcut-set platform="win" file-version="4" application-version="8.0" build-number="370"> | |
<shortcut> | |
<action-id value="0x100 + 1" name="KBSCE File menu: New: :Document..."></action-id> | |
<context>DefaultContext</context> | |
<string>Ctrl+N</string> | |
</shortcut> | |
<shortcut> | |
<action-id value="0x100 + 3" name="KBSCE File menu:&Open..."></action-id> | |
<context>DefaultContext</context> |
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 | |
/** | |
* Convert a comma separated file into an associated array then spit out html string in variable. | |
* Useful for generating one-off html block fragrments. | |
* The first row should contain the array keys. | |
* | |
* Example: | |
* | |
* @param string $filename Path to the CSV file | |
* @param string $delimiter The separator used in the file |