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
# install Homebrew if you don't already have it: http://mxcl.github.io/homebrew/ | |
# install nano from homebrew | |
brew install nano | |
# update your nanorc file | |
echo 'include "/opt/homebrew/Cellar/nano/NANO_VERSION_NUMBER/share/nano/*.nanorc"'>> ~/.nanorc | |
# close and re-open your terminal and you'll have syntax highlighting |
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
ServerAliveInterval 120 | |
TCPKeepAlive no | |
Compression yes | |
UseKeychain yes | |
AddKeysToAgent yes | |
Host example.com | |
User dev | |
HostName 127.0.0.1 | |
Port 2222 |
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
Show hidden characters
{ | |
"root": true, | |
"env": { | |
"es6": true | |
}, | |
"ignorePatterns": ["dist"], | |
"overrides": [ | |
{ | |
"files": ["*.ts"], | |
"parserOptions": { |
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
{ | |
"*.html": "htmlhint --config .htmlhintrc -i index.html", | |
"*.css": [ | |
"stylelint --fix" | |
], | |
"*.scss": [ | |
"stylelint -s=scss --fix" | |
], | |
"*.{js,ts}": "eslint --fix", | |
"*.{js,ts,css,scss,md}": "prettier --write" |
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
// Clamps a block of text to a certain number of lines, | |
// followed by an ellipsis in Webkit and Blink based browsers | |
// Reference: http://dropshado.ws/post/1015351370/webkit-line-clamp | |
@mixin text-clamp($lines: 2, $line-height: false) { | |
overflow: hidden; | |
display: -webkit-box; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: $lines; | |
// Fallback for non-Webkit browsers |
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
FROM --platform=linux/amd64 node:12-alpine as buildContainer | |
RUN apk --no-cache add git | |
WORKDIR /app | |
COPY . ./ | |
RUN npm ci --quiet --unsafe-perm | |
RUN npm run build:ssr | |
FROM --platform=linux/amd64 node:12-alpine | |
WORKDIR /app | |
COPY --from=buildContainer /app/package.json /app |
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
## GITATTRIBUTES FOR WEB PROJECTS | |
# | |
# These settings are for any web project. | |
# | |
# Details per file setting: | |
# text These files should be normalized (i.e. convert CRLF to LF). | |
# binary These files are binary and should be left untouched. | |
# | |
# Note that binary is a macro for -text -diff. | |
###################################################################### |
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
# | |
# 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: | |
# |
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
NAME := your-registry.com/username/project-name | |
TAG := $$(git log -1 --pretty=%h) | |
IMG := ${NAME}:${TAG} | |
LATEST := ${NAME}:latest | |
build: | |
@docker build . -t ${IMG} --progress=plain | |
@docker tag ${IMG} ${LATEST} | |
push: |
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
map $cache $expires { | |
1 max; | |
0 -1; | |
default off; | |
} | |
map $uri $cache { | |
"~*\.[0-9a-f]{8,32}\..*$" 1; | |
~* 0; | |
} |
NewerOlder