Skip to content

Instantly share code, notes, and snippets.

@mortonfox
mortonfox / pinentry-gpg.md
Created March 31, 2021 21:09
[Set up pinentry-mac for gpg] #gpg #git #signing #pinentry

Installing pinentry-mac

Install pinentry-mac:

brew install pinentry-mac

Add the following line to ~/.gnupg/gpg-agent-conf:

@mortonfox
mortonfox / qr80.md
Created September 5, 2020 00:09
[Parameters for printing 80 QR codes at http://munzee.esy.es/] #munzee #qrcode #printing

Parameters for printing 80 QR codes at http://munzee.esy.es/

Options:

  • QR code size: 23
  • QR code padding: 1.5
  • Paper Size: Letter
  • Show cut lines: Lines (no padding)

Colors:

  • Border color: Grey
@mortonfox
mortonfox / trivia_referral.md
Last active August 5, 2019 17:01
[Trivia App Referrals] #trivia #referral
Game Referral
HQ Trivia mortonfox
Tellie mortonfox
Swagbucks Live mortonfox
The Q mortonfox

Thanks in advance!

@mortonfox
mortonfox / browsernotepad.md
Last active March 1, 2019 00:59
[Temporary notepad in web browser] #browser #html

How to open a temporary notepad in the web browser

Enter one of the following in the browser's location bar:

data:text/html, <html contenteditable>
data:text/html, 
@mortonfox
mortonfox / webstar.md
Last active May 26, 2022 18:20
[How to access Webstar DPC2100R2 hidden pages] #cable #cablemodem

How to access Webstar DPC2100R2 hidden pages

If you have Time Warner Cable and perhaps other cable operators as well that use Webstar DPC 2100 modems, and you happen to have one of these modems, no doubt you've become frustrated when you go to check the modem log if troubleshooting a connection issue, only to be greeted with the web page that says that this feature is not enabled. You however can still get at the information you're looking for. I don't understand why these diagnostics pages have to be hidden from us, especially when other modems show us the info we want with no issues. But here are the steps to gain access to the other diagnostics pages on a webstar DPC2100 modem.

First, go to and change the access level from 1 to 2. Enter the password of W2402 and hit submit. You should then be able to access the signal and logs pages with no issues. I've however noticed that the access level after maybe about a minute or so reverts back to level 1, so if while browsing

@mortonfox
mortonfox / svnexec.sh
Created February 27, 2019 04:37
[Set executable bit on a script in Subversion] #svn
svn propset svn:executable ON somescript
@mortonfox
mortonfox / svnedit.txt
Created February 27, 2019 04:37
[Edit Subversion commit message] #svn
https://subversion.apache.org/faq.html#change-log-msg
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks
How do I change the log message for a revision after it's been committed?
Log messages are kept in the repository as properties attached to each revision. By default, the log message property (svn:log) cannot be edited once it is committed. That is because changes to revision properties (of which svn:log is one) cause the property's previous value to be permanently discarded, and Subversion tries to prevent you from doing this accidentally. However, there are a couple of ways to get Subversion to change a revision property.
The first way is for the repository administrator to enable revision property modifications. This is done by creating a hook called "pre-revprop-change" (see this section in the Subversion book for more details about how to do this). The "pre-revprop-change" hook has access to the old log message before it is changed, so it can preserve it i
@mortonfox
mortonfox / clean_macports.txt
Created February 27, 2019 04:32
[Clean up MacPorts] #macports
The suggestions you received cover what you're after:
port clean --all all
sudo port -f uninstall inactive
If you can't wait for the clean one to run in the background, there are a few commands you can run manually and faster.
Remove leftover build files (this is done automatically by default):
sudo rm -rf /opt/local/var/macports/build/*
Remove download files: