This file contains 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
desc 'Cria uns usuários, Títulos, Temporadas e Legendas fake pra facilitar...' | |
task :fake_stuff => :environment do | |
user = User.create!( | |
:username => 'Fidelix', | |
:email => '[email protected]', | |
:password => 'deserve2' | |
) | |
puts "Criado usuário" | |
title = Title.create!( | |
:name => 'Revolution', |
This file contains 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
desc 'Cria uns usuários, Títulos, Temporadas e Legendas fake pra facilitar...' | |
task :fake_stuff => :environment do | |
user = User.create!( | |
:username => 'Fidelix', | |
:email => '[email protected]', | |
:password => 'deserve2' | |
) | |
puts "Criado usuário" | |
title = Title.create!( | |
:name => 'Revolution', |
This file contains 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
require 'file_size_validator' | |
class Subtitle < ActiveRecord::Base | |
belongs_to :title, :inverse_of => :subtitles | |
belongs_to :user, :inverse_of => :subtitles | |
belongs_to :season, :inverse_of => :subtitles | |
has_many :comments, dependent: :destroy, inverse_of: :subtitle | |
has_many :releases, dependent: :destroy, inverse_of: :subtitle | |
mount_uploader :sub_file, SubFileUploader | |
validates :sub_file, | |
:presence => true, |
This file contains 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 | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => 'meusite_live', | |
'username' => 'cliente', | |
'password' => 'xxxxx', | |
'host' => 'localhost', |
This file contains 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
[global] | |
workgroup = WORKGROUP | |
server string = %h server | |
dns proxy = no | |
log file = /var/log/samba/log.%m | |
max log size = 1000 | |
syslog = 0 | |
panic action = /usr/share/samba/panic-action %d | |
security = share | |
encrypt passwords = true |
This file contains 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
[global_config] | |
title_transmit_bg_color = "#000000" | |
title_inactive_bg_color = "#000000" | |
[keybindings] | |
hide_window = <Shift><Control>a | |
[profiles] | |
[[default]] | |
scrollbar_position = hidden | |
palette = "#000000:#cc0000:#4e9a06:#c4a000:#3465a4:#75507b:#06989a:#d3d7cf:#555753:#ef2929:#8ae234:#fce94f:#729fcf:#ad7fa8:#34e2e2:#eeeeec" | |
background_darkness = 0.769574944072 |
This file contains 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 | |
//Recebe um array contendo os links e retorna um array contendo os codigos | |
function check_links ($links){ | |
foreach ($links as &$url){ | |
$host = parse_url($url); | |
$tld = $host['host']; | |
switch ($tld){ | |
case ($tld == "peeje.com" || "www.peeje.com" || "peejeshare.com" || "www.peejeshare.com"): | |
$plugin = 'peeje'; | |
break; |
NewerOlder