This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# HEADS UP! Make sure to use '*' or a valid hostname for the FDQN prompt | |
echo 01 > ca.srl | |
openssl genrsa -out ca-key.pem | |
openssl req -new -x509 -days 365 -key ca-key.pem -out ca.pem | |
openssl genrsa -out server-key.pem | |
openssl req -new -key server-key.pem -out server.csr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"accountWide": true, | |
"criteria": [ | |
{ | |
"description": "To Honor One's Elders", | |
"id": 7553, | |
"max": 1, | |
"orderIndex": 0 | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I am attempting to read all files in an input/ directory | |
# (index.html.erb, style.css.erb & script.js.erb) and | |
# compile them into their corresponding files in the | |
# output/ directory (index.html, style.css & script.js) | |
# Currently, only one file is rendering correctly and | |
# the following error is being thrown: | |
# ERB_test.rb:12:in `read': No such file or directory - script.js (Errno::ENOENT) | |
# from single_loop.rb:12:in `block in <main>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module InstanceMethods | |
def can_moderate_community? | |
self.community_admin? or self.community_moderator? | |
end | |
end |