Visit my blog or connect with me on Twitter
git init
or
$ yum install memcached | |
// Configure Memcached | |
$ nano -w /etc/sysconfig/memcached | |
PORT="11211" | |
USER="memcached" | |
MAXCONN="1024" | |
CACHESIZE="512" | |
OPTIONS="" | |
server { | |
set $supercache_file ''; | |
set $supercache_uri $request_uri; | |
if ($request_method = POST) { | |
set $supercache_uri ''; | |
} | |
# Using pretty permalinks, so bypass the cache for any query string | |
if ($query_string) { |
// Add the following line to wp-config.php | |
define('FS_METHOD','direct'); | |
// Set wp-content permission | |
$ chmod -R 775 wp-content/ | |
$ chown -R nginx:nginx wp-content/ |
$ find . -name .svn -exec rm -rf {} \; |
server { | |
listen 80; | |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location = /robots.txt { | |
allow all; |
{ | |
"name": "my-app", | |
"version": "1.0.0", | |
"description": "My test app", | |
"main": "src/js/index.js", | |
"scripts": { | |
"jshint:dist": "jshint src/js/*.js'", | |
"jshint": "npm run jshint:dist", | |
"jscs": "jscs src/*.js", | |
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
Visit my blog or connect with me on Twitter
git init
or
// Nginx redirect non-www to www | |
server { | |
listen 80; | |
server_name domain.com; | |
rewrite ^/(.*)$ http://www.domain.com/$1 permanent; | |
} | |
server { | |
listen 80; | |
server_name www.domain.com; |
$ find . -type d -print0 | xargs -0 chmod 0775 | |
$ find . -type f -print0 | xargs -0 chmod 0664 |
Mini projects by Maxime Euzière (xem), subzey, Martin Kleppe (aemkei), Mathieu Henri (p01), Litterallylara, Tommy Hodgins (innovati), Veu(beke), Anders Kaare, Keith Clark, Addy Osmani, bburky, rlauck, cmoreau, maettig, thiemowmde, ilesinge, adlq, solinca, xen_the,...
(For more info and other projects, visit http://xem.github.io)
(Official Slack room: http://jsgolf.club / join us on http://register.jsgolf.club)