sudo vi /etc/pam.d/sudo
Add to the end BEGINNING of the file:
auth sufficient pam_tid.so
sudo vi /etc/pam.d/sudo
Add to the end BEGINNING of the file:
auth sufficient pam_tid.so
(This isn't specific to Wireshark)
sudo vi /etc/pam.d/sudo
Add to the end BEGINNING of the file:
auth sufficient pam_tid.so
Test with a trivial sudo command, and you should get a TouchID prompt:
# Use list view in all Finder windows by default | |
# Four-letter codes for the other view modes: `icnv`, `clmv`, `glyv` | |
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" | |
# Remove other views, which Finder remembered because of the .DS_Store files: | |
find ~ -name ".DS_Store" -delete 2>/dev/null | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
System Settings > | |
Trackpad > | |
Tracking speed: slightly slower (optional) | |
Click: Medium | |
Force Click and haptic feedback: off | |
Look up & data detectors: off | |
Tap to click: off | |
*THEN* | |
Secondary click: change "Click or Tap with Two Fingers" |
// YOU HAVE LOTS OF...OPTIONS WITH RUST'S BASE64 ECOSYSTEM. base64::decode() was deprecated Jan 2023 | |
// | |
// use base64; // let key = base64::decode(base64_key); // <=== classic method, but will throw Deprecation warnings | |
// use base64::prelude::*; // let key = BASE64_STANDARD.decode(base64_key)?; | |
// use data_encoding::BASE64; // let key = BASE64.decode( b"SGVsbA...gh=" ) // b prefix is required | |
// use base64::{Engine as _, alphabet, engine::{self, general_purpose}}; // let key = general_purpose::STANDARD.decode(...); | |
// use base64::{Engine as _, engine::{general_purpose}}; // let key = general_purpose::STANDARD.decode(...); | |
// use base64::{Engine as _, engine::general_purpose}; // let key = general_purpose::STANDARD.decode(...); | |
// use base64::{Engine as _, engine::{general_purpose::STANDARD as base64}}; // let key = base64.decode(...); // DANGER!! | |
// use base64::{Engine as _, engine::{general_purpose as BASE64}}; // let key = BASE64::STANDARD.decode(...); |
# Reproducible CentOS 9 Streams install steps for mongod v. 7.0.0 | |
# Cent 8 doesn't support g++-11.3 | |
# | |
# NOT MEANT AS A TRUE SCRIPT -- SOME INTERACTION IS REQUIRED FROM PROMPTS | |
# | |
# THIS IN NO WAY IS OFFICIAL, OR REPRESENTS MongoDB Inc. USE AT YOUR OWN RISK | |
# | |
# Get ami # for official CentOS 9 Stream from https://www.centos.org/download/aws-images/ |
# Reproducible Debian 11 install steps for mongod v. 7.0.0 (defaults to gcc/g++ v 12, not 11, which requires more steps) | |
# NOT MEANT AS A TRUE SCRIPT -- SOME INTERACTION IS REQUIRED FROM PROMPTS | |
# DO NOT DO run apt get autoremove !!! | |
# | |
# THIS IN NO WAY IS OFFICIAL, OR REPRESENTS MongoDB Inc. USE AT YOUR OWN RISK | |
# | |
# Get ami # for Debian 11 Bullseye, from: https://wiki.debian.org/Cloud/AmazonEC2Image/Bullseye | |
echo 'deb http://http.us.debian.org/debian/ testing non-free contrib main' | sudo tee -a /etc/apt/sources.list >/dev/null | |
sudo apt -y update |
The net.bindIp setting in MongoDB (see: https://www.mongodb.com/docs/manual/reference/configuration-options/#mongodb-setting-net.bindIp),
whether on the command line, e.g.: mongod --bind_ip x.x.x.x
or in the mongod.conf file, e.g.:
# network interfaces
net:
port: 27017
# bindIp: 127.0.0.1 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
bindIp: 172.31.11.200,127.0.0.1
from __future__ import division | |
import numpy as np | |
RADIUS_OF_EARTH_IN_KM = 6371.01 | |
def haversine(lat1, lon1, lat2, lon2): | |
""" | |
Utility to calcutlate distance between two pointtodo explain regarding height | |
coverting from geodisc co-ordinate to cartestian gives errors when distances are further apart |
[{ | |
"name": "Angela Merkel", | |
"dob": { | |
"$date": { | |
"$numberLong": "-487900800000" | |
} | |
}, | |
"phone": "+49 30 182722720", | |
"address": { | |
"street": "Willy-Brandt-Straße 1", |