Skip to content

Instantly share code, notes, and snippets.

View noppolp's full-sized avatar

noppolp noppolp

View GitHub Profile
; 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
sudo apt-add-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg
@noppolp
noppolp / qt-ubuntu
Created May 28, 2015 06:52
QT on ubuntu compiler install
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
@noppolp
noppolp / cppappwithsharedlib
Last active August 29, 2015 14:22
Run c++ app with shared lib script
#!/bin/sh
export LD_LIBRARY_PATH=/home/deploy/olivdvr/lib:/home/deploy/olivdvr/lib/HCNetSDKCom:$LD_LIBRARY_PATH
exec /home/deploy/olivdvr/lib/OLIV_CaptureBox $*
# create link
# sudo ln -s /home/deploy/run_olivdvr /usr/local/bin
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>
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
@noppolp
noppolp / MessageBox.cs
Last active November 5, 2015 15:51 — forked from CH3COOH/MessageBox.cs
MessageBox.Show for Xamarin.iOS
using System;
using System.Drawing;
using UIKit;
using Foundation;
using System.Collections.Generic;
namespace UIKit
{
public enum MessageBoxResult
{
SET @@global.time_zone='+00:00';
SET time_zone = "+00:00";
SET @@session.time_zone = "+00:00";