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 remove --purge 'mysql*' | |
sudo rm -rf /etc/mysql /var/lib/mysql | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
sudo apt-get install mysql-server |
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
# In project build.gradle: | |
task copyDeps(type: Copy) { | |
from (configurations.compile) { | |
include "*.jar","*.aar" | |
include ".so", ".dll" | |
} | |
into rootProject.rootDir.getAbsolutePath()+"/lib" | |
} |
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
cd /path/to/your/folder; | |
sudo find ./ -name ".DS_Store" -depth -exec rm {} \; | |
sudo find ./ -name ".AppleDouble" -depth -exec rm -rf {} \; |
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
perl: warning: Setting locale failed. | |
perl: warning: Please check that your locale settings: | |
LANGUAGE = (unset), | |
LC_ALL = (unset), | |
LC_CTYPE = "UTF-8", | |
LANG = "en_US.UTF-8" | |
are supported and installed on your system. | |
perl: warning: Falling back to the standard locale ("C"). | |
locale: Cannot set LC_CTYPE to default locale: No such file or directory | |
locale: Cannot set LC_ALL to default locale: No such file or directory |
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
#import <CommonCrypto/CommonCrypto.h> |
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
wget http://download.newrelic.com/server_monitor/release/newrelic-sysmond-1.4.0.471-linux.tar.gz | |
tar zxvf newrelic-sysmond-1.4.0.471-linux.tar.gz | |
cd newrelic-sysmond-1.4.0.471-linux | |
cp daemon/nrsysmond.x64 /usr/sbin/nrsysmond | |
cp scripts/nrsysmond-config /usr/sbin | |
mkdir -p /etc/newrelic | |
mkdir -p /var/log/newrelic | |
cp nrsysmond.cfg /etc/newrelic/nrsysmond.cfg | |
/usr/sbin/nrsysmond-config --set license_key={YOURKEY} | |
cp scripts/newrelic-sysmond.init.debian /etc/init.d/newrelic |
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
apt-get install mysql-server mysql-client | |
apt-get install nginx | |
apt-get install php5-fpm | |
apt-get install php5-mysql php5-curl php5-gd php5-imagick php5-mcrypt php5-memcache |
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
ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so | |
ln -s /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/libpng.so |
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
# Install dependency libs of PHP5 | |
aptitude build-dep php5 | |
# Add this one | |
aptitude install libmcrypt-dev | |
./configure --prefix=/usr/local/php53 \ | |
--with-config-file-path=/etc/php53 \ | |
--with-config-file-scan-dir=/etc/php53/conf.d \ | |
--without-t1lib \ |
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 555 ./ -R | |
chmod 664 ./xml -R | |
chmod 664 ./config.xml | |
chmod 664 ./admin/config.xml | |
chmod 664 ./admin/data/users.xml | |
chmod 664 ./admin/xml/ -R | |
chmod 664 ./admin/_tmp/ -R | |
chmod 664 ./m/xml/ -R | |
chmod 664 ./m/template/ -R |
NewerOlder