Skip to content

Instantly share code, notes, and snippets.

@pepperbob
pepperbob / certbot_pip_install-debian_ubuntu.md
Created December 7, 2024 20:38 — forked from bmatthewshea/certbot_pip_install-debian_ubuntu.md
Debian/Ubuntu - CERTBOT without SNAP/SNAPD

CERTBOT - Install using Python PIP

Install Certbot using Python PIP (Package Installer for Python) - without using SNAP, APT or SYSTEMD. (Debian/Ubuntu)


This guide will help you install LetsEncrypt / Certbot using venv PIP under Debian/Ubuntu.

  • This guide has been tested up to Debian 12 / Bookworm.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
div#qunit {
position: relative;
}
@pepperbob
pepperbob / diamond.js
Created November 7, 2020 21:58
diamonds #
const H = 13;
const P = (H - 1) / 2;
const idx = (curr) => (curr - Math.max(0, 2 * (curr - P)));
const r = [...Array(H).keys()]
.map(idx)
.map(i => {
// any shorter?
const line = [..." ".repeat(H)];
line[P-i] = "#";
line[P+i] = "#";
import static org.junit.Assert.*;
import java.util.Arrays;
import org.junit.Test;
import org.modelmapper.ModelMapper;
import org.modelmapper.PropertyMap;
public class ModelmapperTest {
@pepperbob
pepperbob / rdfbean-2-#56
Last active December 26, 2015 17:29
"Streaming approach": RDFHandler for Rio will flush the cached STMTs if a (currently hard coded) limit is reached.
diff --git a/rdfbean-virtuoso/pom.xml b/rdfbean-virtuoso/pom.xml
index b410b7d..5ad612e 100644
--- a/rdfbean-virtuoso/pom.xml
+++ b/rdfbean-virtuoso/pom.xml
@@ -23,6 +23,11 @@
<artifactId>rdfbean-core</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.mysema.rdf</groupId>
@pepperbob
pepperbob / rdfbean-#56
Created October 25, 2013 19:31
Patch for RDFBean issue #56
diff --git a/rdfbean-virtuoso/pom.xml b/rdfbean-virtuoso/pom.xml
index b410b7d..5ad612e 100644
--- a/rdfbean-virtuoso/pom.xml
+++ b/rdfbean-virtuoso/pom.xml
@@ -23,6 +23,11 @@
<artifactId>rdfbean-core</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>com.mysema.rdf</groupId>
@pepperbob
pepperbob / gist:7153974
Last active December 26, 2015 12:49
This solution uses Sesame-Rio to parse the RDF into single Statements.
private void loadRdfXml(InputStream is, UID context) {
try {
UID currentContext = context != null ? context : defaultGraph;
RDFParser rioParser = Rio.createParser(RDFFormat.RDFXML);
StatementCollector handler = new StatementCollector();
rioParser.setRDFHandler(handler);
rioParser.parse(is, currentContext.getId());