Graphite does two things:
- Store numeric time-series data
- Render graphs of this data on demand
What Graphite does not do is collect data for you, however there are some tools out there that know
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Graphite does two things:
What Graphite does not do is collect data for you, however there are some tools out there that know
#!/bin/sh | |
# | |
# update_check.sh | |
# | |
# check for new -stable code and update installed packages if nececcary. | |
# read http://www.openbsd.org/faq/faq15.html#PkgSig to self-sign your | |
# newly built packages. | |
# -- config |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
# Connect IO25 to DIN | |
import machine, neopixel, time | |
np = neopixel.NeoPixel(machine.Pin(25), 8) | |
for i in range(65): | |
np[(i + 7) % 8] = (0,0,0) | |
np[i % 8] = ((i * 4) % 64, (i * 8) % 64, (i * 16) % 64) | |
np.write() | |
time.sleep_ms(40) | |
When you are unable to login to the unifi controller or forgot admin password, you can restore access using SSH and manipulating mongodb directly.
Do not uninstall unifi controller - most of the data is not stored in mongodb. In case you thought a mongodb backup would be sufficient, you may have fucked up already, just like me. However I managed to write this "tutorial" for anyone to not run into the same trap.
Apparently this guide no longer works with recent unifi controller versions (starting nov/dec 2022). Since I no longer use unifi hardware in my home system, I can not update the guide myself. In case you've gotten here to recover your data, you're likely doomed. But giving it a try won't hurt anyway, therefore: good luck.
Run the following in powershell as admin
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Install a distro (ex: Ubuntu 18.04 LTS - https://www.microsoft.com/store/apps/9N9TNGVNDL3Q)
Open your distro you installed via the start menu, let it setup
Update and upgrade
sudo apt-get update
--- | |
- hosts: legacyservers | |
gather_facts: yes | |
become: yes | |
tasks: | |
# Use a block to perform tasks conditionally—only if running Ubuntu 18.04. | |
- block: |