name | glyph | mac | other | description |
---|---|---|---|---|
curly single quotes | ‘ ’ | Option+] and Shift+Option+] | ALT-0145 and ALT-0146 | hover for description |
curly double quotes | “ ” | Option+[ and Shift+Option+[ | ALT-0147 and ALT-0148 | - |
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
<%= csrf_meta_tag %> | |
<script type="text/javascript"> | |
$(function() { | |
var csrf_token = $('meta[name="csrf-token"]').attr('content'); | |
$("body").bind("ajaxSend", function(elm, xhr, s){ | |
if (s.type == "POST") { | |
xhr.setRequestHeader('X-CSRF-Token', csrf_token); | |
} |
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
#!/usr/bin/env ruby | |
require 'benchmark' | |
REGEXPS = [ | |
/^no such file to load -- (.+)$/i, | |
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i, | |
/^Missing API definition file in (.+)$/i, | |
/^cannot load such file -- (.+)$/i, | |
] |
Combined test from freevps.us
wget freevps.us/downloads/bench.sh -O - -o /dev/null|bash
ioping . -c 10
ioping -RL /
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
it "should do something" do | |
@user = Factory(:user) | |
begin | |
@item.user = @user | |
@item.save | |
rescue Exception => e | |
binding.pry | |
raise e |
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
/* ::Scrollbar and browser elements styles */ | |
/* ------------------------------------------------------------ */ | |
::selection, ::-moz-selection { | |
background: $color_ruby_red; | |
color: #fff; | |
} | |
::-webkit-scrollbar { | |
-webkit-appearance: none; |
Common patterns used in Ruby on Rails applications could allow an attacker to generate SQL that, when combined with some database server's typecasting code, generates queries that match incorrect records.
Note: This is a code and best-practise advisory, there is no patch to
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
#!/usr/bin/env ruby | |
#------------------------------------------------------------------------------ | |
# Aggregate Print useful information from /proc/[pid]/smaps | |
# | |
# pss - Roughly the amount of memory that is "really" being used by the pid | |
# swap - Amount of swap this process is currently using | |
# | |
# Reference: | |
# http://www.mjmwired.net/kernel/Documentation/filesystems/proc.txt#361 |