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/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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 | |
#curl -O https://gist.githubusercontent.com/jpswade/d82392d62bd25b43c6ce/raw/59a7e9c990ba9979f0967de049aea23f76e2bb2d/xphpunit /usr/local/bin/phpunitx && chmod 755 /usr/local/bin/phpunitx | |
# a wrapper around phpunit with xdebug enabled for eclipse | |
# make sure the debug session is started in the debug client (eclipse, netbeans, choose one of the settings below) | |
# see component diagram on https://en.wikipedia.org/wiki/Xdebug | |
# export XDEBUG_CONFIG="idekey=ECLIPSE_DBGP" | |
export XDEBUG_CONFIG="idekey=netbeans-xdebug" | |
phpunit --colors $@ |
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 | |
/* | |
Description: The point-in-polygon algorithm allows you to check if a point is | |
inside a polygon or outside of it. | |
Author: Michaël Niessen (2009) | |
Website: http://AssemblySys.com | |
If you find this script useful, you can show your | |
appreciation by getting Michaël a cup of coffee ;) | |
PayPal: [email protected] |