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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
<?php | |
error_reporting(E_ALL); | |
// BigDump ver. 0.35b from 2012-12-26 | |
// Staggered import of an large MySQL Dump (like phpMyAdmin 2.x Dump) | |
// Even through the webservers with hard runtime limit and those in safe mode | |
// Works fine with Internet Explorer 7.0 and Firefox 2.x | |
// Author: Alexey Ozerov (alexey at ozerov dot de) |
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
zip -r backup.zip $target -x "folder/to/exclude*" "another/folder/to/exclude*" |
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
//Get transient value. If it's expired it will return jolly sod all... | |
$teat = get_transient( 'cool_cache_name'); | |
//See what's in the variable | |
if($teat == ""){ | |
//Add the current time as a new transient, good value for testing. | |
//300 is equal to 5 minute - 60*60*12 is 12 hours | |
set_transient( 'cool_cache_name', date('G:i'), 300 ); | |
echo(date('G:i')); | |
}else{ |
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
sudo /Applications/MAMP/Library/bin/mysqldump -u root -p DATABASE > /SQL/backup.sql |
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
sudo /Applications/MAMP/Library/bin/mysql -u root -p DATABASE < /SQL/backup.sql |
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
//disable password nag | |
function stop_password_nag( $val ){ | |
return 0; | |
} | |
add_filter( 'get_user_option_default_password_nag' ,'stop_password_nag' , 10 ); |
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
@include font-face('Name', font-files( | |
"filename.woff", woff, | |
"filename.ttf", truetype, | |
"filename.svg", svg), | |
$weight:normal, | |
$style:normal); |
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
#!/bin/bash | |
#get folder name | |
echo "Enter the root folder name of Wordpress" | |
read name | |
#Get the database details from wp-config file | |
WPDBNAME=`cat ~/Sites/$name/wp-config.php | grep DB_NAME | cut -d \' -f 4` |
OlderNewer