https://appletoolbox.com/how-to-fix-macos-mojave-battery-draining-issue/
$ pmset -g
System-wide power settings:
Currently in use:
lidwake 1
autopoweroff 1
- sensor: | |
name: Tuya Power Clamp | |
unique_id: tuya_power_clamp | |
command: "python3 /config/tuya.py device_id" | |
device_class: power | |
state_class: total_increasing | |
unit_of_measurement: Wh | |
scan_interval: 60 | |
value_template: "{{ value_json.EnergyConsumed | float(0) * 10 }}" |
eufy: | |
image: bropat/eufy-security-ws | |
container_name: eufy | |
restart: unless-stopped | |
environment: | |
- USERNAME=email | |
- PASSWORD=pass | |
- COUNTRY=country | |
ports: | |
- 3000:3000 |
Lorem ipsum | |
Dolor sit amet | |
Vestibulum vitae | |
Morbi iaculis elit | |
Sed porta ante | |
Magna faucibus |
Lorem | |
Ipsum | |
Lorem | |
Dolor | |
Vitae | |
Magna | |
Dolor | |
Lorem |
https://appletoolbox.com/how-to-fix-macos-mojave-battery-draining-issue/
$ pmset -g
System-wide power settings:
Currently in use:
lidwake 1
autopoweroff 1
latest version now at: http://github.com/tbuser/openscad-bitmap | |
module make_atari_bitmap(char, block_size, height, include_base) { | |
if (char == "0") { | |
make_bitmap([ | |
0,0,0,0,0,0,0,0, | |
0,0,1,1,1,1,0,0, | |
0,1,1,0,0,1,1,0, | |
0,1,1,0,1,1,1,0, | |
0,1,1,1,1,1,1,0, |
namespace :db do | |
require 'sequel' | |
Sequel.extension(:migration) | |
MIGRATIONS_PATH = 'db/migrations' | |
def db_conn_env | |
ENV["BOOKSHELF_DATABASE_URL"] | |
end |
# This is the configuration for libtsocks (transparent socks) | |
# Lines beginning with # and blank lines are ignored | |
# | |
# The basic idea is to specify: | |
# - Local subnets - Networks that can be accessed directly without | |
# assistance from a socks server | |
# - Paths - Paths are basically lists of networks and a socks server | |
# which can be used to reach these networks | |
# - Default server - A socks server which should be used to access | |
# networks for which no path is available |
# source: http://gistflow.com/posts/749-canceling-validations-in-activerecord | |
# declaration | |
def skipping_validation(methods, &block) | |
skipped_validations = methods.map do |method, kinds| | |
Array(kinds).map do |kind| | |
_validators[method].select { |v| v.kind == kind }.map do |validation| | |
_validate_callbacks.select { |c| c.filter == validation }.map do |callback| | |
_validate_callbacks.delete(callback) | |
end |