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
#append to your .bashrc | |
# followed by [source ~/.bashrc] to re-evaluate bash file. | |
clear_cache(){ | |
base="/var/www/" | |
cache="htdocs/app/tmp/cache/" | |
if [[ $PWD =~ $base([^/]+) ]] | |
then | |
find $base${BASH_REMATCH[1]}/$cache -type f ! -iname "*.log" -delete | |
fi |
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 | |
# usage: extract ZIP to a new folder (eg video5) | |
# run: sh ./publish.sh video5 <ENTER> | |
MINARGS=1 | |
ARGC=$# | |
if [ $ARGC -eq 0 ] ; then |
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
FBGallery({ | |
onShow: function(opt) { | |
// | |
}, | |
onClose: function(opt) { | |
$('#popup-upload_overlay, #popup-upload').remove(); | |
}, | |
onSelected: function(data) { | |
console.log(data) | |
} |
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 htdocs/app/Plugin/Export | |
> git co -b a-test-branch | |
> git push -u origin a-test-branch |
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 htdocs/app/Plugin/Export | |
> git co -b a-test-branch | |
> git push -u origin a-test-branch |
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 htdocs/app/Plugin/Export | |
> git co -b a-test-branch | |
> git push -u origin a-test-branch |
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
#create a test branch under github:export | |
> cd htdocs/app/Plugin/Export | |
> git co -b a-test-branch | |
> git push -u origin a-test-branch |
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
#create a test branch under github:export | |
> cd htdocs/app/Plugin/Export | |
> git co -b a-test-branch | |
> git push -u origin a-test-branch |
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
# create a test branch under github:export | |
# https://github.com/nodesagency/cakephp-export | |
> cd htdocs/app/Plugin/Export | |
> git co -b a-test-branch | |
> git push -u origin a-test-branch |
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
if (!window.console) { | |
window.console = {}; | |
var methods = ['log', 'debug', 'info', 'error'], count = methods.length; | |
while (count--) | |
window.console[methods[count]] = function () {}; | |
} |
OlderNewer