Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am qrwteyrutiyoup on github.
  • I am eu (https://keybase.io/eu) on keybase.
  • I have a public key whose fingerprint is F9CC 4B47 95F6 48A1 2030 F978 0687 50AD E6FA 5590

To claim this, I am signing this object:

commit e78ea05fe61a38a15212fbf4a4b13939676f93c0
Author: Sergio Correia <sergio.correia@openbossa.org>
Date: Mon Jun 24 09:51:06 2013 -0400
Return early if RenderObject is not a meter, in RenderThemeNix::paintMeter()
We return true if that's the case, like other ports do. This avoids a problem
with ASSERT_WITH_SECURITY_IMPLICATION FAILED: !object || object->isMeter() in
WebCore::toRenderMeter, as reported in Issue #15 on GitHub.
diff --git a/Source/WebCore/PlatformNix.cmake b/Source/WebCore/PlatformNix.cmake
index 1a8917f..aaefb06 100644
--- a/Source/WebCore/PlatformNix.cmake
+++ b/Source/WebCore/PlatformNix.cmake
@@ -206,6 +206,7 @@ list(APPEND WebCore_LIBRARIES
${ZLIB_LIBRARIES}
Platform
${HARFBUZZ_LIBRARIES}
+ ${HARFBUZZ_ICU_LIBRARIES}
)
diff --git a/Source/cmake/FindHarfBuzz.cmake b/Source/cmake/FindHarfBuzz.cmake
index f8ca605..6e77478 100644
--- a/Source/cmake/FindHarfBuzz.cmake
+++ b/Source/cmake/FindHarfBuzz.cmake
@@ -42,5 +42,14 @@ find_library(HARFBUZZ_LIBRARIES NAMES harfbuzz
HINTS ${PC_HARFBUZZ_LIBRARY_DIRS} ${PC_HARFBUZZ_LIBDIR}
)
+# HarfBuzz 0.9.18 split ICU support into a separate library harfbuzz-icu.
+if ("PC_HARFBUZZ_VERSION" VERSION_GREATER "0.9.17")

NGINX reverse proxy with SSL cert authentication

This is a short guide for those who want to set up a NGINX reverse proxy with SSL cert authentication. The basic idea is to create a private CA and emit certificates signed by it. Only browsers and/or devices with the certs signed by this CA will be granted access to resources behind the proxy.

There are a few examples of similar configurations on the web, but most use openssl directly. This gist uses EasyRSA to simplify the task of creating and mantaining a private CA and certs to be distributed to clients.

Install and configure EasyRSA

Clone easyrsa v3:

snippet template "Basic template" b
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[dutch]{babel}
\usepackage{amsmath, amssymb}
\begin{document}
diff --git a/src/gpsr/model/gpsr-packet.cc b/src/gpsr/model/gpsr-packet.cc
index c831adc..9a23148 100755
--- a/src/gpsr/model/gpsr-packet.cc
+++ b/src/gpsr/model/gpsr-packet.cc
@@ -282,7 +282,7 @@ operator<< (std::ostream & os, PositionHeader const & h)
bool
PositionHeader::operator== (PositionHeader const & o) const
{
- return (m_dstPosx == o.m_dstPosx && m_dstPosy == m_dstPosy && m_updated == o.m_updated && m_recPosx == o.m_recPosx && m_recPosy == o.m_recPosy && m_inRec == o.m_inRec && m_lastPosx == o.m_lastPosx && m_lastPosy == o.m_lastPosy);
+ return (m_dstPosx == o.m_dstPosx && m_dstPosy == o.m_dstPosy && m_updated == o.m_updated && m_recPosx == o.m_recPosx && m_recPosy == o.m_recPosy && m_inRec == o.m_inRec && m_lastPosx == o.m_lastPosx && m_lastPosy == o.m_lastPosy);

Keybase proof

I hereby claim:

  • I am qrwteyrutiyoup on github.
  • I am eu (https://keybase.io/eu) on keybase.
  • I have a public key ASD_e5lD3zlUAlFepl3ONZetY_W1Mpzcy0_kG1mbrJKFDgo

To claim this, I am signing this object:

#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
@qrwteyrutiyoup
qrwteyrutiyoup / strace.log
Created April 11, 2019 03:14
usbguard - issue 279 - strace
execve("./usbguard-daemon", ["./usbguard-daemon"], 0x7ffc44b94500 /* 17 vars */) = 0
brk(NULL) = 0x555969d46000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffeacd53d60) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=346311, ...}) = 0
mmap(NULL, 346311, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f355fcdd000
close(3) = 0
openat(AT_FDCWD, "/usr/lib/libreadline.so.8", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 `\1\0\0\0\0\0"..., 832) = 832