Skip to content

Instantly share code, notes, and snippets.

View koryteg's full-sized avatar
🏠
Working from home

Kory Tegman koryteg

🏠
Working from home
View GitHub Profile
@koryteg
koryteg / back it up.sh
Created November 13, 2013 00:38
command line backup reference
mySQL dump:
backup: #
mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
restore:#
mysql -u root -p[root_password] [database_name] < dumpfilename.sql
<script>
function myRegistryValidate(){
var formToValidate = $('Insert Magento Form ID');
var validator = new Validation(formToValidate);
if(validator.validate()) {
//Do Stuffs
}
}
</script>
@koryteg
koryteg / 0_reuse_code.js
Created November 12, 2013 17:36
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@koryteg
koryteg / virtualhost
Created October 30, 2013 21:01
apache/mamp local virtualhost settings
NameVirtualHost *
<VirtualHost *>
DocumentRoot "/Applications/MAMP/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot "/Applications/MAMP/htdocs/magento"
ServerName magento.dev