Skip to content

Instantly share code, notes, and snippets.

View phallguy's full-sized avatar

Paul Alexander phallguy

View GitHub Profile
@phallguy
phallguy / session_cookie_debug.rb
Created November 15, 2021 16:25
Dump encrypted rails 6 session cookie
Layout/AlignHash:
Enabled: false
Layout/EmptyLineBetweenDefs:
Enabled: false
Layout/IndentationConsistency:
Enabled: false
@phallguy
phallguy / MD Toc.sublime-snippet
Created October 8, 2015 21:10
Snippet to add a TOC to Markdown in Sublime
<snippet>
<content><![CDATA[
<!-- MarkdownTOC autolink=true autoanchor=true -->
<!-- /MarkdownTOC -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>toc</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.markdown</scope>
### Keybase proof
I hereby claim:
* I am phallguy on github.
* I am phallguy (https://keybase.io/phallguy) on keybase.
* I have a public key whose fingerprint is 377C 5A37 0BC1 A98C 4348 EE32 A2D2 F810 218B D2A9
To claim this, I am signing this object:
@phallguy
phallguy / .pryrc
Created June 5, 2014 21:38
.pryrc for common aliases and shortcuts
# Save in ~/.pryrc
begin
require 'awesome_print'
rescue LoadError => err
puts "no awesome_print :("
end
begin