- Install Cura 2.4
- Copy
anet_a8.def.json
to~/Library/Application Support/cura/3.4/definitions
- Open Cura
- Expand Custom, then select Anet A8
- Click Finish
This file contains 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
- 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 }}" |
This file contains 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
eufy: | |
image: bropat/eufy-security-ws | |
container_name: eufy | |
restart: unless-stopped | |
environment: | |
- USERNAME=email | |
- PASSWORD=pass | |
- COUNTRY=country | |
ports: | |
- 3000:3000 |
https://appletoolbox.com/how-to-fix-macos-mojave-battery-draining-issue/
$ pmset -g
System-wide power settings:
Currently in use:
lidwake 1
autopoweroff 1
This file contains 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
namespace :db do | |
require 'sequel' | |
Sequel.extension(:migration) | |
MIGRATIONS_PATH = 'db/migrations' | |
def db_conn_env | |
ENV["BOOKSHELF_DATABASE_URL"] | |
end |
This file contains 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
Lorem ipsum | |
Dolor sit amet | |
Vestibulum vitae | |
Morbi iaculis elit | |
Sed porta ante | |
Magna faucibus |
This file contains 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
Lorem | |
Ipsum | |
Lorem | |
Dolor | |
Vitae | |
Magna | |
Dolor | |
Lorem |
This file contains 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
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, |
This file contains 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
#!/bin/sh | |
for q in $(echo 'SMEMBERS "resque:queues"' | redis-cli | awk '{print $1}') | |
do | |
echo $q $(echo "LLEN \"resque:queue:$q\"" | redis-cli) | |
done | |
# in a single line; | |
# for q in $(echo "SMEMBERS \"resque:queues\"" | redis-cli | awk '{print $1}'); do echo $(echo "LLEN \"resque:queue:$q\"" | redis-cli); done | awk '{s+=$1} END {print s}' |
This file contains 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
#!/bin/bash | |
APP_DIR=/var/local/apps/app | |
RAILS_ENV=production | |
function step | |
{ | |
if [ "$step_count" = "" ]; then | |
step_count=0 | |
fi |
NewerOlder