Visit my blog or connect with me on Twitter
git init
or
\._* | |
\.DS_Store | |
*\.sublime* | |
*i18n* | |
*.mov | |
*.swp | |
bin/ | |
tmp/ | |
*\.tmproj | |
*.pt |
require 'zeus/rails' | |
class CustomPlan < Zeus::Rails | |
# def my_custom_command | |
# # see https://github.com/burke/zeus/blob/master/docs/ruby/modifying.md | |
# end | |
def default_bundle_with_test_env | |
::Rails.env = 'test' |
Visit my blog or connect with me on Twitter
git init
or
These instructions will guide you through the process of setting up local, trusted websites on your own computer.
These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.
NOTE: You may substitute the edit
command for nano
, vim
, or whatever the editor of your choice is. Personally, I forward the edit
command to Sublime Text:
alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
The following will guide you through the process of enabling SSL on a Apache webserver
Create a directory within /etc/apache2/
using Terminal.app: sudo mkdir /etc/apache2/ssl
Next, generate two host keys:
if [ -z "$1" ] | |
then | |
echo "Please supply a subdomain to create a certificate for"; | |
echo "e.g. www.mysite.com" | |
exit; | |
fi | |
# Create a new private key if one doesnt exist, or use the xeisting one if it does | |
if [ -f device.key ]; then | |
KEY_OPT="-key" |
// Our encouraged use of suspense in Apollo will comprise of 2 hooks: useBackgroundQuery and useReadQuery (final names TBD). | |
// Using these 2 together encourage the use of the render-as-you-fetch pattern to start fetching as soon as possible: | |
// https://17.reactjs.org/docs/concurrent-mode-suspense.html#approach-3-render-as-you-fetch-using-suspense | |
const Parent = () => { | |
// This hook provides no access to data. It's meant purely as a fetching mechanism | |
const { promise } = useBackgroundQuery(QUERY); | |
return ( | |
<Suspense fallback="Loading..."> |