For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
Discover gists
#!/bin/bash | |
WP_PATH="/path/to/wp" | |
for SITE_URL in $(wp site list --fields=url --archived=0 --deleted=0 --format=csv --path="$WP_PATH" | sed 1d) | |
do | |
/usr/bin/curl -L -s -o /dev/null "${SITE_URL}wp-cron.php" | |
done |
Under the dependencies section, put
<crate name>={git="ssh://git@github.com/<organization>/<reponame>.git"}
It is pretty similar to a github repo's ssh cloning link, however the :
is replaced with a /
and ssh://
is prepended to the URL.
git@github.com:my-organization/my-repo.git vs ssh://git@github.com/my-organization/my-repo.git
The SSH URL needs to be used because Cargo is currently unable to handle the authentication prompt that comes up when an HTTPS link is used.
Make sure that the matches the crate name in the target repo's Cargo.toml. The repo name will not override what is in the Cargo.toml if it is a different value.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.
I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
import requests | |
from requests.auth import HTTPBasicAuth | |
import re | |
from StringIO import StringIO | |
JIRA_URL = 'https://your-jira-url.tld/' | |
JIRA_ACCOUNT = ('jira-username', 'jira-password') | |
# the JIRA project ID (short) | |
JIRA_PROJECT = 'PRO' | |
GITLAB_URL = 'http://your-gitlab-url.tld/' |
#!/usr/bin/env python | |
import requests | |
import gitlab | |
from jira import JIRA | |
import urllib3 | |
import json | |
## Disable urllib3 ssl checks warnings | |
urllib3.disable_warnings( urllib3.exceptions.InsecureRequestWarning ) |
This is my config for using an SDM630 via MBMD with Home Assistant.
I did some slight adjustments for the general public, but you probably need to adjust some more things:
- Setup a proper MQTT user+pass and configure that in
mbmd.yaml
- Adjust the serial device name. I recommend the
by-id
variant over/dev/ttyUSBx
, especially if you have multiple devices (for me it's the RS485 interface and the Zigbee controller) - Maybe adjust the serial device config (baudrate and comset)
- My mbmd is reachable via
mbmd.server.lan
, you probably want to adjust that in thesdm630.yaml
What I recommend: