Skip to content

Instantly share code, notes, and snippets.

View x0bandeira's full-sized avatar

Rafael Bandeira x0bandeira

View GitHub Profile
O que você pode dar para o Bandeira, e vencer no céu por isso...
________________________________________________________________
function menu_order_filter($menu) {
//
// reorder the menu here by operating on $menu
// which is an array with position => 'url';
// separators will appear as
function menu_order_filter($menu) {
//
// reorder the menu here by operating on $menu
// which is an array with position => 'url';
// separators will appear as
// 'separator1', 'separator2' ... 'separator-last'
//
// example:
// Array
// (
function menu_order_filter($menu) {
$dev_menu = array('plugins.php', 'tools.php', 'themes.php');
array_splice($menu, 1, 0, $dev_menu);
return array_unique($menu);
}
add_filter('custom_menu_order', create_function('', 'return true;'));
add_filter('menu_order', 'menu_order_filter');
use Rack::ContentLength
run lambda { |env|
[200, {'Content-Type'=>'text/html'}, ::File.open("index.html", "r")]
}
$ grep "string_to_search_in_files" "folder/to/search" -R
$ sudo apt-get install ruby1.9.1-dev libsqlite3-ruby libsqlite3-dev
$ sudo gem install sqlite3-ruby
$ sudo gem install sqlite3-ruby
$ sudo apt-get install libsqlite3-dev
$ sudo apt-get install ruby1.9.1-dev