Skip to content

Instantly share code, notes, and snippets.

Hello <%= @user.first_name %>
You have requested to change your e-mail to this one. To confirm the change, go to:
<%= confirmation_url(:username => @user.username, :confirmation_code => @user.new_email_code)%>
user_id = mysql.query('select id from users where dumper = 0 limit 1 for update').first #Sets the user_id to 5 for example
mysql.query("update users set dumper = 1 where id = #{user_id}") #Updates the found user
When Load QPS Slow Se/In/Up/De% QCacheHit KCacheHit BpsIn BpsOut
Now 49.51 3.88 0 0/ 0/ 0/ 0 0.00% 100.00% 170.88 25.42k
Total 0.00 13.99 229 24/ 0/23/ 0 0.00% 100.00% 468.90 4.51k
Cmd ID State User Host DB Time Query
Query 48 Sending data root localhost userdump 18:03 select id from users where dumper = 0 limit 1 for update
Query 47 Sending data root localhost userdump 16:40 select id from users where dumper = 0 limit 1 for update
Query 44 Sending data root localhost userdump 14:27 select id from users where dumper = 0 limit 1 for update
Query 77 Sending data root localhost userdump 09:42 select id from users where dumper = 0 limit 1 for update
Query 65 Sending data root localhost userdump 09:37 select id from users where dumper = 0 limit 1 for update
Failure/Error: get :account_deleted
ActionController::RoutingError:
No route matches {:controller=>"users", :action=>"account_deleted"}
<?php
session_save_path(dirname(__FILE__) . '/tmp/');
$garbage_timeout = 3600 * 24 * 30; // 3600 seconds = 60 minutes = 1 hour
ini_set('session.gc_maxlifetime', $garbage_timeout);
session_set_cookie_params($garbage_timeout, '/', '.'.$domain);
session_start();
?>
Gems included by the bundle:
* actionmailer (3.1.3)
* actionpack (3.1.3)
* activemodel (3.1.3)
* activerecord (3.1.3)
* activeresource (3.1.3)
* activesupport (3.1.3)
* addressable (2.2.6)
* archive-tar-minitar (0.5.2)
* arel (2.2.1)
<script type="text/javascript">
var AdBrite_Title_Color = 'FFFF66';
var AdBrite_Text_Color = 'FFFFCC';
var AdBrite_Background_Color = '000000';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = 'FFFF66';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=2067425&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=2067425&afsid=1">
<script type="text/javascript">
var AdBrite_Title_Color = 'FFFF66';
var AdBrite_Text_Color = 'FFFFCC';
var AdBrite_Background_Color = '000000';
var AdBrite_Border_Color = 'CCCCCC';
var AdBrite_URL_Color = 'FFFF66';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=2067425&zs=3436385f3630&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=2067425&afsid=1">
Gems included by the bundle:
* actionmailer (3.2.1)
* actionpack (3.2.1)
* activemodel (3.2.1)
* activerecord (3.2.1)
* activeresource (3.2.1)
* activesupport (3.2.1)
* addressable (2.2.6)
* arel (3.0.0)
* builder (3.0.0)
* actionmailer (3.2.1)
* actionpack (3.2.1)
* activemodel (3.2.1)
* activerecord (3.2.1)
* activeresource (3.2.1)
* activesupport (3.2.1)
* addressable (2.2.6)
* arel (3.0.0)
* builder (3.0.0)
* bundler (1.0.21)