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
#!/bin/bash | |
OUTPUT_PATH='~/app/webroot/files/depoimentos/flv' | |
MOVIES_PATH='~/app/webroot/files/depoimentos/videos' | |
ORIGINAL_PATH='~/app/webroot/files/depoimentos/videos_originais' | |
cd $MOVIES_PATH | |
for filename in *.* | |
do | |
if [ -e $filename ]; then |
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
/* | |
Theme Name: | |
Theme URI: http:// | |
Description: | |
Author: | |
Author URI: http:// | |
Version: | |
Tags: | |
License: |
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
development: | |
adapter: mysql2 | |
encoding: utf8 | |
reconnect: false | |
database: your_database_name | |
pool: 5 | |
username: your_username | |
password: your_password | |
socket: /tmp/mysql.sock |
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
development: | |
adapter: sqlite3 | |
database: db/development.sqlite3 | |
pool: 5 | |
timeout: 5000 |
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
development: | |
adapter: postgresql | |
encoding: unicode | |
database: your_database_name | |
pool: 5 | |
username: your_username | |
password: your_password | |
# Connect on a TCP socket. Omitted by default since the client uses a | |
# domain socket that doesn't need configuration. Windows does not have |
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
#import "Kiwi.h" | |
#import "User.h" | |
SPEC_BEGIN(User) | |
describe(@"User", ^{ | |
context(@"User creation", ^{ | |
it(@"it should have a name", ^{ | |
User *user = [[User alloc] init]; | |
[user setName: @"Junio Vitorino"]; |
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
@interface Person : NSObject | |
+(BOOL) walking; | |
@end | |
@interface Philip : Person | |
+(BOOL) walking; | |
@end | |
@implementation Philip | |
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
# More info at https://github.com/guard/guard#readme | |
guard 'sass', :input => 'sass', :output => 'css', :style => :compressed, :no => :cache | |
guard :livereload do | |
watch %r{.+\.(php|html|css|js)$} | |
end | |
guard :concat, type: 'js', files: %w(), input_dir: 'js', output: 'js/app' |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?youralloweddomain.com [NC] | |
RewriteRule \.(jpeg|jpg|gif|pdf)$ - [NC,F,L] | |
</IfModule> |
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
// XSS HTTP Treatment | |
add_filter('init', 'xssTreatment'); | |
function xssTreatment() { | |
foreach(array($_GET, $_POST, $_REQUEST) as $httpConst) XSSSanitization( $httpConst ); | |
} | |
function XSSSanitization(&$param) { | |
if(!is_array( $param ) && is_string( $param ) ) $param = filter_var($param, FILTER_SANITIZE_STRING); |
OlderNewer