Download http://www.cindori.org/software/trimenabler/
Enable trim. Buy pro version if you want.
Alternatively use these commands to achieve pro version features:
- Disable Sudden Motion Sensor
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>§ to ` for internal keyboard</name> | |
<identifier>private.swap_space_and_tab</identifier> | |
<autogen>__KeyToKey__ KeyCode::RawValue::0xa, KeyCode::RawValue::0x32</autogen> | |
</item> | |
</root> |
/* Lets not rely on paths in the database, they can be very wrong when moving between dev/stage/live environments */ | |
/* The following two variables are backward to my thinking, but hey, what ya gonna do? */ | |
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . ''); // This is NOT the 'wordpress admin area' home, but the site's home | |
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/SECRETDIRECTORY'); // This isn't the site's URL but the WordPress admin area URL | |
/* MySQL settings */ | |
switch($_SERVER['SERVER_NAME']){ | |
// Your local machine's settings | |
case 'mysite.local': | |
define('DB_NAME', 'dev_mysite'); |
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
#!/bin/sh | |
#Script for weekly cleanup of large log files and sleep images | |
#Place in /private/etc/periodic/weekly to run weekly | |
rm /Applications/MAMP/logs/php_error.log | |
echo PASS | sudo rm -rf /var/vm/sleepimage |
Download http://www.cindori.org/software/trimenabler/
Enable trim. Buy pro version if you want.
Alternatively use these commands to achieve pro version features:
#!/bin/sh | |
#Script for daily backup of music folder and music library | |
#Place in /private/etc/periodic/daily to run daily | |
rsync -avz --delete /Users/Mladen/Music/ /Volumes/Prostor/Music/ --log-file=/Users/Mladen/.user_logs/.music.log |
function wpr_maintenance_mode() { | |
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) { | |
wp_die('Please come back soon ♥'); | |
} | |
} | |
add_action('get_header', 'wpr_maintenance_mode'); |
{ | |
"auto_complete_commit_on_tab": false, | |
"auto_match_enabled": true, | |
"bold_folder_labels": true, | |
"caret_style": "blink", | |
"color_scheme": "Packages/Color Scheme - Default/Tomorrow-Night-Eighties.tmTheme", | |
"detect_indentation": false, | |
"draw_white_space": "all", | |
"flatland_square_tabs": true, | |
"font_face": "Menlo", |
#OSX specific | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
._* | |
.Spotlight-V100 | |
.Trashes | |
#PW specific | |
*.old |