Skip to content

Instantly share code, notes, and snippets.

View tiagohillebrandt's full-sized avatar

Tiago Hillebrandt tiagohillebrandt

View GitHub Profile
@tiagohillebrandt
tiagohillebrandt / hp-fix.md
Last active November 15, 2024 21:29
Resolving HP Printer Certificate Expired Error on macOS

I'm sharing this solution because during my research all the recommended solutions would require me to have a Windows device to regenerate the certificate.

My printer was available on macOS's Printers, but when I tried to print it wouldn't work, and when I opened the printer queue a message saying that the certificate was expired was being displayed.

The printer used to work on the older macOS versions, however after the macOS 14 upgrade it stopped working.

This solution has been tested on macOS Sequoia 15.1.

Solution

@tiagohillebrandt
tiagohillebrandt / get_current_wp_version.sh
Created May 11, 2016 03:54
Determines the current WordPress version
#!/bin/bash
#
# Determines the current WordPress version
#
curl -s https://core.svn.wordpress.org/tags/ | grep "<li>" | egrep -o "[0-9]\.[0-9](\.[0-9]{1,})?" | sort | uniq -d | tail -n1
@tiagohillebrandt
tiagohillebrandt / get-wordpress-cookie.sh
Created October 23, 2015 14:10
Getting the WordPress cookie value via curl
@tiagohillebrandt
tiagohillebrandt / bottle-ssl.py
Created August 12, 2015 03:43
Python: SSL on python-bottle using python-cherrypy3
#!/usr/bin/env python
#
# Copyright 2015 Tiago Hillebrandt <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#