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
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(android-mode-sdk-dir "~/Library/android/android-sdk-linux_x86") | |
'(confirm-kill-emacs (quote y-or-n-p)) | |
'(cua-mode t nil (cua-base)) | |
'(ecb-options-version "2.40") |
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
gunzip < db_name.gz | mysql -u root -p db_name |
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
<?php | |
/** | |
* @file | |
* Allows posting statuses from Drupal to Facebook. | |
* | |
*/ | |
/** | |
* Implementation of hook_menu(). | |
*/ |
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
Unlike the PHP interpreter, the Python interpreter uses caching when executing files, so changes to a file will require the web server to be restarted. | |
Another problem is the basic concept – Apache starts child processes to handle the requests, and unfortunately every child process needs to load the whole Python interpreter even if it does not use it. | |
This makes the whole web server slower. Another problem is that, because mod_python is linked against a specific version of libpython, it is not possible to switch from an older version to a newer (e.g. 2.4 to 2.5) without recompiling mod_python. | |
mod_python is also bound to the Apache web server, so programs written for mod_python cannot easily run on other web servers. | |
These are the reasons why mod_python should be avoided when writing new programs. In some circumstances it still might be a good idea to use mod_python for deployment, but WSGI makes it possible to run WSGI programs under mod_python as well. |
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
<?php | |
if (isset($_SERVER['PANTHEON_ENVIRONMENT'])) { | |
// Tweak #1 | |
// Load database settings from PRESSFLOW_SETTINGS environment variable... | |
$pressflow_settings = json_decode($_SERVER['PRESSFLOW_SETTINGS'], TRUE); | |
$database_settings = $pressflow_settings['databases']['default']['default']; | |
$wp_upload_url = "/srv/bindings/" . $pressflow_settings['conf']['pantheon_binding'] . "/files"; | |
/** MySQL configs */ |
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
# Ignore paths that contain user-generated content. | |
/sites/*/files | |
/sites/*/private | |
/files/* | |
/cache | |
# ** Only works in OSs that support newer versions of fnmatch (Bash 4+) | |
/sites/default/**/files | |
/sites/default/**/private | |
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
## debug file test.php | |
<?php | |
echo 'Memory limit before = ' . ini_get('memory_limit') . "<br />"; | |
ini_set('memory_limit', '321M'); | |
echo 'Memory limit after = ' . ini_get('memory_limit'); |
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 /etc/init.d/php5-fpm restart | |
* Restarting PHP5 FastCGI Process Manager php5-fpm |
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
$ git log --pretty=oneline | |
3388257f9f8969393d5eba065b7afdd6bdda64c5 HotFixin' | |
bd4ddb9758b17561437cd4f4eb94c2202d9a425d Remove old redirect from testing empire | |
701d73e1d3d300961e5effb1ecbc5d1a38deaeb0 Adding Redis | |
4e94579a9aaa3bf90be5c8c7237c3fe36486ab58 Bue Editor | |
a5d975c5a96bb0ca3198162a1c6ac27fe501bedc Merge branch 'master' of https://github | |
26a70bc6df6c7c224bdf9691840acedbdb445ecc Ray said i should commit! | |
bbe775e4c21678fa8006dd6d7801a6feea8b0bfd Additional changes for plup and pluploa | |
9d7600fad757b044e456d05b687f43235216e40b Changes |
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
redis 50.56.88.48:10472> slowlog len | |
(integer) 64 | |
redis 50.56.88.48:10472> slowlog get 10 | |
1) 1) (integer) 14856 | |
2) (integer) 1369600627 | |
3) (integer) 15607 | |
4) 1) "KEYS" | |
2) "pantheon-rediscache_ctools:35:*" | |
2) 1) (integer) 14855 | |
2) (integer) 1369597346 |
OlderNewer