- if nothing in logfile specified grep through the /var/log/system.log file for your launchd name
This example uses following paths that would need to be changed.
/Users/covard/bsh_scripts
/Users/covard/bsh_scripts/logs
# | |
# Name: nginx-tls.conf | |
# Auth: Gavin Lloyd <[email protected]> | |
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
# | |
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
# to SSL/TLS are not included here. | |
# | |
# Additional tips: | |
# |
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |
Handy helpers for controlling visibility of elements until Vue has compiled.
Use like:
<div v-cloak>
<h1>
<span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
<span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->
Here's a little walkthrough of how Yannick and I are using feature branches and pull requests to develop new features and adding them to the project. Below are the steps I take when working on a new feature. Hopefully this, along with watching the process on Github, will serve as a starting point to having everyone use a similar workflow.
Questions, comments, and suggestions for improvements welcome!
When starting a new feature, I make sure to start with the latest and greatest codebase:
git checkout master
{# ================================================================== #} | |
{# Responsive Image Macro | |
{# ================================================================== #} | |
{# | |
Macro to centralize the markup and config for responsive images. | |
Based on an article by Marion Newlevant (@marionnewlevant) and | |
adapted for the Lazysizes plugin. Read more: | |
https://straightupcraft.com/articles/responsive-images-with-twig-macros |
{# CALCULATE THIS WEEK'S DATES #} | |
{% set todayNum = 'now' | date('w') %} | |
{% set startDate = 'now' | date_modify('-' ~ todayNum ~ ' day') %} | |
{% set endDate = startDate | date_modify('+6 day') %} | |
{% set endDateFormatted = '-' ~ endDate | date('j') %} | |
{% if startDate | date('M') != endDate | date('M') %} | |
{% set endDateFormatted = ' - ' ~ endDate | date('M j') %} | |
{% endif %} | |
<p>The Week of {{ startDate | date('M j') }}{{ endDateFormatted }}</p> |
<?php | |
use Craft; | |
use craft\base\Element; | |
use craft\elements\User; | |
use craft\events\ModelEvent; | |
use yii\base\Event; | |
<template> | |
<div class> | |
<div class="bg-grey-light h-1"></div> | |
<div class="flex"> | |
<div class="flex-1" v-for="s in steps" :key="s"> | |
<div | |
v-if="step >= s" | |
class="bg-blue -mt-1 h-1" | |
:class="{ 'w-1/2': step == s, 'w-full': step < s }" | |
></div> |
# Prep dropbox to ignore 'node_modules' in a node project | |
# 1. Move this script to your node project root; | |
# 2. Delete the existing 'node_modules' folder; | |
# 3. Run this script; | |
# 4. `npm install` as normal; | |
# 5. Enjoy! | |
tell application "Finder" | |
set current_path to container of (path to me) as alias | |
make new folder at current_path with properties {name:"node_modules"} |