This file contains hidden or 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
SET @@global.time_zone='+00:00'; | |
SET time_zone = "+00:00"; | |
SET @@session.time_zone = "+00:00"; |
This file contains hidden or 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
using System; | |
using System.Drawing; | |
using UIKit; | |
using Foundation; | |
using System.Collections.Generic; | |
namespace UIKit | |
{ | |
public enum MessageBoxResult | |
{ |
This file contains hidden or 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
To expose MySQL to anything other than localhost you will have to have the following line uncommented in /etc/mysql/my.cnf and assigned to your computers IP address and not loopback | |
#Replace xxx with your IP Address | |
bind-address = xxx.xxx.xxx.xxx | |
Or add a bind-address = 0.0.0.0 if you don't want to specify the IP | |
Then stop and restart MySQL with the new my.cnf entry. Once running go to the terminal and enter the following command. | |
lsof -i -P | grep :3306 | |
That should come back something like this with your actual IP in the xxx's |
This file contains hidden or 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
chmod g+s <directory> //set gid | |
setfacl -d -m g::rwx /<directory> //set group to rwx default | |
setfacl -d -m o::rx /<directory> //set other | |
Next we can verify: | |
getfacl /<directory> | |
Output: | |
# file: ../<directory>/ | |
# owner: <user> |
This file contains hidden or 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
sudo apt-get install git cmake g++ | |
sudo apt-get install libqt4-dev qtbase5-dev qttools5-dev qttools5-dev-tools qtquick1-5-dev qtscript5-dev libqt5xmlpatterns5-dev libqt5svg5-dev libqt5webkit5-dev | |
link: | |
https://musescore.org/en/developers-handbook/compilation/compile-instructions-ubuntu-14.10-git |
This file contains hidden or 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
sudo apt-add-repository ppa:mc3man/trusty-media | |
sudo apt-get update | |
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg |
This file contains hidden or 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
; Redirect worker stdout and stderr into main error log. If not set, stdout and | |
; stderr will be redirected to /dev/null according to FastCGI specs. | |
; Default Value: no | |
catch_workers_output = yes | |
log here: | |
sudo cat /var/log/upstart/php5-fpm.log |
This file contains hidden or 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
up vote | |
25 | |
down vote | |
accepted | |
After more research it seems like another (possibly better way) to answer this would be to setup the www folder like so. | |
sudo usermod -a -G developer user1 (add each user to developer group) | |
sudo chgrp -R developer /var/www/site.com/ so that developers can work in there | |
sudo chmod -R 2774 /var/www/site.com/ so that only developers can create/edit files (other/world can read) |
This file contains hidden or 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 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 | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
NewerOlder