sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot
| import React, { useState, useEffect, useCallback } from 'react' | |
| export const IDLE = 'IDLE' | |
| export const LOADING = 'LOADING' | |
| export const SUCCESS = 'SUCCESS' | |
| export const ERROR = 'ERROR' | |
| export function useAsyncData(fetchFn, deps) { | |
| const stableFetchFn = useCallback(fetchFn, deps) | |
| const [{ state, data, error }, setState] = useState({ state: IDLE }) |
| image: benphelps/docker-ruby-phantomjs:latest | |
| Testing: | |
| services: | |
| - postgres:latest | |
| variables: | |
| POSTGRES_DB: test | |
| POSTGRES_HOST: postgres | |
| POSTGRES_USER: testuser | |
| POSTGRES_PASS: testuser | |
| environment: test |
| POSTGRES_USER=phelps | |
| POSTGRES_PASS=phelps | |
| POSTGRES_HOST=localhost |
| module ApplicationHelper | |
| def retina_image_tag(default_name, options={}) | |
| retina_name = default_name.gsub(%r{\.\w+$}, '@2x\0') | |
| retina_image_tag(default_name, options.merge('data-interchange' => "[#{asset_path(retina_name)}, (retina)]")) | |
| end | |
| end |
| [Unit] | |
| Description=Puma Rails Server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=deploy | |
| WorkingDirectory=/home/deploy/app/current | |
| ExecStart=/home/deploy/.rbenv/bin/rbenv exec bundle exec puma -C /home/deploy/app/shared/config/puma.rb | |
| ExecStop=/home/deploy/.rbenv/bin/rbenv exec bundle exec pumactl -S /home/deploy/app/shared/tmp/pids/puma.state stop |
SSH into Root
$ ssh [email protected]
Change Root Password
| // | |
| // Top Bar Variables | |
| // | |
| $include-html-classes: true; | |
| $include-html-top-bar-classes: $include-html-classes; | |
| // Background color for the top bar | |
| $topbar-bg-color: $oil; | |
| $topbar-bg: $topbar-bg-color; |
| # a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes | |
| # NOTE: requires the faker or ffaker gem | |
| # sudo gem install faker - http://faker.rubyforge.org | |
| # OR | |
| # sudo gem install ffaker - http://github.com/EmmanuelOga/ffaker | |
| require 'faker' | |
| class Fakeout |
Some javascript magic to make this nifty little parallax hero.
A Pen by Dominic Magnifico on CodePen.