Quando você tenta instalar um novo tema direto pelo wordpress, ele pede suas credencias de FTP, mas como estamos trabalhando localmente, precisamos de algumas alterações para conseguir fazer isso.
Primeiro acresente essa linha ao arquivo wp-config.php
:
define('FS_METHOD','direct');
Depois, se ainda não deu permições para suas pastas, va até ao diretorio onde esta instalado o wordpress e execute esses comandos:
sudo chown -R _www wordpress_dir
sudo chmod -R g+w wordpress_dir
var onepageApp = angular.module('onepageApp', ['ngRoute']); | |
onepageApp.config(function($routeProvider) { | |
$routeProvider | |
.when('/', { | |
templateUrl : 'pages/home.html', | |
controller : 'mainController' | |
}) | |
.when('/about', { | |
templateUrl : 'pages/about.html', |
, mongoose = require('mongoose') | |
, dbURI = 'mongodb://localhost/boilerplate' | |
, db = mongoose.connection | |
; | |
mongoose.connect(dbURI); | |
// CONNECTION EVENTS | |
// Quando a conexão der certo | |
db.on('connected', function () { | |
console.log('Conexão mongoose aberta com ' + dbURI); | |
}); |
Conectado.
Conexão aberta.
Produto criado: { products:
{ __v: 0,
price: 100,
_id: 54d91be6ef55d769c45bc4f0,
created_at: Mon Feb 09 2015 18:43:18 GMT-0200 (BRST),
description: 'Gente boa',
name: 'Gravino' } }
POST /api/products 200 37.995 ms - 137
[ | |
{ "keys": ["option+c"], "command": "insert", "args": {"characters": "ç"} } | |
] |
var ws = new WebSocket('wss://api.blinktrade.com/trade/'); | |
ws.on('open', function() { | |
console.log('open connect'); | |
ws.send("channel or msg"); | |
}); | |
ws.on('message', function(message) { | |
console.log(message); |
sudo chown -R $username ~/.npm
##Set sleep time
sudo systemsetup -setcomputersleep 60
where 60 is te time in minutes
##Turn of sleep
sudo systemsetup -setcomputersleep Never
##Check current sleep status
sudo systemsetup -getcomputersleep
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
/* | |
* Automatic Caesar cipher breaker | |
* | |
* Copyright (c) 2014 Project Nayuki | |
* All rights reserved. Contact Nayuki for licensing. | |
* http://www.nayuki.io/page/automatic-caesar-cipher-breaker-javascript | |
*/ | |
"use strict"; |