Skip to content

Instantly share code, notes, and snippets.

# This file is specifically setup for use with the merb-auth plugin.
# This file should be used to setup and configure your authentication stack.
# It is not required and may safely be deleted.
#
# To change the parameter names for the password or login field you may set either of these two options
#
Merb::Plugins.config[:"merb-auth"][:login_param] = :username
# Merb::Plugins.config[:"merb-auth"][:password_param] = :my_password_field_name
begin
~ INSERT INTO `sessions` (`created_at`, `data`, `session_id`) VALUES ('2009-03-15T18:22:51+01:00', {"return_to["/"
flashC: Mash{', 'BAh7CiIJdXNlcmkGIhRjdXJyZW50X3Byb2plY3RvOgxQcm9qZWN0CTobQHJh%0AaXNlX29uX3NhdmVfZmFpbHVyZVQ6DEB2YWx1ZXN7CDoQZGVzY3JpcHRpb24i%0AADoHaWRpBjoKdGl0bGUiCVRlc3Q6EkBhc3NvY2lhdGlvbnN7BjoNbWVzc2Fn%0AZXNbC286DE1lc3NhZ2UIOwd7CzoPcHJvamVjdF9pZGkGOgxjb250ZW50Igl0%0AZXN0Ogx1c2VyX2lkaQY7CWkGOgltb3JlIgZ0OwoiCVRFdGU7C3sGOgxwcm9q%0AZWN0QAg6CUBuZXdGbzsNCDsHews7DmkGOw8iBnc7EGkGOwlpDTsRIgh3d3c7%0ACiIId3d3Owt7BjsSQAg7E0ZvOw0IOwd7CzsOaQY7DyIJVGVzdDsQaQY7CWkO%0AOxEwOwoiCVRlc3Q7C3sGOxJACDsTRm87DQg7B3sLOw5pBjsPIgA7EGkGOwlp%0ADzsRIgA7CiIJYXNkZDsLewY7EkAIOxNGbzsNCDsHews7DmkGOw8iADsQaQY7%0ACWkQOxEiBmQ7CiIKYXNkZGQ7C3sGOxJACDsTRm87DQg7B3sLOw5pBjsPIgA7%0AEGkGOwlpETsRIgA7CiIHcXE7C3sGOxJACDsTRjsTRiIeYXV0aGVudGljYXRp%0Ab25fc3RyYXRlZ2llczAiDnJldHVybl90bzAiCmZsYXNoQzoJTWFzaHsA--175a07d7dcba51b719365b44ae82db7c12d188d6')
merb : worker (port 4000) ~ Could not persist session to Merb::SequelSession: SQLite3::SQLExcep
# For details on Sequel migrations see
# http://sequel.rubyforge.org/
# http://sequel.rubyforge.org/rdoc/classes/Sequel/Database.html#M000607
class UserMigration < Sequel::Migration
def up
create_table :users do
primary_key :id
string :email, :null => false, :unique => true
~ CREATE TABLE `users` (`id` integer PRIMARY KEY AUTO_INCREMENT, `email` string UNIQUE NOT NULL, `username` string UNIQUE NOT NULL, `crypted_password` string(41) NOT NULL, `salt` string(41) NOT NULL, `created_at` datetime, `name` string)
~ ROLLBACK
rake aborted!
Mysql::Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'string UNIQUE NOT NULL, `username` string UNIQUE NOT NULL, `crypted_password` st' at line 1
after_create do
revision = WriteboardRevision.create(:content => self.content, :user_id => self.user_id, :writeboard_id => self.id)
self.update(:current_revision => revision.id)
end
--------------------
>> w = Writeboard.new
=> #<Writeboard @values={}>
>> w.title ="Title"
@all_items = []
@all_items.concat Message.all
@all_items.concat Writeboard.all
@items = {}
@all_items.each do |item|
t = item.created_at
date = Date.new(t.year, t.month, t.day)
if @items.has_key? date
@items[date] << item
else
[~/Projects/typify] # merb-gen model User
Loading init file from /Users/neaf/Projects/typify/config/init.rb
Loading /Users/neaf/Projects/typify/config/environments/development.rb
Generating with model generator:
Loading /Users/neaf/Projects/typify/config/environments/development.rb
[ADDED] spec/models/user_spec.rb
[CONFLICT] app/models/user.rb
1. skip
2. overwrite
3. render
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
#min_peers = 40
max_peers = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
#min_peers_seed = 10
# history
HISTFILE=~/.zsh_history
HISTSIZE=5000
SAVEHIST=1000
export LS_COLORS='no=00:fi=00:di=01;36:ln=01;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;35:*.pl=00;31:*.PL=00;31:*.pm=00;31:*.tt=00;31:*.js=00;31:*.rb=00;31:*.py=00;31:*.yml=00;31:*.sql=00;31:*.html=00;31:*.css=00;31:';
autoload -U colors && colors
PS1="%{${fg[blue]}%}[%{${fg[yellow]}%}%~%{${fg[blue]}%}] %{${fg[yellow]}%}#%{$reset_color%} "
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting Music Player Daemon"
# always start in paused state