Skip to content

Instantly share code, notes, and snippets.

@leeyc0
leeyc0 / Test.java
Last active July 24, 2023 14:44
SPARK-44512
import java.io.IOException;
import java.util.List;
import java.util.function.Function;
import org.apache.hadoop.fs.FileSystem;
import org.apache.spark.api.java.function.MapFunction;
import org.apache.spark.sql.Encoders;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.SparkSession;
import scala.Tuple3;
@leeyc0
leeyc0 / certbot_dns_desec.patch
Created March 28, 2023 03:28
patch certbos-dns-desec to follow CNAME
--- dns_desec.py.orig 2023-03-28 01:02:32.038446830 +0000
+++ dns_desec.py 2023-03-28 01:04:20.900591910 +0000
@@ -4,6 +4,7 @@
import time
import requests
+import dns.resolver
from certbot import interfaces
try:
# needed for compatibility with older certbots, see #13
@leeyc0
leeyc0 / certbot_dns_ovh.py.patch
Last active March 27, 2023 13:43
patch certbot_dns_ovh to follow CNAME
--- certbot_dns_ovh/_internal/dns_ovh.py.orig 2023-03-27 12:48:43.913613478 +0000
+++ certbot_dns_ovh/_internal/dns_ovh.py 2023-03-27 13:20:36.651115194 +0000
@@ -7,6 +7,8 @@
from lexicon.providers import ovh
from requests import HTTPError
+import dns.resolver
+
from certbot import errors
from certbot.plugins import dns_common