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
| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
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
| #! /usr/bin/env ruby | |
| require 'thor' | |
| require 'octokit' | |
| require 'io/console' | |
| class Matomarukun < Thor | |
| desc "matomeru usage", "matomeru desc" | |
| def matomeru user_id | |
| print "please github password" |
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
| 1. Open a command prompt and navigate to /etc/nginx/ssl | |
| 2. issue "openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr" | |
| 3. Get your certificate - Go to your certificate authority and give them the CSR | |
| 4. copy your new crt to the /etc/nginx/ssl and give it read priveledges | |
| 5. reconfigure your nginx.conf, here is mine. The first part redirects 80 to 443, the second part listens to 443 and is optimized to return Ruby on Rails application requests using gzip and unicorn. |
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
| /* Based on | |
| * - EGM Mathematical Finance class by Enrique Garcia M. <egarcia@egm.co> | |
| * - A Guide to the PMT, FV, IPMT and PPMT Functions by Kevin (aka MWVisa1) | |
| */ | |
| var ExcelFormulas = { | |
| PVIF: function(rate, nper) { | |
| return Math.pow(1 + rate, nper); | |
| }, |