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
Panxoliña | |
Fervenza | |
Caxato | |
Burbulla | |
Luscofusco | |
Verxel | |
Berce | |
Xeito | |
Cuspir | |
Axóuxere |
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 | |
// Silex Style Controllers | |
class App extends \Slim\Slim | |
{ | |
public function mount($controller) | |
{ | |
if (! is_object($controller)) { | |
throw new \InvalidArgumentException('Controller must be an object.'); | |
} |
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
/* | |
Table name: documentos_facturas | |
Number field: numero | |
Sample data numbers: 1, 2, 3, 6, 9 | |
*/ | |
/* Find just the the first gap for invoice number - El número que correspondería al primer hueco */ | |
SELECT MIN(a.numero)+1 AS next_id | |
FROM documentos_facturas a |
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 | |
$to_cache = str_replace(array("</option>","</td>","</tr>","</th>","</dt>","</dd>","</li>","</body>","</html>"),"",$to_cache); | |
$to_cache = preg_replace('/(href|src|id|class|name|type|rel|sizes|lang|title|itemtype|itemprop)=(\"|\')([^\"\'\`=<>\s]+)(\"|\')/i', '$1=$3', $to_cache); |
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
0-mail.com | |
0815.ru | |
0clickemail.com | |
0wnd.net | |
0wnd.org | |
10minutemail.com | |
20minutemail.com | |
2prong.com | |
30minutemail.com | |
3d-painting.com |
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
#!/bin/bash | |
# CONFIG HERE | |
OE_USER="odoo" | |
OE_HOME="/opt/$OE_USER" | |
OE_HOME_EXT="/opt/$OE_USER/$OE_USER-server" | |
OE_VERSION="8.0" # 8.0, 7.0, saas-4, saas-5, "master" | |
OE_SUPERADMIN="superadminpassword" | |
OE_CONFIG="$OE_USER-server" | |
# /CONFIG HERE |
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 a loop with your database tables that creates commands like this, it will force the conversion automatically | |
ALTER TABLE `name` MODIFY COLUMN `title` VARCHAR(255) CHARACTER SET binary; | |
ALTER TABLE `name` MODIFY COLUMN `title` VARCHAR(255) CHARACTER SET utf8; |
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
# First create a dump of your MySQL database | |
mysqldump -u [user] -p database_name > database_name.sql | |
# Convert the data | |
iconv -f iso-8859-15 -t utf8 database_name.sql > database_name_iconv.sql | |
# Import the database | |
mysql -u [user] -p database_name < database_name_iconv.sql | |
# If you still have some specific characters that do not display |
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
setInterval(function () { | |
var change = {}; | |
$('#box span').each(function () { | |
var $this = $(this), | |
key = $this.css('background-color'); | |
if (!(key in change)) { | |
change[key] = { | |
'element': $this, |
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
<FilesMatch ".(ttf|otf|eot|woff)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> | |
</FilesMatch> |