Skip to content

Instantly share code, notes, and snippets.

@benbasson
benbasson / oracle_default_password_checker.sql
Last active July 15, 2020 13:51
Oracle default password checker script
DECLARE
TYPE t_table_of_vc30 IS TABLE OF VARCHAR2(30);
-- A bunch of obvious / default passwords, most of which are taken from
-- Pete Finnigan's list:
-- <http://www.petefinnigan.com/default/default_password_list.htm>
l_base_weak_passwords t_table_of_vc30 := t_table_of_vc30(
'dev'
, 'dev1'
@benbasson
benbasson / kramdown_monkeypatch.rb
Created April 21, 2014 14:28
Monkey patch for Kramdown to rewrite relative URLs to absolute URLs
require 'uri'
# Simple Monkey Patch to convert URLs from relative to absolute
# if the option to do so is enabled
class Kramdown::Parser::Kramdown
alias old_add_link add_link
def base_url_as_uri
@base_url_as_uri ||= URI.parse(@options[:base_url])