- http://askubuntu.com/questions/28477/what-is-safe-to-exclude-for-a-full-system-backup
- https://wiki.archlinux.org/index.php/Full_system_backup_with_rsync
/dev/*
/lost+found
Backup: sudo tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/boot --one-file-system / | |
Restore: sudo tar -xvpzf /path/to/tar/file -C / --numeric-owner |
<?php | |
//Adding custom class to posts is easy with the post_class filter | |
add_filter('post_class', 'custom_content_class'); | |
function custom_content_class($classes) { | |
$classes[] = 'custom_class'; | |
return $classes; | |
} |
// JavaScript hasClass, addClass, removeClass | |
//source: http://www.avoid.org/?p=78 | |
function hasClass(el, name) { | |
return new RegExp('(\\s|^)'+name+'(\\s|$)').test(el.className); | |
} | |
function addClass(el, name) | |
{ | |
if (!hasClass(el, name)) { el.className += (el.className ? ' ' : '') +name; } |
// Load plugins | |
var gulp = require('gulp'), | |
plugins = require('gulp-load-plugins')({ camelize: true }), | |
lr = require('tiny-lr'), | |
server = lr(); | |
// Php files | |
gulp.task('php', function() { | |
return gulp.src('./**/*.php') | |
.pipe(plugins.livereload(server)); |
git remote add <remote_name> </path/to/existing/repo> | |
git fetch <remote_name> | |
git merge <remote_name>/master |
git pull | |
git push | |
git branch | |
git commit | |
git checkout | |
git status | |
git log |