Skip to content

Instantly share code, notes, and snippets.

@rsclarke
rsclarke / howto.md
Created August 4, 2018 08:17 — forked from vranystepan/howto.md
Getting Thumbnails / Previews of your RAW files in Fedora 28

Howto

Install these programms

sudo dnf install raw-thumbnailer
sudo dnf install ufraw

Try now if everything works, and your thumbnails show up. If not, try the following part.

@rsclarke
rsclarke / ecparam-no-ec2m.patch
Created July 12, 2018 09:44
Fix ec2param.c to build if OPENSSL_NO_EC2M is defined.
Index: ecparam.c
===================================================================
RCS file: /cvs/src/usr.bin/openssl/ecparam.c,v
retrieving revision 1.17
diff -u -p -r1.17 ecparam.c
--- ecparam.c 7 Feb 2018 05:47:55 -0000 1.17
+++ ecparam.c 6 Jul 2018 06:31:12 -0000
@@ -425,11 +425,14 @@ ecparam_main(int argc, char **argv)
if (!EC_GROUP_get_curve_GFp(group, ec_p, ec_a,
ec_b, NULL))
# See pkcs11.conf(5) to understand this file
# This is a module config for the 'included' p11-kit trust module
module: gnome-keyring-pkcs11.so
# This setting affects the order that trust policy and other information
# is looked up when going across various modules. Other trust policy modules
# need to specify the priority where they slot into things.
priority: 0
@rsclarke
rsclarke / starttls_response_error.diff
Created June 20, 2018 10:27
Error message should be that of the starttls response not the EHLO response.
diff --git a/src/engine/smtp/smtp-client-connection.vala b/src/engine/smtp/smtp-client-connection.vala
index 26074ab1..3e926796 100644
--- a/src/engine/smtp/smtp-client-connection.vala
+++ b/src/engine/smtp/smtp-client-connection.vala
@@ -253,7 +253,7 @@ public class Geary.Smtp.ClientConnection {
case Endpoint.AttemptStarttls.YES:
Response starttls_response = yield transaction_async(new Request(Command.STARTTLS));
if (!starttls_response.code.is_starttls_ready())
- throw new SmtpError.STARTTLS_FAILED("STARTTLS failed: %s", response.to_string());
+ throw new SmtpError.STARTTLS_FAILED("STARTTLS failed: %s", starttls_response.to_string());
@rsclarke
rsclarke / pkcs11-ids.sh
Created June 20, 2018 05:41
show pkcs11 ids in gnome-keyring
openvpn --show-pkcs11-ids /usr/lib64/pkcs11/gnome-keyring-pkcs11.so
@rsclarke
rsclarke / grab.sh
Created June 20, 2018 04:54
Grab the certificate from ProtonMail Bridge IMAP service
openssl s_client -connect 127.0.0.1:1143 -starttls imap < /dev/null 2>/dev/null | openssl x509 -outform pem

Keybase proof

I hereby claim:

  • I am rsclarke on github.
  • I am rsclarke (https://keybase.io/rsclarke) on keybase.
  • I have a public key ASDwM-5jSVCv8_ple8qVrH6CWqvI9RT62Col0PKUaBc_Vwo

To claim this, I am signing this object:

Section "ServerLayout"
Identifier "ArchLinux"
Screen 0 "Screen0"
EndSection
Section "Device"
Identifier "IntelCard"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Mobile 945GME Express Integrated Graphics Controller"
try let t1' = eval1 ctx pt t1 in
if (=) (typeof ctx pt t1') portT then t1'
else error fi "Expression does not give desired type"
with NoRuleApplies -> t1
def __parse(self):
"""Parse the configration file, [io]/[power]/[jobs]/[sensors] are optional"""
try:
for k,v in self.__config.items('io'):
self.iobind[k] = int(v)
for k,v in self.__config.items('power'):
self.pwrbind[k] = int(v)
for k,v in self.__config.items('jobs'):
self.jobs[k] = int(v)
for k,v in self.__config.items('sensors'):