Skip to content

Instantly share code, notes, and snippets.

@pandolfipedro
pandolfipedro / angular-countdown-timer-directive.markdown
Created August 20, 2021 16:57
Angular Countdown Timer Directive

Angular Countdown Timer Directive

An angular directive that starts a countdown timer to a date of doom... or just a birthday or release date or something.

A Pen by Gareth Weaver on CodePen.

License.

@pandolfipedro
pandolfipedro / printer.cfg
Last active October 18, 2022 12:22
Klipper, Ender 3, Skr mini e3 v3 - Printer config.
[mcu]
serial: /dev/ttyS5
restart_method: command
#overlays=uart5
#Display
#[display]
#lcd_type: emulated_st7920
#spi_software_miso_pin: PD8 # status led, Virtual MISO
#spi_software_mosi_pin: PD6
Method to update time every boot on orange pi and similar boards.
Get updated time and date from google using:
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Then now edit the /etc/rc.local file to update in every boot
sudo nano /etc/rc.local
sudo chmod +x /etc/rc.local