mount failing on /etc/NetworkManager/dispatcher.d/

I have a script that tries to mount a cifs share when the VPN is connected (after I’ve already logged in to the desktop – so kerberos ticket is issued). It’s in : /etc/NetworkManager/dispatcher.d/ #!/bin/bash INTERFACE=”$1″ STATUS=”$2″ if [ “$STATUS” = “up” ]; then if [ “$INTERFACE” = “vpn0” -o “$INTERFACE” = “cscotun0” ]; then…

Details

SSL client certificate authentication returns “21:unable to verify the first certificate”

I’m in the process of transferring some of my old-and-busted apache2 web servers to newer and more resilient nginx containers. On my old web server, I have an apache2 server that hosts secretbackdoor.example.com, which authenticates “users” (only me) using a signed certificate. The CA is setup in the following way: > ROOT CA (self-signed, obviously)…

Details

Nginx rewrite help needed – what’s wrong with this?

I had an nginx rewrite rule written, but when I implemented it, it didn’t work properly. Website 1: # “best” added // $rewrited_best_added “~/(?<rewrited_best_added>baby-food-makers|strollers)/$” “/best-$rewrited_best_added/”; in server block: if ($rewrited_request_uri != “”) { rewrite ^(.*)$ https://website2.com$rewrited_request_uri permanent; } The expected result is: https://website1.com/strollers/ goes to https://website2.com/best-strollers/ However, it instead goes to https://website2.com/best-$rewrited_best_added/ Can anyone tell…

Details

R Webscraping: How to feed URLS into a function

My end goal is to be able to take all 310 articles from this page and its following pages and run it through this function: library(tidyverse) library(rvest) library(stringr) library(purrr) library(lubridate) library(dplyr) scrape_docs <- function(URL){ doc <- read_html(URL) speaker <- html_nodes(doc, “.diet-title a”) %>% html_text() date <- html_nodes(doc, “.date-display-single”) %>% html_text() %>% mdy() title <- html_nodes(doc,…

Details

How *dynamically* change **EVERY** color iOS/Android? E.g. “colorAccent” in “Styles.xml”

I am adding color themes to a Xamarin Forms app. The theme is spec’ed to change dynamically depending on which client’s location the user is standing at/near. We have both “light” and “dark” themed clients, having a variety of color palettes; so it needs to be possible to change all colors of all display items.…

Details