Skip to content

Instantly share code, notes, and snippets.

View kurttomlinson's full-sized avatar
🏆

Kurt Tomlinson kurttomlinson

🏆
View GitHub Profile
@kurttomlinson
kurttomlinson / jwtRS256.sh
Created March 27, 2019 14:06 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@kurttomlinson
kurttomlinson / Using-sublime-w-better-errors-gem-improved.md
Created November 16, 2013 18:42
Get the better_errors gem's error pages to link successfully to Sublime Text 2 on Windows. This is an improved version of Vaselinessa's solution at https://gist.github.com/Vaselinessa/5584662. This version was tested on Windows 8 with Sublime Text 2 version 2.0.2, Build 2221. This solution does not show the cmd window when opening Sublime Text 2…

You must do three things to get the better_errors gem's error pages to link successfully to Sublime Text 2 on Windows:

  1. set BetterErrors.editor
  2. build a batch file to reformat the path that better_errors supplies into a Windows file path
  3. make a registry key to handle the protocol 'subl'

Set BetterErrors.editor

In your rails projects initializes directory, add a single file (call it whatever you want; I called it better_errors.rb) whose contents is: