#!/bin/sh
cd /path/to/working-copy/ || exit
unset GIT_DIR
git pull
exec git-update-server-info
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
[General] | |
# warning, notify, info, verbose | |
loglevel = notify | |
[Proxy] | |
# http, https, socks5 | |
# SSLedge 代理推荐使用 TLS_RSA_WITH_AES_128_GCM_SHA256 Ciphers | |
Proxy = custom, 1.2.3.4, 443, rc4-md5, password, http://server/custom.module | |
[Rule] |
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
# 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 |
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-
.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]
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 | |
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); |