import re
def sanitize_filename(filename):
"""
Sanitize the filename to ensure it's valid and does not contain prohibited characters.
"""
filename = re.sub(r'[<>:"/\\|?*\']+', '', filename) # Remove invalid characters
filename = filename.replace('\n', ' ').replace('\r', '') # Replace newlines
return filename.strip()
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
#config/request_logger.rb | |
### NOTE: add the following two lines (uncommented) to your config/application.rb to load the middleware | |
# require_relative 'request_logger' | |
# config.middleware.use RequestLogger | |
class RequestLogger | |
def initialize(app) | |
@app = app | |
end |
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
Description: | |
Generates a plain Ruby class with the given NAME | |
Example: | |
`bin/rails generate plain Name` | |
This will create: | |
app/models/name.rb | |
test/models/name_test.rb |
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
ActionMailer::Base.delivery_method = :smtp | |
ActionMailer::Base.smtp_settings = { | |
address: 'smtp.gmail.com', | |
port: 587, | |
domain: 'gmail.com', | |
authentication: 'plain', | |
enable_starttls_auto: true, | |
user_name: 'your@gmail.com', | |
password: 'yourpassword' | |
} |
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
def humanize(secs) | |
[[60, :seconds], [60, :minutes], [24, :hours], [Float::INFINITY, :days]].map{ |count, name| | |
if secs > 0 | |
secs, n = secs.divmod(count) | |
"#{n.to_i} #{name}" unless n.to_i==0 | |
end | |
}.compact.reverse.join(' ') | |
end |
- Create a developer account with Apple
- https://developer.apple.com and shell out $99 for a developer account
- Download and install X-Code from the Apple App Store
- Open and run X-Code app and install whatever extras it requires
- Open the preferences pane (cmd+,)
- click the
+
in the lower right corner - choose
Apple ID
- enter your apple ID and password
- click the
- Previously created keys can be downloaded and installed from https://developer.apple.com
- Tower access and VPN setup and configuration (GCP / Tempus MA)
- Explanation of Jira and how we use it (what the workflow is)
- Explanation of how we use Github (PR and Merging workflow)
- Relevant codebase and associated github repos
- Frontend UI walkthrough (this should be recorded somewhere or can be done individually)
- Backend walkthrough and explanation of how clients are loaded over base
- Getting access to UI client app
NewerOlder