-
abs(float)
- Returns the absolute value of a given float. Example:abs(1)
returns1
, andabs(-1)
would also return1
, whereasabs(-3.14)
would return3.14
. See also thesignum
function. -
basename(path)
- Returns the last element of a path. -
base64decode(string)
- Given a base64-encoded string, decodes it and returns the original string.
Taken from http://damsteen.nl/blog/how-to-use-a-serial-connection-to-your-netgear-readynas as it always seems to be down
It is possible to connect to the command-line interface of your Netgear ReadyNAS using a serial connection. I have seen a very old blog post on the internet describing how to connect via serial to a Infrant ReadyNAS NV but it wasn't very clear how to connect to a Netgear ReadyNAS NVX Pioneer Edition, which I have. I guess I'm not the only one who wants to connect to their ReadyNAS, so I'm sharing my knowlegde here :)
The obvious advantages of a serial connection to your ReadyNAS is that you can experiment with network settings without the fear of rendering your NAS inaccessible. I believe it is also possible to recover the firmware in the event an update fails, although I haven't tried this myself.
Requirements
- Service Registration:
- Host, port number, and sometimes authentication credentials, protocols, versions numbers, and/or environment details.
- Service Discovery:
- Ability for client application to query the central registry to learn of service location.
- Consistent and durable general-purpose K/V store across distributed system.
- Some solutions support this better than others.
- Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
- Centralized locking can be based on this K/V store.
Configuring Nginx to serve SSL content is straight forward, once you have your certificate and key ready:
server {
listen 443 default ssl;
root /path/to/source;
server_name mydomain;
ssl_certificate /path/to/cert;
ssl_certificate_key /path/to/key;
function aws_config | |
if not fgrep -q "[$argv]" ~/.aws/credentials | |
echo "Please specify a valid profile." | |
else | |
set token_expired false | |
if test $AWS_SESSION_EXPIRY | |
set now (date +%s) | |
# WARNING: this date command only works with GNU date |
The following instructions outlines how to flash the firmware on a QMK Proton C controller for use in a SpaceCat Launch Pad.
{ | |
"author": "David Gillies", | |
"documentation": "", | |
"keyboard": "kbdfans/kbd67/mkii_soldered", | |
"keymap": "davewongillies", | |
"layers": [ | |
[ | |
"KC_GRV", | |
"KC_1", | |
"KC_2", |
from redis.sentinel import Sentinel | |
sentinel = Sentinel([ | |
('redis-sentinel1', 26379), | |
('redis-sentinel2', 26379), | |
('redis-sentinel3', 26379), | |
], socket_timeout=0.1) | |
redis_host = sentinel.discover_master('sentry') | |
SENTRY_REDIS_OPTIONS = { | |
'hosts': { |