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 | |
# Disclaimer - make backups, use at your own risk. | |
# | |
# Based on this comment: http://stackoverflow.com/a/13944924/843067 | |
# Views and stored procedures have to be done separately. | |
OLDDB="old_db_name" | |
NEWDB="new_db_name" | |
MYSQL="mysql -u root -pyour_password " |
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 | |
class FeatureContext extends MinkContext { | |
/** | |
* Take screenshot when step fails. Works only with Selenium2Driver. | |
* Screenshot is saved at [Date]/[Feature]/[Scenario]/[Step].jpg | |
* | |
* @AfterStep | |
*/ |
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
.backstretch:before { | |
content: ""; | |
width: 100%; | |
height: 100%; | |
background: url("/images/pattern.png"); | |
position: absolute; | |
} |
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
colorscheme:symfony | |
cs_re:yellow:"[^"\\]*(\\.[^"\\]*)*" | |
cs_re:cyan:^\[....-..-.. ..:..:..\] | |
cs_re:green:.*DEBUG.* | |
cs_re:red:^.*(WARNING|ERROR|CRITICAL).*$ | |
cs_re:blue:.*INFO.* |
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
sudo find / -name 'filename.file' -exec rm -i {} \; |
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
SELECT t.table_schema,t.table_name,engine | |
FROM information_schema.tables t INNER JOIN information_schema .columns c | |
on t.table_schema=c.table_schema and t.table_name=c.table_name | |
GROUP BY t.table_schema,t.table_name | |
HAVING sum(if(column_key in ('PRI','UNI'), 1,0)) =0; |
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
SELECT * FROM information_schema.processlist WHERE USER="system user"; |
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
VBoxManage modifyvm "vmname" --cpuidset 00000001 000306a9 00020800 80000201 178bfbff |
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
# cleaning up previous installations | |
sudo /etc/init.d/redis_6379 stop >> /dev/null | |
sudo update-rc.d -f redis_6379 remove >> /dev/null | |
sudo rm -rf /tmp/redis-src /etc/redis /var/redis /var/redis/6379 | |
sudo mkdir /etc/redis /var/redis /var/redis/6379 | |
# compiling from source (2.8.6 is the currently supported version in Amazon ElastiCache) | |
mkdir /tmp/redis-src && cd /tmp/redis-src | |
wget https://github.com/antirez/redis/archive/2.8.6.tar.gz --quiet | |
tar -xzvf 2.8.6.tar.gz >> /dev/null |
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
backend jsonp_varnish { | |
.host = "localhost"; | |
.port = "80"; | |
} | |
#------------- begin jsonp functionality -------------# | |
# How the jsonp_template_backend dispatches to the ESI generating code: | |
sub jsonp_throw_error_recv { | |
if (req.url == "/JSONP-ESI-TEMPLATE") { | |
error 760; |