This file contains hidden or 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/python | |
| # imports | |
| import os, sys, os.path, pprint, tarfile | |
| from subprocess import call | |
| # vars | |
| tarfile_name = 'vendor.tar.gz' | |
| syncdir_source = 'vendor' | |
| syncdir_target = '/Path/To/App' |
This file contains hidden or 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
| # 1. Install fabric: sudo pip install fabric | |
| # 2. Use this file with the name of fabfile.py and place it in project root. | |
| # 3. Execute deploy: fab staging deploy | |
| from __future__ import with_statement | |
| from fabric.api import * | |
| from fabric.contrib.console import confirm | |
| env.key_filename = ["/path/to/ssh/key"] | |
| path = '' |
This file contains hidden or 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
| defaults write com.apple.finder AppleShowAllFiles -bool true | |
| killall Finder |
This file contains hidden or 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
| /* remove artifacts that show in chrome with animations */ | |
| -webkit-backface-visibility:hidden; |
This file contains hidden or 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
| { | |
| "auto_match_enabled": false, | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "folder_exclude_patterns": | |
| [ | |
| ".svn", | |
| ".git", | |
| ".hg", | |
| "CVS", | |
| ".idea" |
This file contains hidden or 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/python | |
| # imports | |
| from ftplib import FTP | |
| import os, sys, os.path, pprint, tarfile | |
| class siteBackup: | |
| #init vars | |
| listing = [] |
This file contains hidden or 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
| tar cvpzf ./test_backup.tar.gz --newer-mtime='-3 days' --exclude='.git' ./Sites/* |
This file contains hidden or 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
| if (!Modernizr.input.placeholder){ | |
| var val; | |
| $('input[type^="text"]') | |
| .addClass('placeholder') | |
| .each(function(){ | |
| val = $(this).attr('placeholder'); | |
| $(this).val(val); | |
| }); | |
| $('.placeholder') |
This file contains hidden or 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
| # debug object in controller | |
| render :text => params.inspect |
This file contains hidden or 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
| xdebug.remote_enable=1 | |
| xdebug.remote_autostart = 1 | |
| xdebug.idekey = PHPSTORM | |
| xdebug.remote_port = 9000 | |
| xdebug.var_display_max_data = 10240 | |
| xdebug.var_display_max_depth = 10 |