Now there's a node module to solve this: mysql-wrapper
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
sudo mkdir -p /Library/Server/Mail/Data/spool | |
sudo /usr/sbin/postfix set-permissions | |
sudo /usr/sbin/postfix start |
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
system_profiler -detailLevel mini | grep "Model Identifier:" | |
sudo su - | |
kextstat | grep IOPlatformPluginFamily | |
cd /System/Library/Extensions/IOPlatformPluginFamily.kext/ | |
cd Contents/PlugIns/ACPI_SMC_PlatformPlugin.kext/ | |
cd Contents/Resources/ | |
ls | wc -l |
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
echo "/bin/rbash" >> /etc/shells | |
cp /bin/bash /bin/rbash | |
useradd -s /bin/rbash <ssh-user> | |
passwd <ssh-usr> | |
echo "export PATH=/home/<ssh-user>" > /home/<ssh-user>/.bash_profile |
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
upstream php-fpm { | |
server 127.0.0.1:9000; | |
} | |
server { | |
listen 80; | |
server_name <domain>; | |
root /<server-root>; |
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
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ | |
sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ |
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
#!/bin/bash | |
# Please run as root privilege | |
yum -y install libicu-devel curl-devel ncurses-devel libtool libxslt fop java-1.6.0-openjdk java-1.6.0-openjdk-devel unixODBC unixODBC-devel openssl-devel | |
# The rpm package on this site lacks of RSA V4 Signature, so we have to compile erlang from source code. | |
wget https://packages.erlang-solutions.com/erlang/esl-erlang-src/otp_src_R16B03-1.tar.gz | |
wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz |
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
a.js | |
var b = require('./b') | |
b.b; // undefined | |
exports.a = 1; | |
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
sudo launchctl stop com.apple.systemstatsd | |
sudo launchctl stop com.apple.systemstats.periodic | |
sudo launchctl stop com.apple.systemstats.analysis | |
mkdir /Users/Shared/oldsysstats | |
sudo mv /private/var/db/systemstats/* /Users/Shared/oldsysstats |
OlderNewer