sudo apt-get install python-software-properties
sudo apt-get update
sudo apt-get install emacs24
Enjoy it
Remove existing files from the repository:
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch
Add the line
.DS_Store
to the file .gitignore, which can be found at the top level of your repository (or created if it isn't there already). Then
| <?php | |
| function convert_csv_string_to_array($csvstring) { | |
| $lines = explode(PHP_EOL, current($csvstring)); | |
| $array = array(); | |
| foreach ($lines as $key => $line) { | |
| if (substr(trim($line), -1) == ',') { | |
| $line = substr(trim($line), 0, -1); | |
| } | |
| if ($key == 0) { | |
| $head = str_getcsv($line); |
.htaccess Example for URL liks this
.htaccess
# apache rewrite rule
RewriteEngine On
RewriteCond $1 !^(index\.php|rewrite\.php)
RewriteRule ^guest/s/([^/])/(.)$ rewrite.php?site=$1&$2 [QSA]
To uninstall MySQL and completely remove it (including all databases) from your Mac do the following:
. Open a terminal window
. Use mysqldump to backup your databases to text files!
. Stop the database server
. sudo rm /usr/local/mysql
. sudo rm -rf /usr/local/mysql*
. sudo rm -rf /Library/StartupItems/MySQLCOM
. sudo rm -rf /Library/PreferencePanes/My*
. edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
| # This config file was created for myself (@janlay). You may want to add or remove some rules to make efficient use of the Internet. | |
| [General] | |
| # warning, notify, info, verbose | |
| loglevel = notify | |
| [Proxy] | |
| # http, https, socks5 | |
| Proxy = custom, 1.2.3.4, 443, rc4-md5, password, http://server/custom.module |