- Homebrew on the Remote Mac (if not, just install it via SSH)
# ssh to the remote Mac machine, then:
brew install caskroom/cask/brew-cask
brew cask install teamviewer
//Install Macports or brew | |
//Install aircrack-ng | |
sudo port install aircrack-ng | |
//or | |
brew install aircrack-ng | |
//Install the latest Xcode, with the Command Line Tools | |
//Create the following symlink | |
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport |
# Must be root | |
# Credit: http://stackoverflow.com/questions/134906/how-do-i-list-all-cron-jobs-for-all-users | |
$ for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done |
Step 1 - Install | |
# yum remove sendmail | |
# yum install postfix | |
Make postfix as default MTA for your system using the following command | |
# alternatives --set mta /usr/sbin/postfix | |
If above command not work and you get the output as “/usr/sbin/postfix has not been configured as an alternative for mta“. Use below command to do the same else skip it | |
# alternatives --set mta /usr/sbin/sendmail.postfix |
# edit .htaccess way | |
<IfModule mod_rewrite.c> | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
</IfModule> | |
# edit .conf way (add into <VirtualHost *:80) | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{SERVER_NAME}$1 [R,L] |
<IfModule mod_deflate.c> | |
# compress text, html, javascript, css, xml: | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject | |
AddOutputFilterByType DEFLATE application/x-font | |
AddOutputFilterByType DEFLATE application/x-font-opentype | |
AddOutputFilterByType DEFLATE application/x-font-otf | |
AddOutputFilterByType DEFLATE application/x-font-truetype | |
AddOutputFilterByType DEFLATE application/x-font-ttf |
## This will be fixed by | |
find /var/www -type d -exec chmod 755 {} \; | |
find /var/www -type f -exec chmod 644 {} \; |
Tip, if you’e using @appcelerator #Titanium and getting: | |
“Unable to find any non-expired Ad Hoc or Enterprise Ad Hoc provisioning profiles that match the app id” | |
Check your ~/.titanium/config.json and ensure you haven’t set a default cert in the iOS section. |
# CentOS 6 | |
############################# | |
# Accept port 60006 | |
iptables -I INPUT -p tcp -m tcp --dport 60006 -j ACCEPT | |
# Save current rules | |
service iptables save | |
# Clear input chain | |
sudo iptables -F INPUT |
openssl x509 -inform DER -in certificate.cer -out certificate.crt | |
# if error, try this: | |
openssl x509 -inform PEM -in certificate.cer -out certificate.crt | |
# With nginx SSL setting, it only uses .key and .pem | |
# build this .pem file with .crt and then append .cer (SSL chain) into it | |
cat your_file.crt your_file.cer > your_file.pem |