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
../Vendor/bin/cake i18n extract --exclude Test,Vendor --extract-core no --overwrite |
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
sudo apt-get install linux-source | |
sudo apt-get install linux-headers-generic | |
sudo apt-get install linux-image | |
sudo apt-get install nvidia-current | |
jockey-text -e xorg:nvidia_current | |
sudo reboot |
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
web1: | |
# App settings | |
name: raiox | |
shared_writable_dirs: | |
- raiox/tmp/logs | |
- raiox/tmp/cache | |
- raiox/tmp/sessions | |
- raiox/tmp/tests | |
# Apache settings |
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 | |
host='' | |
database='' | |
user='' | |
password='' | |
file_dir='' | |
echo 'Exporting MySQL data' | |
mysqldump \ |
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 | |
host='' | |
database='' | |
user='' | |
password='' | |
file_dir='' | |
echo 'Importing MySQL data' | |
mysql -h "$host" -u "$user" "-p$password" "$database" < $file_dir |
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
set PATH ~/bin $PATH | |
set PATH /usr/local/bin $PATH | |
#PHP 5.5 (brew install php55) | |
set PATH /usr/local/Cellar/php55/5.5.12/bin $PATH |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme", | |
"copy_with_empty_selection": false, | |
"ensure_newline_at_eof_on_save": true, | |
"font_options": "subpixel_antialias", | |
"font_size": 14, | |
"highlight_line": true, | |
"ignored_packages": | |
[ |
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
// FROM: http://www.mongodb.org/display/DOCS/Updating#Updating-update%28%29 | |
// | |
// db.collection.update( criteria, objNew, upsert, multi ) | |
// criteria - query which selects the record to update; | |
// objNew - updated object or $ operators (e.g., $inc) which manipulate the object | |
// upsert - if this should be an "upsert"; that is, if the record does not exist, insert it | |
// multi - if all documents matching criteria should be updated | |
// | |
// SQL VERSION: | |
// UPDATE myTable SET dateField = '2011-01-01' WHERE condField = 'condValue' |
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
#install pv: sudo apt-get install pv | |
pv <file>.sql.bz2 | bunzip2 -c | mysql --host <host> -u admin -p ingresse |
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 [ -f /etc/bash_completion ]; then | |
source /etc/bash_completion | |
fi | |
__has_parent_dir () { | |
# Utility function so we can test for things like .git/.hg without firing up a | |
# separate process | |
test -d "$1" && return 0; | |
current="." |
OlderNewer