install redux redux thunk and react redux
npm install redux redux-thunk react-redux
| #!/bin/sh | |
| echo "\n\n\n\n\n\n\n\n\nFree RAM before clearing page caches" | |
| free -m | |
| echo "\n\nIt is safe to clear page caches in production, but not dentries or inodes. For example: 1 is safe, 2 and 3 are not safe." | |
| sync | |
| echo "\nFlushed FS buffers, clearing page caches" | |
| echo 1 > /proc/sys/vm/drop_caches |
| # https://facebook.github.io/react-native/docs/signed-apk-android.html | |
| keytool -genkey -v -keystore bvreactstore.keystore -alias bvreact -keyalg RSA -keysize 2048 -validity 20000 | |
| jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore bvreactstore.keystore bvreact-signed.apk bvreact | |
| zipalign -v 4 bvreact-signed.apk bvreact.apk |
| upstream teamchess3000 { | |
| server 127.0.0.1:3000; | |
| # server 127.0.0.1:4000; # Add another node | |
| ip_hash; | |
| } | |
| server { | |
| listen 80; | |
| location / { |
| <style type="text/css"> | |
| /****** EMAIL CLIENT BUG FIXES - BEST NOT TO CHANGE THESE ********/ | |
| .ExternalClass { | |
| width: 100%; | |
| } | |
| /* Forces Outlook.com to display emails at full width */ | |
| .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { line-height: 100%; } | |
| /* Forces Outlook.com to display normal line spacing, here is more on that: http://www.emailonacid.com/forum/viewthread/43/ */ | |
| <?php | |
| require 'phpmailer/class.phpmailer.php'; | |
| if(empty($_POST['email']) || empty($_POST['title']) || empty($_POST['first_name']) || empty($_POST['last_name'])) return; | |
| $mail = new PHPMailer; | |
| $mail->isSMTP(); // Set mailer to use SMTP | |
| // $mail->SMTPDebug = 2; |