Product: Sagitta Inceptus (PN S1430X-GTX-TITANX) (my dev box)
Software: cudaHashcat 1.36b31, ForceWare 346.35
Accelerator: 1x Nvidia GTX Titan X reference design
Product: Sagitta Inceptus (PN S1430X-GTX-TITANX) (my dev box)
Software: cudaHashcat 1.36b31, ForceWare 346.35
Accelerator: 1x Nvidia GTX Titan X reference design
Here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft CMS.
Would it be possible to include an iCal file attachment to the Access-A-Ride advance notification emails with a 30 minute window from the specified pickup time (that is the window in which Access-A-Ride drivers need to arrive)?
For example: if my Access-A-Ride is supposed to pick me up at 10:34 am from 1000 Broadway Ave and then again at 8:00 pm from 900 Jay St., include a calendar event (a .ics file) that would look similar to the following, attached to the advance trip notification:
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
SUMMARY:Access-A-Ride Pickup
/* | |
Toy Rocket Construction Kit by Brendan Dawes | |
brendandawes.com | |
Nose cone isn't great but it suffices for now! | |
*/ | |
rocketRadius = 20; | |
connectorHeight = 5; |
•_•) | |
( •_•)>⌐■-■ | |
(⌐■_■) |
import urlparse | |
import oauth2 as oauth | |
consumer_key = 'consumer_key' | |
consumer_secret = 'consumer_secret' | |
request_token_url = 'https://www.tumblr.com/oauth/request_token' | |
access_token_url = 'https://www.tumblr.com/oauth/access_token' | |
authorize_url = 'https://www.tumblr.com/oauth/authorize' |
Create an .htaccess file in the webroot:
AuthUserFile /app/www/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user
Create a .htpasswd file:
htpasswd -c /app/www/.htpasswd [username]
#!/usr/bin/env ruby | |
require 'json' | |
file = File.new(ARGV[0], "r") | |
#get format | |
puts "Getting format" | |
format = file.gets |
class Post < ActiveRecord::Base | |
# for SO: http://stackoverflow.com/questions/10481389/friendly-id-with-two-parameters | |
# EXAMPLE ASSUMES YOU ARE USING FRIENDLYID 4.X | |
# AND THAT YOU HAVE A SLUG:STRING COLUMN ON THE MODEL | |
# ... | |
extend FriendlyId | |
friendly_id :generate_custom_slug, :use => :slugged | |
# ... |