brew install nginx
Configuration file for nginx will be at /usr/local/etc/nginx/nginx.conf
Web apps can be stored at /usr/local/var/www
Start:
.next/ | |
node_modules/ | |
Dockerfile | |
yarn-error.log | |
.dockerignore | |
.git | |
.gitignore |
# Instructions for fresh install | |
$ sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon | |
# reboot | |
$ source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh | |
$ echo 'export NIX_PATH=darwin-config=$HOME/.nixpkgs/darwin-configuration.nix:$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH' | tee -a ~/.zshrc | |
$ echo 'source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh' | tee -a ~/.zshrc | |
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable | |
$ nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin | |
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager |
{ | |
// Instead of turning this off, use the key binding [CTRL+k Enter] to change an editor in preview mode into edit mode. | |
"workbench.editor.enablePreview": true, | |
// Useful suggestion | |
"editor.quickSuggestions": true, | |
"editor.suggest.statusBar.visible": true, | |
"editor.suggest.localityBonus": true, | |
"editor.suggest.showKeywords": true, |
import React, { useEffect, useState, useMemo } from "react" | |
import Echo from "laravel-echo" | |
import Pusher from "pusher-js" | |
/** | |
* Pusher configuration | |
*/ | |
const pusherConfig = { | |
key: '<your_pusher_key_here>', | |
cluster: '<pusher_cluster>', |
Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// Choose either "stable" for receiving highly polished, | |
// or "canary" for less polished but more frequent updates | |
updateChannel: 'stable', |
Step 1 - Install and Configure dnscrypt-proxy
sudo su
pacman -S dnscrypt-proxy
cd /etc/dnscrypt-proxy/