- Motherboard : ASUS PRIME B450M-A
- CPU : AMD Ryzen 7 2700x
- GPU : EVGA AMD RADEON R9 380 Series
- Ram : DDR4 2133 MHz
Update packages
| # Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed. | |
| # We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies. | |
| # Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module | |
| # | |
| # Deployment structure | |
| # | |
| # SERVER: | |
| # /etc/init.d/nginx (1. nginx) | |
| # /home/app/public_html/app_production/current (Capistrano directory) | |
| # |
| import debounce from "lodash/debounce" | |
| let localStorageAvailable = () => { | |
| let test = 'test'; | |
| try { | |
| localStorage.setItem(test, test); | |
| localStorage.removeItem(test); | |
| return true; | |
| } catch(e) { | |
| return false; |
| require 'openssl' | |
| class String | |
| def encrypt(key) | |
| cipher = OpenSSL::Cipher.new('DES-EDE3-CBC').encrypt | |
| cipher.key = Digest::SHA1.hexdigest key | |
| s = cipher.update(self) + cipher.final | |
| s.unpack('H*')[0].upcase | |
| end |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
| 11 Fallacies of Distributed Computing | |
| 1. The network is reliable (Bill Joy, Tom Lyon) | |
| 2. Latency isn't a problem (Bill Joy, Tom Lyon) | |
| 3. Bandwidth isn't a problem (Bill Joy, Tom Lyon) | |
| 4. The network is secure (Bill Joy, Tom Lyon) | |
| 5. The topology won't change (Peter Deutsch) | |
| 6. The administrator will know what to do (Peter Deutsch) | |
| 7. Transport cost isn't a problem (Peter Deutsch) | |
| 8. The network is homogeneous (James Gosling) |
| module IdentificationComponent | |
| module Messages | |
| module Events | |
| class Identified | |
| include Messaging::Message | |
| attribute :source_id, String | |
| attribute :common_id, String | |
| end | |
| end |
Some useful Postgres configuration changes for a dev machine:
log_connections = on
log_disconnections = on
log_statement = 'all'
Optionally, set log timestamps to local time
log_timezone = 'US/Central' # Or whatever your timezone is
| # Insomnia Configuration | |
| ## Run the test query | |
| { | |
| shop { | |
| id | |
| name | |
| } | |
| } | |
| # Query Structure Examples |