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 | |
// disable post revision | |
define('WP_POST_REVISIONS', false ); | |
// change filesystem method | |
define('FS_METHOD', 'direct'); | |
// disable edit themes and plugins | |
define('DISALLOW_FILE_EDIT',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
# remove www | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^meusite.com$ [NC] | |
RewriteRule ^(.*)$ http://meusite.com/$1 [L,R=301] | |
# add hotlinking | |
RewriteEngine On | |
#Replace ?mysite.com/ with your blog url | |
RewriteCond %{HTTP_REFERER} !^http://(.+.)?meusite.com/ [NC] | |
RewriteCond %{HTTP_REFERER} !^$ |
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
panCallback( | |
{ | |
countries: [ | |
{ | |
"EUA": { | |
"position": 1, | |
"summary": | |
{ | |
"gold": 9, | |
"silver": 15, |
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
var Loader = React.createClass({displayName: "Loader", | |
render: function () { | |
var load = { | |
txt: 'Aguarde, carregando informações...', | |
ajaxIcon: OPTIONS.ajaxLoaderIconSrc | |
}; | |
return ( | |
React.createElement("div", {className: "autostats-loader"}, | |
React.createElement("img", {src: load.ajaxIcon}), " ", React.createElement("span", {className: "footstats-font-bold"}, load.txt) | |
) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Notification API</title> | |
</head> | |
<body> | |
<script> | |
var Notify = (function (window, $) { | |
var app = { |
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
ffmpeg -i song.wav song.mp3 |
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
/* | |
0480 | |
*/ | |
@media only screen and (min-width : 320px) and (max-width : 660px){} | |
/* | |
0780 | |
*/ | |
@media only screen and (min-width : 661px) and (max-width : 860px) {} |
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
cd /usr/local/mysql/bin/ | |
./mysql -u root -p | |
> Enter password: [type old password invisibly] | |
use mysql; | |
update user set password=PASSWORD("NEW_PASSWORD_HERE") where User='root'; | |
flush privileges; | |
quit |
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
Show hidden characters
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : true, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
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
{ | |
"requireCurlyBraces": true, | |
"requireSpaceAfterKeywords": true, | |
"requireSpaceBeforeBlockStatements": true, | |
"requireParenthesesAroundIIFE": true, | |
"requireSpacesInConditionalExpression": true, | |
"requireSpacesInFunctionExpression": { | |
"beforeOpeningRoundBrace": true, | |
"beforeOpeningCurlyBrace": true | |
}, |