#!/bin/bash
# brightness: Change all monitors brightness in software.
# by hackerb9, 2019,2021
# Examples: brightness 75; brightness -10; brightness +10
# Usage:
# brightess [n] [+n] [-n]
# n An integer from 0 to 100 specifies a brightness level.
# +n Increase brightness by n.
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
| <div style="background: white; text-align: center; padding-top: 1em; padding-bottom: 1em;"> | |
| <img src="{{qr_label}}" width="160" /> | |
| <div>{{qr_code}}</div> | |
| </div> |
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
| class User < ApplicationRecord | |
| has_many :posts | |
| accepts_nested_attributes_for :posts, allow_destroy: true | |
| has_one :profile | |
| accepts_nested_attributes_for :profile | |
| end | |
| # To create nested records through the parent: |
OlderNewer