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 | |
echo Form::open(); | |
echo Form::label('username', __('Username')); ?> | |
<p><?php echo Form::input('username', $input['username']); ?></p> | |
<?php if(isset($errors['username'])) echo "<p>{$errors['username']}</p>"; ?> | |
<?php echo Form::label('password', __('Password')); ?> | |
<p><?php echo Form::password('password', $input['password']); ?></p> | |
<?php if(isset($errors['password'])) echo "<p>{$errors['password']}</p>"; ?> |
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 | |
echo Form::open(); | |
echo Form::label('username', __('Username')); ?> | |
<p><?php echo Form::input('username', $input['username']); ?></p> | |
<?php if(isset($errors['username'])) echo "<p>{$errors['username']}</p>"; ?> | |
<?php echo Form::label('password', __('Password')); ?> | |
<p><?php echo Form::password('password', $input['password']); ?></p> | |
<?php if(isset($errors['password'])) echo "<p>{$errors['password']}</p>"; ?> |
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
server { | |
listen 80; | |
server_name media.filmybezlimitu.org; | |
access_log /var/log/nginx/media.filmy.access.log; | |
location / { | |
root /srv/filmy/app/webapp/media; | |
index index.html index.htm; | |
} |
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
server { | |
listen 80; | |
server_name media.filmybezlimitu.org; | |
access_log /var/log/nginx/media.filmy.access.log; | |
location / { | |
root /srv/filmy/app/webapp/media; | |
index index.html index.htm; | |
} |
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 | |
function copy_directory( $source, $destination ) { | |
if ( is_dir( $source ) ) { | |
@mkdir( $destination ); | |
$directory = dir( $source ); | |
while ( FALSE !== ( $readdirectory = $directory->read() ) ) { | |
if ( $readdirectory == '.' || $readdirectory == '..' ) { | |
continue; | |
} | |
$PathDir = $source . '/' . $readdirectory; |
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
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n | |
# Devise v1.4.6 polish translation by saepia based on @rogal111's translation | |
pl: | |
errors: | |
messages: | |
expired: "stracił ważność, wyślij zapytanie o nowy" | |
not_found: "nie znaleziono" | |
already_confirmed: "już został aktywowany, możesz się zalogować" | |
not_locked: "nie był zablokowany" |
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
<iframe src="http://ads.affbuzzads.com/smart_ad/display?ad_unit=1&ref=84125" width="728" height="90" frameborder="0" scrolling="no" allowtransparency="true"></iframe> |
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
from TorCtl import TorCtl | |
def newId(host, port, pass): | |
conn = TorCtl.connect(controlAddr=host, controlPort=port, passphrase=pass) | |
if conn: | |
TorCtl.Connection.send_signal(conn, "NEWNYM") | |
newId('localhost', '9051', 'pass') |
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
say "Create stub for '#{action_name = name.sub('rails_admin_', '')}' in gem '#{name}'. This may take a while" | |
run "rm -rf script/ config/ lib/tasks/" | |
run "rm -rf app/assets app/controllers app/helpers app/mailers app/models" | |
run "mkdir -p app/views/rails_admin/main" | |
inside "app/views/rails_admin/main" do | |
create_file "#{action_name}.html.haml", <<-END | |
%h2 Custom action loaded and active | |
%pre @abstract_model.inspect | |
%pre @object.inspect | |
END |
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
alert(document.cookie); |
OlderNewer