Skip to content

Instantly share code, notes, and snippets.

@blischalk
blischalk / content_discovery_all.txt
Created January 31, 2021 00:25 — forked from jhaddix/content_discovery_all.txt
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
---
@blischalk
blischalk / why_monad.clj
Created December 18, 2015 20:43
Monad Gist
;; Lets say you have a tight rope walker Pierre and he carries a pole
;; As birds land on the pole on one side or the other it gets
;; hard for the tight rope walker to keep his balance
;; If there is more than a 4 bird difference between the left
;; and right side of the pole he will fall off the tightrope
(def pole [0 0])
(def threshold 4)
@blischalk
blischalk / gist:6045591
Created July 20, 2013 16:17
Trying to use a decorator with a form object but valid? only seems to return errors for outer level instance. What is the best way to accomplish decoration of FormObjects?
class MyDecorator
attr_accessor :age
validates_presence_of :age
def initialize(subject)
@subject = subject
end
def method_missing(name, *args)
@subject.send(name, *args)
@blischalk
blischalk / gist:2176777
Created March 24, 2012 00:39
form_for example
=form_for(@contacts, as: :contact, url: contact_delete_path, method: 'delete') do
- for contact in @contacts
%tr
%td= check_box_tag 'contact_ids[]', contact.id, false
%td= contact.email
%td= truncate contact.message, length: 150
%td= link_to 'Show', contact
%td= link_to 'Edit', edit_contact_path(contact)
%td= link_to 'Destroy', contact, :confirm => 'Are you sure?', :method => :delete
%tr