gunzip < [backupfile.sql.gz] | mysql -u[username] -p[password] [database]
mysqldump -u[username] -p[password] --add-drop-database -B [database] --opt | gzip -9 > filename.sql.gz
find [directory] -type d -exec chmod 755 {} ;
find [directory] -type f -exec chmod 644 {} ;
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
# You may add here your | |
# server { | |
# ... | |
# } | |
# statements for each of your virtual hosts to this file | |
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls |
ffmpeg -acodec copy -vcodec copy -ss START -t LENGTH -i ORIGINALFILE OUTPUTFILE
avconv -c:v copy -c:a copy -ss START -t LENGTH -i ORIGINALFILE OUTPUTFILE
select pg_terminate_backend(pid) from pg_stat_activity where datname = [database name];
sudo chown -R www-data:www-data [directory]
sudo usermod -a -G www-data username
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 | |
/** | |
* ACF Layout | |
* @version 1.0 | November 12th 2013 | |
* @author Beau Charman | http://twitter.com/beaucharman | |
* @link https://gist.github.com/beaucharman/7181406 | |
* @license MIT license | |
* | |
* Logical layout automation for Advanced Custom Fields and it's Flexible Content Field add on. |
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
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
OlderNewer