Skip to content

Instantly share code, notes, and snippets.

Mateusz Dobek matDobek

Block or report user

Report or block matDobek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
matDobek / gist:77cee8acfa1c0b7e829e
Created Dec 3, 2015 — forked from trcarden/gist:3295935
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
View gist:77cee8acfa1c0b7e829e
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
View grep and replace
grep -rl "SEARCHED_PHRASE" spec/ | xargs sed -i "" "s/SEARCHED_PHRASE/REPLACE/g"
View JSON.pretty_generate'NAME', 'w') { |file| file.write(JSON.pretty_generate(STRING)) }
You can’t perform that action at this time.