sudo nano /etc/postfix/main.cf
Add this to bottom of file
# Gmail SMTP
relayhost=[smtp.gmail.com]:587
smtp_tls_loglevel=1
smtp_tls_security_level=encrypt
smtp_sasl_auth_enable=yes
Fonts installed by this method will be accessible to all users of the system. | |
(1) Copy fonts to be installed in /usr/share/fonts ( create a subdirectory in the directory to store the .ttf files) | |
(2) Type: fc-cache -fv | |
Grab the barcode font here: | |
http://www.free-barcode-font.com/ |
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr | |
http://support.godaddy.com/help/article/3601/generating-a-certificate-signing-request-nginx | |
http://support.godaddy.com/help/article/4976/rekeying-an-ssl-certificate | |
# Be sure to remember to chain them! | |
cat gd_bundle-g2-g1.crt >> yourdomain.crt | |
# Move 'em | |
sudo mv yourdomain.crt /etc/ssl/certs/yourdomain.crt |
sudo nano /etc/postfix/main.cf
Add this to bottom of file
# Gmail SMTP
relayhost=[smtp.gmail.com]:587
smtp_tls_loglevel=1
smtp_tls_security_level=encrypt
smtp_sasl_auth_enable=yes
ffmpeg -i fifty-fifty_short.mp4 -b 5000k -acodec wmav2 -vcodec wmv2 -ar 44100 -ab 56000 -ac 2 -y fifty-fifty_short.wmv |
Using Mac's XML-RPC app | |
https://itunes.apple.com/us/app/xml-rpc-client/id424424203?mt=12 | |
Get your session key | |
Endpoint URI: https://www.yourstore.com/index.php/api/xmlrpc/ | |
Method: login | |
Params: 'username', 'password' | |
Using that session key, you can get a product's stock, for instance | |
Endpoint URI: https://www.yourstore.com/index.php/api/xmlrpc/ |
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04
UPDATED: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
NOTE: The default firewall setup uses ufw
, so we'll need OpenSSH, HTTP, HTTPS, 6379 (redis), and possibly something for our MySQL connection): https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
#!/usr/bin/env ruby | |
require 'rubygems' | |
@dir = ARGV[0] | |
@i = 0 | |
Dir.glob("#{@dir}/*.mp3").each do |mp3| | |
ogg = mp3.gsub('mp3', 'ogg') | |
system "ffmpeg -i \"#{mp3}\" -acodec libvorbis -ac 2 \"#{ogg}\"" | |
@i += 1 | |
end |
This pretty much works, straight up: https://gorails.com/setup/osx/10.11-el-capitan
I like binstubs, since we don't have gemsets in rbenv https://github.com/ianheggie/rbenv-binstubs
In each app's directory, just do this once:
$ bundle install --binstubs .bundle/bin
$ rbenv rehash
## Node | |
### OS X | |
brew install node | |
### Ubuntu | |
sudo apt-get install python-software-properties | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: delayed_job | |
# Required-Start: $all | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: | |
### END INIT INFO |